AWS SDK for C++  1.9.71
AWS SDK for C++
SpotDatafeedSubscription.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
48  inline const Aws::String& GetBucket() const{ return m_bucket; }
49 
54  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
55 
60  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
61 
66  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
67 
72  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
73 
78  inline SpotDatafeedSubscription& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
79 
84  inline SpotDatafeedSubscription& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
85 
90  inline SpotDatafeedSubscription& WithBucket(const char* value) { SetBucket(value); return *this;}
91 
92 
96  inline const SpotInstanceStateFault& GetFault() const{ return m_fault; }
97 
101  inline bool FaultHasBeenSet() const { return m_faultHasBeenSet; }
102 
106  inline void SetFault(const SpotInstanceStateFault& value) { m_faultHasBeenSet = true; m_fault = value; }
107 
111  inline void SetFault(SpotInstanceStateFault&& value) { m_faultHasBeenSet = true; m_fault = std::move(value); }
112 
116  inline SpotDatafeedSubscription& WithFault(const SpotInstanceStateFault& value) { SetFault(value); return *this;}
117 
121  inline SpotDatafeedSubscription& WithFault(SpotInstanceStateFault&& value) { SetFault(std::move(value)); return *this;}
122 
123 
127  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
128 
132  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
133 
137  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
138 
142  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
143 
147  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
148 
152  inline SpotDatafeedSubscription& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
153 
157  inline SpotDatafeedSubscription& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
158 
162  inline SpotDatafeedSubscription& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
163 
164 
168  inline const Aws::String& GetPrefix() const{ return m_prefix; }
169 
173  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
174 
178  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
179 
183  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
184 
188  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
189 
193  inline SpotDatafeedSubscription& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
194 
198  inline SpotDatafeedSubscription& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
199 
203  inline SpotDatafeedSubscription& WithPrefix(const char* value) { SetPrefix(value); return *this;}
204 
205 
209  inline const DatafeedSubscriptionState& GetState() const{ return m_state; }
210 
214  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
215 
219  inline void SetState(const DatafeedSubscriptionState& value) { m_stateHasBeenSet = true; m_state = value; }
220 
224  inline void SetState(DatafeedSubscriptionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
225 
229  inline SpotDatafeedSubscription& WithState(const DatafeedSubscriptionState& value) { SetState(value); return *this;}
230 
234  inline SpotDatafeedSubscription& WithState(DatafeedSubscriptionState&& value) { SetState(std::move(value)); return *this;}
235 
236  private:
237 
238  Aws::String m_bucket;
239  bool m_bucketHasBeenSet;
240 
241  SpotInstanceStateFault m_fault;
242  bool m_faultHasBeenSet;
243 
244  Aws::String m_ownerId;
245  bool m_ownerIdHasBeenSet;
246 
247  Aws::String m_prefix;
248  bool m_prefixHasBeenSet;
249 
251  bool m_stateHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace EC2
256 } // namespace Aws
Aws::EC2::Model::SpotDatafeedSubscription::GetPrefix
const Aws::String & GetPrefix() const
Definition: SpotDatafeedSubscription.h:168
Aws::EC2::Model::SpotDatafeedSubscription::WithPrefix
SpotDatafeedSubscription & WithPrefix(const Aws::String &value)
Definition: SpotDatafeedSubscription.h:193
Aws::EC2::Model::SpotDatafeedSubscription::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: SpotDatafeedSubscription.h:178
Aws::EC2::Model::DatafeedSubscriptionState
DatafeedSubscriptionState
Definition: DatafeedSubscriptionState.h:17
Aws::EC2::Model::SpotDatafeedSubscription::WithBucket
SpotDatafeedSubscription & WithBucket(Aws::String &&value)
Definition: SpotDatafeedSubscription.h:84
Aws::EC2::Model::SpotDatafeedSubscription::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: SpotDatafeedSubscription.h:54
Aws::EC2::Model::SpotDatafeedSubscription::SpotDatafeedSubscription
SpotDatafeedSubscription()
SpotInstanceStateFault.h
Aws::EC2::Model::SpotDatafeedSubscription::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: SpotDatafeedSubscription.h:173
Aws::EC2::Model::SpotDatafeedSubscription::SetBucket
void SetBucket(const Aws::String &value)
Definition: SpotDatafeedSubscription.h:60
Aws::EC2::Model::SpotDatafeedSubscription::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: SpotDatafeedSubscription.h:127
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SpotDatafeedSubscription::SetPrefix
void SetPrefix(const char *value)
Definition: SpotDatafeedSubscription.h:188
Aws::EC2::Model::SpotDatafeedSubscription::WithPrefix
SpotDatafeedSubscription & WithPrefix(const char *value)
Definition: SpotDatafeedSubscription.h:203
Aws::EC2::Model::SpotDatafeedSubscription::SetFault
void SetFault(const SpotInstanceStateFault &value)
Definition: SpotDatafeedSubscription.h:106
AWSStreamFwd.h
Aws::EC2::Model::SpotDatafeedSubscription::WithState
SpotDatafeedSubscription & WithState(const DatafeedSubscriptionState &value)
Definition: SpotDatafeedSubscription.h:229
Aws::EC2::Model::SpotDatafeedSubscription::GetState
const DatafeedSubscriptionState & GetState() const
Definition: SpotDatafeedSubscription.h:209
Aws::EC2::Model::SpotDatafeedSubscription::WithState
SpotDatafeedSubscription & WithState(DatafeedSubscriptionState &&value)
Definition: SpotDatafeedSubscription.h:234
Aws::EC2::Model::SpotDatafeedSubscription::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::SpotDatafeedSubscription
Definition: SpotDatafeedSubscription.h:34
Aws::EC2::Model::SpotDatafeedSubscription::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SpotDatafeedSubscription::GetBucket
const Aws::String & GetBucket() const
Definition: SpotDatafeedSubscription.h:48
Aws::EC2::Model::SpotDatafeedSubscription::WithOwnerId
SpotDatafeedSubscription & WithOwnerId(const char *value)
Definition: SpotDatafeedSubscription.h:162
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SpotDatafeedSubscription::SpotDatafeedSubscription
SpotDatafeedSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotInstanceStateFault
Definition: SpotInstanceStateFault.h:32
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SpotDatafeedSubscription::WithFault
SpotDatafeedSubscription & WithFault(const SpotInstanceStateFault &value)
Definition: SpotDatafeedSubscription.h:116
Aws::EC2::Model::SpotDatafeedSubscription::SetBucket
void SetBucket(const char *value)
Definition: SpotDatafeedSubscription.h:72
Aws::EC2::Model::SpotDatafeedSubscription::WithPrefix
SpotDatafeedSubscription & WithPrefix(Aws::String &&value)
Definition: SpotDatafeedSubscription.h:198
AWSString.h
Aws::EC2::Model::SpotDatafeedSubscription::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: SpotDatafeedSubscription.h:137
Aws::EC2::Model::SpotDatafeedSubscription::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: SpotDatafeedSubscription.h:183
Aws::EC2::Model::SpotDatafeedSubscription::operator=
SpotDatafeedSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotDatafeedSubscription::SetState
void SetState(const DatafeedSubscriptionState &value)
Definition: SpotDatafeedSubscription.h:219
Aws::EC2::Model::SpotDatafeedSubscription::WithOwnerId
SpotDatafeedSubscription & WithOwnerId(const Aws::String &value)
Definition: SpotDatafeedSubscription.h:152
DatafeedSubscriptionState.h
Aws::EC2::Model::SpotDatafeedSubscription::WithBucket
SpotDatafeedSubscription & WithBucket(const Aws::String &value)
Definition: SpotDatafeedSubscription.h:78
Aws::EC2::Model::SpotDatafeedSubscription::FaultHasBeenSet
bool FaultHasBeenSet() const
Definition: SpotDatafeedSubscription.h:101
Aws::EC2::Model::SpotDatafeedSubscription::SetFault
void SetFault(SpotInstanceStateFault &&value)
Definition: SpotDatafeedSubscription.h:111
Aws::EC2::Model::SpotDatafeedSubscription::SetOwnerId
void SetOwnerId(const char *value)
Definition: SpotDatafeedSubscription.h:147
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SpotDatafeedSubscription::GetFault
const SpotInstanceStateFault & GetFault() const
Definition: SpotDatafeedSubscription.h:96
Aws::EC2::Model::SpotDatafeedSubscription::SetBucket
void SetBucket(Aws::String &&value)
Definition: SpotDatafeedSubscription.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::SpotDatafeedSubscription::WithBucket
SpotDatafeedSubscription & WithBucket(const char *value)
Definition: SpotDatafeedSubscription.h:90
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SpotDatafeedSubscription::WithFault
SpotDatafeedSubscription & WithFault(SpotInstanceStateFault &&value)
Definition: SpotDatafeedSubscription.h:121
Aws::EC2::Model::SpotDatafeedSubscription::StateHasBeenSet
bool StateHasBeenSet() const
Definition: SpotDatafeedSubscription.h:214
Aws::EC2::Model::SpotDatafeedSubscription::SetState
void SetState(DatafeedSubscriptionState &&value)
Definition: SpotDatafeedSubscription.h:224
Aws::EC2::Model::SpotDatafeedSubscription::WithOwnerId
SpotDatafeedSubscription & WithOwnerId(Aws::String &&value)
Definition: SpotDatafeedSubscription.h:157
Aws::EC2::Model::SpotDatafeedSubscription::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: SpotDatafeedSubscription.h:142
EC2_EXPORTS.h
Aws::EC2::Model::SpotDatafeedSubscription::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: SpotDatafeedSubscription.h:132