AWS SDK for C++  1.9.74
AWS SDK for C++
SpotMarketOptions.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 
49  inline const Aws::String& GetMaxPrice() const{ return m_maxPrice; }
50 
55  inline bool MaxPriceHasBeenSet() const { return m_maxPriceHasBeenSet; }
56 
61  inline void SetMaxPrice(const Aws::String& value) { m_maxPriceHasBeenSet = true; m_maxPrice = value; }
62 
67  inline void SetMaxPrice(Aws::String&& value) { m_maxPriceHasBeenSet = true; m_maxPrice = std::move(value); }
68 
73  inline void SetMaxPrice(const char* value) { m_maxPriceHasBeenSet = true; m_maxPrice.assign(value); }
74 
79  inline SpotMarketOptions& WithMaxPrice(const Aws::String& value) { SetMaxPrice(value); return *this;}
80 
85  inline SpotMarketOptions& WithMaxPrice(Aws::String&& value) { SetMaxPrice(std::move(value)); return *this;}
86 
91  inline SpotMarketOptions& WithMaxPrice(const char* value) { SetMaxPrice(value); return *this;}
92 
93 
100  inline const SpotInstanceType& GetSpotInstanceType() const{ return m_spotInstanceType; }
101 
108  inline bool SpotInstanceTypeHasBeenSet() const { return m_spotInstanceTypeHasBeenSet; }
109 
116  inline void SetSpotInstanceType(const SpotInstanceType& value) { m_spotInstanceTypeHasBeenSet = true; m_spotInstanceType = value; }
117 
124  inline void SetSpotInstanceType(SpotInstanceType&& value) { m_spotInstanceTypeHasBeenSet = true; m_spotInstanceType = std::move(value); }
125 
132  inline SpotMarketOptions& WithSpotInstanceType(const SpotInstanceType& value) { SetSpotInstanceType(value); return *this;}
133 
140  inline SpotMarketOptions& WithSpotInstanceType(SpotInstanceType&& value) { SetSpotInstanceType(std::move(value)); return *this;}
141 
142 
146  inline int GetBlockDurationMinutes() const{ return m_blockDurationMinutes; }
147 
151  inline bool BlockDurationMinutesHasBeenSet() const { return m_blockDurationMinutesHasBeenSet; }
152 
156  inline void SetBlockDurationMinutes(int value) { m_blockDurationMinutesHasBeenSet = true; m_blockDurationMinutes = value; }
157 
161  inline SpotMarketOptions& WithBlockDurationMinutes(int value) { SetBlockDurationMinutes(value); return *this;}
162 
163 
174  inline const Aws::Utils::DateTime& GetValidUntil() const{ return m_validUntil; }
175 
186  inline bool ValidUntilHasBeenSet() const { return m_validUntilHasBeenSet; }
187 
198  inline void SetValidUntil(const Aws::Utils::DateTime& value) { m_validUntilHasBeenSet = true; m_validUntil = value; }
199 
210  inline void SetValidUntil(Aws::Utils::DateTime&& value) { m_validUntilHasBeenSet = true; m_validUntil = std::move(value); }
211 
222  inline SpotMarketOptions& WithValidUntil(const Aws::Utils::DateTime& value) { SetValidUntil(value); return *this;}
223 
234  inline SpotMarketOptions& WithValidUntil(Aws::Utils::DateTime&& value) { SetValidUntil(std::move(value)); return *this;}
235 
236 
241  inline const InstanceInterruptionBehavior& GetInstanceInterruptionBehavior() const{ return m_instanceInterruptionBehavior; }
242 
247  inline bool InstanceInterruptionBehaviorHasBeenSet() const { return m_instanceInterruptionBehaviorHasBeenSet; }
248 
253  inline void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior& value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = value; }
254 
259  inline void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior&& value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = std::move(value); }
260 
265  inline SpotMarketOptions& WithInstanceInterruptionBehavior(const InstanceInterruptionBehavior& value) { SetInstanceInterruptionBehavior(value); return *this;}
266 
271  inline SpotMarketOptions& WithInstanceInterruptionBehavior(InstanceInterruptionBehavior&& value) { SetInstanceInterruptionBehavior(std::move(value)); return *this;}
272 
273  private:
274 
275  Aws::String m_maxPrice;
276  bool m_maxPriceHasBeenSet;
277 
278  SpotInstanceType m_spotInstanceType;
279  bool m_spotInstanceTypeHasBeenSet;
280 
281  int m_blockDurationMinutes;
282  bool m_blockDurationMinutesHasBeenSet;
283 
284  Aws::Utils::DateTime m_validUntil;
285  bool m_validUntilHasBeenSet;
286 
287  InstanceInterruptionBehavior m_instanceInterruptionBehavior;
288  bool m_instanceInterruptionBehaviorHasBeenSet;
289  };
290 
291 } // namespace Model
292 } // namespace EC2
293 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::InstanceInterruptionBehavior
InstanceInterruptionBehavior
Definition: InstanceInterruptionBehavior.h:17
Aws::EC2::Model::SpotMarketOptions::BlockDurationMinutesHasBeenSet
bool BlockDurationMinutesHasBeenSet() const
Definition: SpotMarketOptions.h:151
Aws::EC2::Model::SpotMarketOptions
Definition: SpotMarketOptions.h:35
Aws::EC2::Model::SpotMarketOptions::operator=
SpotMarketOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotMarketOptions::SpotMarketOptions
SpotMarketOptions()
Aws::EC2::Model::SpotMarketOptions::GetValidUntil
const Aws::Utils::DateTime & GetValidUntil() const
Definition: SpotMarketOptions.h:174
Aws::EC2::Model::SpotMarketOptions::SetValidUntil
void SetValidUntil(const Aws::Utils::DateTime &value)
Definition: SpotMarketOptions.h:198
Aws::EC2::Model::SpotMarketOptions::WithValidUntil
SpotMarketOptions & WithValidUntil(const Aws::Utils::DateTime &value)
Definition: SpotMarketOptions.h:222
DateTime.h
Aws::EC2::Model::SpotMarketOptions::WithValidUntil
SpotMarketOptions & WithValidUntil(Aws::Utils::DateTime &&value)
Definition: SpotMarketOptions.h:234
Aws::EC2::Model::SpotMarketOptions::WithInstanceInterruptionBehavior
SpotMarketOptions & WithInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
Definition: SpotMarketOptions.h:265
Aws::EC2::Model::SpotMarketOptions::GetSpotInstanceType
const SpotInstanceType & GetSpotInstanceType() const
Definition: SpotMarketOptions.h:100
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SpotMarketOptions::SetMaxPrice
void SetMaxPrice(const Aws::String &value)
Definition: SpotMarketOptions.h:61
Aws::EC2::Model::SpotMarketOptions::WithSpotInstanceType
SpotMarketOptions & WithSpotInstanceType(SpotInstanceType &&value)
Definition: SpotMarketOptions.h:140
Aws::EC2::Model::SpotMarketOptions::ValidUntilHasBeenSet
bool ValidUntilHasBeenSet() const
Definition: SpotMarketOptions.h:186
Aws::EC2::Model::SpotMarketOptions::GetMaxPrice
const Aws::String & GetMaxPrice() const
Definition: SpotMarketOptions.h:49
AWSStreamFwd.h
Aws::EC2::Model::SpotMarketOptions::SetSpotInstanceType
void SetSpotInstanceType(SpotInstanceType &&value)
Definition: SpotMarketOptions.h:124
Aws::EC2::Model::SpotMarketOptions::GetBlockDurationMinutes
int GetBlockDurationMinutes() const
Definition: SpotMarketOptions.h:146
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SpotMarketOptions::WithMaxPrice
SpotMarketOptions & WithMaxPrice(const Aws::String &value)
Definition: SpotMarketOptions.h:79
Aws::EC2::Model::SpotMarketOptions::SetInstanceInterruptionBehavior
void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
Definition: SpotMarketOptions.h:259
Aws::EC2::Model::SpotMarketOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SpotMarketOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SpotInstanceType
SpotInstanceType
Definition: SpotInstanceType.h:17
Aws::EC2::Model::SpotMarketOptions::WithBlockDurationMinutes
SpotMarketOptions & WithBlockDurationMinutes(int value)
Definition: SpotMarketOptions.h:161
Aws::EC2::Model::SpotMarketOptions::SpotMarketOptions
SpotMarketOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SpotMarketOptions::InstanceInterruptionBehaviorHasBeenSet
bool InstanceInterruptionBehaviorHasBeenSet() const
Definition: SpotMarketOptions.h:247
InstanceInterruptionBehavior.h
AWSString.h
Aws::EC2::Model::SpotMarketOptions::SetMaxPrice
void SetMaxPrice(const char *value)
Definition: SpotMarketOptions.h:73
SpotInstanceType.h
Aws::EC2::Model::SpotMarketOptions::WithSpotInstanceType
SpotMarketOptions & WithSpotInstanceType(const SpotInstanceType &value)
Definition: SpotMarketOptions.h:132
Aws::EC2::Model::SpotMarketOptions::SetInstanceInterruptionBehavior
void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
Definition: SpotMarketOptions.h:253
Aws::EC2::Model::SpotMarketOptions::SetMaxPrice
void SetMaxPrice(Aws::String &&value)
Definition: SpotMarketOptions.h:67
Aws::EC2::Model::SpotMarketOptions::WithInstanceInterruptionBehavior
SpotMarketOptions & WithInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
Definition: SpotMarketOptions.h:271
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SpotMarketOptions::SpotInstanceTypeHasBeenSet
bool SpotInstanceTypeHasBeenSet() const
Definition: SpotMarketOptions.h:108
Aws::EC2::Model::SpotMarketOptions::SetBlockDurationMinutes
void SetBlockDurationMinutes(int value)
Definition: SpotMarketOptions.h:156
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::SpotMarketOptions::GetInstanceInterruptionBehavior
const InstanceInterruptionBehavior & GetInstanceInterruptionBehavior() const
Definition: SpotMarketOptions.h:241
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SpotMarketOptions::SetSpotInstanceType
void SetSpotInstanceType(const SpotInstanceType &value)
Definition: SpotMarketOptions.h:116
Aws::EC2::Model::SpotMarketOptions::WithMaxPrice
SpotMarketOptions & WithMaxPrice(Aws::String &&value)
Definition: SpotMarketOptions.h:85
EC2_EXPORTS.h
Aws::EC2::Model::SpotMarketOptions::SetValidUntil
void SetValidUntil(Aws::Utils::DateTime &&value)
Definition: SpotMarketOptions.h:210
Aws::EC2::Model::SpotMarketOptions::WithMaxPrice
SpotMarketOptions & WithMaxPrice(const char *value)
Definition: SpotMarketOptions.h:91
Aws::EC2::Model::SpotMarketOptions::MaxPriceHasBeenSet
bool MaxPriceHasBeenSet() const
Definition: SpotMarketOptions.h:55