AWS SDK for C++  0.12.9
AWS SDK for C++
SpotDatafeedSubscription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  SpotDatafeedSubscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
53 
57  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
58 
62  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
63 
67  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
68 
72  inline SpotDatafeedSubscription& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
73 
77  inline SpotDatafeedSubscription& WithOwnerId(Aws::String&& value) { SetOwnerId(value); return *this;}
78 
82  inline SpotDatafeedSubscription& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
83 
87  inline const Aws::String& GetBucket() const{ return m_bucket; }
88 
92  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
93 
97  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
98 
102  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
103 
107  inline SpotDatafeedSubscription& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
108 
112  inline SpotDatafeedSubscription& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
113 
117  inline SpotDatafeedSubscription& WithBucket(const char* value) { SetBucket(value); return *this;}
118 
122  inline const Aws::String& GetPrefix() const{ return m_prefix; }
123 
127  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
128 
132  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = value; }
133 
137  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
138 
142  inline SpotDatafeedSubscription& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
143 
147  inline SpotDatafeedSubscription& WithPrefix(Aws::String&& value) { SetPrefix(value); return *this;}
148 
152  inline SpotDatafeedSubscription& WithPrefix(const char* value) { SetPrefix(value); return *this;}
153 
157  inline const DatafeedSubscriptionState& GetState() const{ return m_state; }
158 
162  inline void SetState(const DatafeedSubscriptionState& value) { m_stateHasBeenSet = true; m_state = value; }
163 
167  inline void SetState(DatafeedSubscriptionState&& value) { m_stateHasBeenSet = true; m_state = value; }
168 
172  inline SpotDatafeedSubscription& WithState(const DatafeedSubscriptionState& value) { SetState(value); return *this;}
173 
177  inline SpotDatafeedSubscription& WithState(DatafeedSubscriptionState&& value) { SetState(value); return *this;}
178 
182  inline const SpotInstanceStateFault& GetFault() const{ return m_fault; }
183 
187  inline void SetFault(const SpotInstanceStateFault& value) { m_faultHasBeenSet = true; m_fault = value; }
188 
192  inline void SetFault(SpotInstanceStateFault&& value) { m_faultHasBeenSet = true; m_fault = value; }
193 
197  inline SpotDatafeedSubscription& WithFault(const SpotInstanceStateFault& value) { SetFault(value); return *this;}
198 
202  inline SpotDatafeedSubscription& WithFault(SpotInstanceStateFault&& value) { SetFault(value); return *this;}
203 
204  private:
205  Aws::String m_ownerId;
206  bool m_ownerIdHasBeenSet;
207  Aws::String m_bucket;
208  bool m_bucketHasBeenSet;
209  Aws::String m_prefix;
210  bool m_prefixHasBeenSet;
212  bool m_stateHasBeenSet;
213  SpotInstanceStateFault m_fault;
214  bool m_faultHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace EC2
219 } // namespace Aws
SpotDatafeedSubscription & WithState(const DatafeedSubscriptionState &value)
void SetState(const DatafeedSubscriptionState &value)
void SetFault(const SpotInstanceStateFault &value)
SpotDatafeedSubscription & WithBucket(Aws::String &&value)
void SetState(DatafeedSubscriptionState &&value)
SpotDatafeedSubscription & WithPrefix(const Aws::String &value)
SpotDatafeedSubscription & WithFault(const SpotInstanceStateFault &value)
SpotDatafeedSubscription & WithOwnerId(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetFault(SpotInstanceStateFault &&value)
SpotDatafeedSubscription & WithBucket(const char *value)
SpotDatafeedSubscription & WithOwnerId(const char *value)
SpotDatafeedSubscription & WithBucket(const Aws::String &value)
SpotDatafeedSubscription & WithState(DatafeedSubscriptionState &&value)
SpotDatafeedSubscription & WithOwnerId(Aws::String &&value)
const SpotInstanceStateFault & GetFault() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SpotDatafeedSubscription & WithPrefix(Aws::String &&value)
const DatafeedSubscriptionState & GetState() const
SpotDatafeedSubscription & WithPrefix(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
SpotDatafeedSubscription & WithFault(SpotInstanceStateFault &&value)
JSON (JavaScript Object Notation).