AWS SDK for C++  1.9.125
AWS SDK for C++
LaunchTemplateSpotMarketOptionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetMaxPrice() const{ return m_maxPrice; }
49 
53  inline bool MaxPriceHasBeenSet() const { return m_maxPriceHasBeenSet; }
54 
58  inline void SetMaxPrice(const Aws::String& value) { m_maxPriceHasBeenSet = true; m_maxPrice = value; }
59 
63  inline void SetMaxPrice(Aws::String&& value) { m_maxPriceHasBeenSet = true; m_maxPrice = std::move(value); }
64 
68  inline void SetMaxPrice(const char* value) { m_maxPriceHasBeenSet = true; m_maxPrice.assign(value); }
69 
73  inline LaunchTemplateSpotMarketOptionsRequest& WithMaxPrice(const Aws::String& value) { SetMaxPrice(value); return *this;}
74 
78  inline LaunchTemplateSpotMarketOptionsRequest& WithMaxPrice(Aws::String&& value) { SetMaxPrice(std::move(value)); return *this;}
79 
83  inline LaunchTemplateSpotMarketOptionsRequest& WithMaxPrice(const char* value) { SetMaxPrice(value); return *this;}
84 
85 
89  inline const SpotInstanceType& GetSpotInstanceType() const{ return m_spotInstanceType; }
90 
94  inline bool SpotInstanceTypeHasBeenSet() const { return m_spotInstanceTypeHasBeenSet; }
95 
99  inline void SetSpotInstanceType(const SpotInstanceType& value) { m_spotInstanceTypeHasBeenSet = true; m_spotInstanceType = value; }
100 
104  inline void SetSpotInstanceType(SpotInstanceType&& value) { m_spotInstanceTypeHasBeenSet = true; m_spotInstanceType = std::move(value); }
105 
109  inline LaunchTemplateSpotMarketOptionsRequest& WithSpotInstanceType(const SpotInstanceType& value) { SetSpotInstanceType(value); return *this;}
110 
114  inline LaunchTemplateSpotMarketOptionsRequest& WithSpotInstanceType(SpotInstanceType&& value) { SetSpotInstanceType(std::move(value)); return *this;}
115 
116 
122  inline int GetBlockDurationMinutes() const{ return m_blockDurationMinutes; }
123 
129  inline bool BlockDurationMinutesHasBeenSet() const { return m_blockDurationMinutesHasBeenSet; }
130 
136  inline void SetBlockDurationMinutes(int value) { m_blockDurationMinutesHasBeenSet = true; m_blockDurationMinutes = value; }
137 
143  inline LaunchTemplateSpotMarketOptionsRequest& WithBlockDurationMinutes(int value) { SetBlockDurationMinutes(value); return *this;}
144 
145 
153  inline const Aws::Utils::DateTime& GetValidUntil() const{ return m_validUntil; }
154 
162  inline bool ValidUntilHasBeenSet() const { return m_validUntilHasBeenSet; }
163 
171  inline void SetValidUntil(const Aws::Utils::DateTime& value) { m_validUntilHasBeenSet = true; m_validUntil = value; }
172 
180  inline void SetValidUntil(Aws::Utils::DateTime&& value) { m_validUntilHasBeenSet = true; m_validUntil = std::move(value); }
181 
189  inline LaunchTemplateSpotMarketOptionsRequest& WithValidUntil(const Aws::Utils::DateTime& value) { SetValidUntil(value); return *this;}
190 
198  inline LaunchTemplateSpotMarketOptionsRequest& WithValidUntil(Aws::Utils::DateTime&& value) { SetValidUntil(std::move(value)); return *this;}
199 
200 
205  inline const InstanceInterruptionBehavior& GetInstanceInterruptionBehavior() const{ return m_instanceInterruptionBehavior; }
206 
211  inline bool InstanceInterruptionBehaviorHasBeenSet() const { return m_instanceInterruptionBehaviorHasBeenSet; }
212 
217  inline void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior& value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = value; }
218 
223  inline void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior&& value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = std::move(value); }
224 
229  inline LaunchTemplateSpotMarketOptionsRequest& WithInstanceInterruptionBehavior(const InstanceInterruptionBehavior& value) { SetInstanceInterruptionBehavior(value); return *this;}
230 
235  inline LaunchTemplateSpotMarketOptionsRequest& WithInstanceInterruptionBehavior(InstanceInterruptionBehavior&& value) { SetInstanceInterruptionBehavior(std::move(value)); return *this;}
236 
237  private:
238 
239  Aws::String m_maxPrice;
240  bool m_maxPriceHasBeenSet;
241 
242  SpotInstanceType m_spotInstanceType;
243  bool m_spotInstanceTypeHasBeenSet;
244 
245  int m_blockDurationMinutes;
246  bool m_blockDurationMinutesHasBeenSet;
247 
248  Aws::Utils::DateTime m_validUntil;
249  bool m_validUntilHasBeenSet;
250 
251  InstanceInterruptionBehavior m_instanceInterruptionBehavior;
252  bool m_instanceInterruptionBehaviorHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace EC2
257 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::InstanceInterruptionBehavior
InstanceInterruptionBehavior
Definition: InstanceInterruptionBehavior.h:17
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SetMaxPrice
void SetMaxPrice(Aws::String &&value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:63
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SetInstanceInterruptionBehavior
void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:217
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::LaunchTemplateSpotMarketOptionsRequest
LaunchTemplateSpotMarketOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SpotInstanceTypeHasBeenSet
bool SpotInstanceTypeHasBeenSet() const
Definition: LaunchTemplateSpotMarketOptionsRequest.h:94
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::GetSpotInstanceType
const SpotInstanceType & GetSpotInstanceType() const
Definition: LaunchTemplateSpotMarketOptionsRequest.h:89
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::WithBlockDurationMinutes
LaunchTemplateSpotMarketOptionsRequest & WithBlockDurationMinutes(int value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:143
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::GetInstanceInterruptionBehavior
const InstanceInterruptionBehavior & GetInstanceInterruptionBehavior() const
Definition: LaunchTemplateSpotMarketOptionsRequest.h:205
DateTime.h
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SetBlockDurationMinutes
void SetBlockDurationMinutes(int value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:136
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::WithSpotInstanceType
LaunchTemplateSpotMarketOptionsRequest & WithSpotInstanceType(const SpotInstanceType &value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:109
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::WithValidUntil
LaunchTemplateSpotMarketOptionsRequest & WithValidUntil(Aws::Utils::DateTime &&value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:198
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest
Definition: LaunchTemplateSpotMarketOptionsRequest.h:35
AWSStreamFwd.h
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::GetBlockDurationMinutes
int GetBlockDurationMinutes() const
Definition: LaunchTemplateSpotMarketOptionsRequest.h:122
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::GetValidUntil
const Aws::Utils::DateTime & GetValidUntil() const
Definition: LaunchTemplateSpotMarketOptionsRequest.h:153
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SetValidUntil
void SetValidUntil(const Aws::Utils::DateTime &value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:171
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::operator=
LaunchTemplateSpotMarketOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::MaxPriceHasBeenSet
bool MaxPriceHasBeenSet() const
Definition: LaunchTemplateSpotMarketOptionsRequest.h:53
Aws::EC2::Model::SpotInstanceType
SpotInstanceType
Definition: SpotInstanceType.h:17
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::InstanceInterruptionBehaviorHasBeenSet
bool InstanceInterruptionBehaviorHasBeenSet() const
Definition: LaunchTemplateSpotMarketOptionsRequest.h:211
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::WithValidUntil
LaunchTemplateSpotMarketOptionsRequest & WithValidUntil(const Aws::Utils::DateTime &value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:189
InstanceInterruptionBehavior.h
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::BlockDurationMinutesHasBeenSet
bool BlockDurationMinutesHasBeenSet() const
Definition: LaunchTemplateSpotMarketOptionsRequest.h:129
AWSString.h
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::ValidUntilHasBeenSet
bool ValidUntilHasBeenSet() const
Definition: LaunchTemplateSpotMarketOptionsRequest.h:162
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SetInstanceInterruptionBehavior
void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:223
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::WithSpotInstanceType
LaunchTemplateSpotMarketOptionsRequest & WithSpotInstanceType(SpotInstanceType &&value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:114
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::WithMaxPrice
LaunchTemplateSpotMarketOptionsRequest & WithMaxPrice(const char *value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:83
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SetValidUntil
void SetValidUntil(Aws::Utils::DateTime &&value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:180
SpotInstanceType.h
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SetSpotInstanceType
void SetSpotInstanceType(SpotInstanceType &&value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:104
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SetSpotInstanceType
void SetSpotInstanceType(const SpotInstanceType &value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:99
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SetMaxPrice
void SetMaxPrice(const Aws::String &value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:58
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::SetMaxPrice
void SetMaxPrice(const char *value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:68
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::WithInstanceInterruptionBehavior
LaunchTemplateSpotMarketOptionsRequest & WithInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:229
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::GetMaxPrice
const Aws::String & GetMaxPrice() const
Definition: LaunchTemplateSpotMarketOptionsRequest.h:48
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::WithMaxPrice
LaunchTemplateSpotMarketOptionsRequest & WithMaxPrice(const Aws::String &value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:73
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::WithInstanceInterruptionBehavior
LaunchTemplateSpotMarketOptionsRequest & WithInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:235
EC2_EXPORTS.h
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::WithMaxPrice
LaunchTemplateSpotMarketOptionsRequest & WithMaxPrice(Aws::String &&value)
Definition: LaunchTemplateSpotMarketOptionsRequest.h:78
Aws::EC2::Model::LaunchTemplateSpotMarketOptionsRequest::LaunchTemplateSpotMarketOptionsRequest
LaunchTemplateSpotMarketOptionsRequest()