AWS SDK for C++  1.9.71
AWS SDK for C++
SpotFleetRequestConfig.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
15 #include <aws/ec2/model/Tag.h>
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Xml
23 {
24  class XmlNode;
25 } // namespace Xml
26 } // namespace Utils
27 namespace EC2
28 {
29 namespace Model
30 {
31 
38  {
39  public:
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
47 
56  inline const ActivityStatus& GetActivityStatus() const{ return m_activityStatus; }
57 
66  inline bool ActivityStatusHasBeenSet() const { return m_activityStatusHasBeenSet; }
67 
76  inline void SetActivityStatus(const ActivityStatus& value) { m_activityStatusHasBeenSet = true; m_activityStatus = value; }
77 
86  inline void SetActivityStatus(ActivityStatus&& value) { m_activityStatusHasBeenSet = true; m_activityStatus = std::move(value); }
87 
96  inline SpotFleetRequestConfig& WithActivityStatus(const ActivityStatus& value) { SetActivityStatus(value); return *this;}
97 
106  inline SpotFleetRequestConfig& WithActivityStatus(ActivityStatus&& value) { SetActivityStatus(std::move(value)); return *this;}
107 
108 
112  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
113 
117  inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
118 
122  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
123 
127  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
128 
132  inline SpotFleetRequestConfig& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
133 
137  inline SpotFleetRequestConfig& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
138 
139 
143  inline const SpotFleetRequestConfigData& GetSpotFleetRequestConfig() const{ return m_spotFleetRequestConfig; }
144 
148  inline bool SpotFleetRequestConfigHasBeenSet() const { return m_spotFleetRequestConfigHasBeenSet; }
149 
153  inline void SetSpotFleetRequestConfig(const SpotFleetRequestConfigData& value) { m_spotFleetRequestConfigHasBeenSet = true; m_spotFleetRequestConfig = value; }
154 
158  inline void SetSpotFleetRequestConfig(SpotFleetRequestConfigData&& value) { m_spotFleetRequestConfigHasBeenSet = true; m_spotFleetRequestConfig = std::move(value); }
159 
163  inline SpotFleetRequestConfig& WithSpotFleetRequestConfig(const SpotFleetRequestConfigData& value) { SetSpotFleetRequestConfig(value); return *this;}
164 
168  inline SpotFleetRequestConfig& WithSpotFleetRequestConfig(SpotFleetRequestConfigData&& value) { SetSpotFleetRequestConfig(std::move(value)); return *this;}
169 
170 
174  inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; }
175 
179  inline bool SpotFleetRequestIdHasBeenSet() const { return m_spotFleetRequestIdHasBeenSet; }
180 
184  inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
185 
189  inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = std::move(value); }
190 
194  inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId.assign(value); }
195 
199  inline SpotFleetRequestConfig& WithSpotFleetRequestId(const Aws::String& value) { SetSpotFleetRequestId(value); return *this;}
200 
204  inline SpotFleetRequestConfig& WithSpotFleetRequestId(Aws::String&& value) { SetSpotFleetRequestId(std::move(value)); return *this;}
205 
209  inline SpotFleetRequestConfig& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;}
210 
211 
215  inline const BatchState& GetSpotFleetRequestState() const{ return m_spotFleetRequestState; }
216 
220  inline bool SpotFleetRequestStateHasBeenSet() const { return m_spotFleetRequestStateHasBeenSet; }
221 
225  inline void SetSpotFleetRequestState(const BatchState& value) { m_spotFleetRequestStateHasBeenSet = true; m_spotFleetRequestState = value; }
226 
230  inline void SetSpotFleetRequestState(BatchState&& value) { m_spotFleetRequestStateHasBeenSet = true; m_spotFleetRequestState = std::move(value); }
231 
235  inline SpotFleetRequestConfig& WithSpotFleetRequestState(const BatchState& value) { SetSpotFleetRequestState(value); return *this;}
236 
240  inline SpotFleetRequestConfig& WithSpotFleetRequestState(BatchState&& value) { SetSpotFleetRequestState(std::move(value)); return *this;}
241 
242 
246  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
247 
251  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
252 
256  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
257 
261  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
262 
266  inline SpotFleetRequestConfig& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
267 
271  inline SpotFleetRequestConfig& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
272 
276  inline SpotFleetRequestConfig& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
277 
281  inline SpotFleetRequestConfig& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
282 
283  private:
284 
285  ActivityStatus m_activityStatus;
286  bool m_activityStatusHasBeenSet;
287 
288  Aws::Utils::DateTime m_createTime;
289  bool m_createTimeHasBeenSet;
290 
291  SpotFleetRequestConfigData m_spotFleetRequestConfig;
292  bool m_spotFleetRequestConfigHasBeenSet;
293 
294  Aws::String m_spotFleetRequestId;
295  bool m_spotFleetRequestIdHasBeenSet;
296 
297  BatchState m_spotFleetRequestState;
298  bool m_spotFleetRequestStateHasBeenSet;
299 
300  Aws::Vector<Tag> m_tags;
301  bool m_tagsHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace EC2
306 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::SpotFleetRequestConfig::CreateTimeHasBeenSet
bool CreateTimeHasBeenSet() const
Definition: SpotFleetRequestConfig.h:117
ActivityStatus.h
Aws::EC2::Model::SpotFleetRequestConfig::SetActivityStatus
void SetActivityStatus(const ActivityStatus &value)
Definition: SpotFleetRequestConfig.h:76
Aws::EC2::Model::SpotFleetRequestConfig::SpotFleetRequestStateHasBeenSet
bool SpotFleetRequestStateHasBeenSet() const
Definition: SpotFleetRequestConfig.h:220
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::SpotFleetRequestConfig::WithActivityStatus
SpotFleetRequestConfig & WithActivityStatus(ActivityStatus &&value)
Definition: SpotFleetRequestConfig.h:106
Aws::EC2::Model::SpotFleetRequestConfig::SetSpotFleetRequestId
void SetSpotFleetRequestId(const char *value)
Definition: SpotFleetRequestConfig.h:194
Aws::EC2::Model::SpotFleetRequestConfig::WithSpotFleetRequestState
SpotFleetRequestConfig & WithSpotFleetRequestState(const BatchState &value)
Definition: SpotFleetRequestConfig.h:235
Aws::EC2::Model::SpotFleetRequestConfig::GetSpotFleetRequestId
const Aws::String & GetSpotFleetRequestId() const
Definition: SpotFleetRequestConfig.h:174
DateTime.h
Aws::EC2::Model::SpotFleetRequestConfig::WithSpotFleetRequestId
SpotFleetRequestConfig & WithSpotFleetRequestId(Aws::String &&value)
Definition: SpotFleetRequestConfig.h:204
Aws::EC2::Model::SpotFleetRequestConfig::WithSpotFleetRequestConfig
SpotFleetRequestConfig & WithSpotFleetRequestConfig(const SpotFleetRequestConfigData &value)
Definition: SpotFleetRequestConfig.h:163
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SpotFleetRequestConfig::SetSpotFleetRequestId
void SetSpotFleetRequestId(Aws::String &&value)
Definition: SpotFleetRequestConfig.h:189
Aws::EC2::Model::SpotFleetRequestConfig::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SpotFleetRequestConfig::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: SpotFleetRequestConfig.h:256
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::SpotFleetRequestConfig::SetSpotFleetRequestState
void SetSpotFleetRequestState(const BatchState &value)
Definition: SpotFleetRequestConfig.h:225
AWSStreamFwd.h
BatchState.h
Aws::EC2::Model::SpotFleetRequestConfig::WithTags
SpotFleetRequestConfig & WithTags(Aws::Vector< Tag > &&value)
Definition: SpotFleetRequestConfig.h:271
Aws::EC2::Model::SpotFleetRequestConfig::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: SpotFleetRequestConfig.h:246
Aws::EC2::Model::SpotFleetRequestConfig::SpotFleetRequestConfigHasBeenSet
bool SpotFleetRequestConfigHasBeenSet() const
Definition: SpotFleetRequestConfig.h:148
AWSVector.h
Tag.h
Aws::EC2::Model::SpotFleetRequestConfig::GetActivityStatus
const ActivityStatus & GetActivityStatus() const
Definition: SpotFleetRequestConfig.h:56
Aws::EC2::Model::SpotFleetRequestConfig::SpotFleetRequestConfig
SpotFleetRequestConfig()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SpotFleetRequestConfig::SetSpotFleetRequestConfig
void SetSpotFleetRequestConfig(const SpotFleetRequestConfigData &value)
Definition: SpotFleetRequestConfig.h:153
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SpotFleetRequestConfig::GetSpotFleetRequestState
const BatchState & GetSpotFleetRequestState() const
Definition: SpotFleetRequestConfig.h:215
Aws::EC2::Model::SpotFleetRequestConfig::SetSpotFleetRequestConfig
void SetSpotFleetRequestConfig(SpotFleetRequestConfigData &&value)
Definition: SpotFleetRequestConfig.h:158
Aws::EC2::Model::SpotFleetRequestConfig::ActivityStatusHasBeenSet
bool ActivityStatusHasBeenSet() const
Definition: SpotFleetRequestConfig.h:66
Aws::EC2::Model::SpotFleetRequestConfig::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: SpotFleetRequestConfig.h:261
Aws::EC2::Model::SpotFleetRequestConfig::SetCreateTime
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition: SpotFleetRequestConfig.h:127
AWSString.h
Aws::EC2::Model::SpotFleetRequestConfig::SetSpotFleetRequestId
void SetSpotFleetRequestId(const Aws::String &value)
Definition: SpotFleetRequestConfig.h:184
Aws::EC2::Model::SpotFleetRequestConfig::WithActivityStatus
SpotFleetRequestConfig & WithActivityStatus(const ActivityStatus &value)
Definition: SpotFleetRequestConfig.h:96
Aws::EC2::Model::SpotFleetRequestConfig::WithSpotFleetRequestState
SpotFleetRequestConfig & WithSpotFleetRequestState(BatchState &&value)
Definition: SpotFleetRequestConfig.h:240
Aws::EC2::Model::SpotFleetRequestConfig::WithSpotFleetRequestId
SpotFleetRequestConfig & WithSpotFleetRequestId(const char *value)
Definition: SpotFleetRequestConfig.h:209
Aws::EC2::Model::SpotFleetRequestConfig::WithCreateTime
SpotFleetRequestConfig & WithCreateTime(Aws::Utils::DateTime &&value)
Definition: SpotFleetRequestConfig.h:137
Aws::EC2::Model::SpotFleetRequestConfig::operator=
SpotFleetRequestConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotFleetRequestConfig::SetSpotFleetRequestState
void SetSpotFleetRequestState(BatchState &&value)
Definition: SpotFleetRequestConfig.h:230
SpotFleetRequestConfigData.h
Aws::EC2::Model::SpotFleetRequestConfig::GetCreateTime
const Aws::Utils::DateTime & GetCreateTime() const
Definition: SpotFleetRequestConfig.h:112
Aws::EC2::Model::SpotFleetRequestConfig::AddTags
SpotFleetRequestConfig & AddTags(const Tag &value)
Definition: SpotFleetRequestConfig.h:276
Aws::EC2::Model::SpotFleetRequestConfig::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: SpotFleetRequestConfig.h:251
Aws::EC2::Model::SpotFleetRequestConfig::WithSpotFleetRequestConfig
SpotFleetRequestConfig & WithSpotFleetRequestConfig(SpotFleetRequestConfigData &&value)
Definition: SpotFleetRequestConfig.h:168
Aws::EC2::Model::SpotFleetRequestConfig::SetCreateTime
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition: SpotFleetRequestConfig.h:122
Aws::EC2::Model::SpotFleetRequestConfig::SpotFleetRequestIdHasBeenSet
bool SpotFleetRequestIdHasBeenSet() const
Definition: SpotFleetRequestConfig.h:179
Aws::EC2::Model::BatchState
BatchState
Definition: BatchState.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SpotFleetRequestConfig::AddTags
SpotFleetRequestConfig & AddTags(Tag &&value)
Definition: SpotFleetRequestConfig.h:281
Aws::EC2::Model::SpotFleetRequestConfig::SpotFleetRequestConfig
SpotFleetRequestConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotFleetRequestConfig::SetActivityStatus
void SetActivityStatus(ActivityStatus &&value)
Definition: SpotFleetRequestConfig.h:86
Aws::EC2::Model::ActivityStatus
ActivityStatus
Definition: ActivityStatus.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::SpotFleetRequestConfig
Definition: SpotFleetRequestConfig.h:38
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SpotFleetRequestConfig::GetSpotFleetRequestConfig
const SpotFleetRequestConfigData & GetSpotFleetRequestConfig() const
Definition: SpotFleetRequestConfig.h:143
Aws::EC2::Model::SpotFleetRequestConfig::WithCreateTime
SpotFleetRequestConfig & WithCreateTime(const Aws::Utils::DateTime &value)
Definition: SpotFleetRequestConfig.h:132
Aws::EC2::Model::SpotFleetRequestConfig::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::SpotFleetRequestConfig::WithTags
SpotFleetRequestConfig & WithTags(const Aws::Vector< Tag > &value)
Definition: SpotFleetRequestConfig.h:266
EC2_EXPORTS.h
Aws::EC2::Model::SpotFleetRequestConfigData
Definition: SpotFleetRequestConfigData.h:45
Aws::EC2::Model::SpotFleetRequestConfig::WithSpotFleetRequestId
SpotFleetRequestConfig & WithSpotFleetRequestId(const Aws::String &value)
Definition: SpotFleetRequestConfig.h:199