AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SpotMarketOptions.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/SpotInstanceType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/InstanceInterruptionBehavior.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API SpotMarketOptions();
38 AWS_EC2_API SpotMarketOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
54 inline const Aws::String& GetMaxPrice() const{ return m_maxPrice; }
55 inline bool MaxPriceHasBeenSet() const { return m_maxPriceHasBeenSet; }
56 inline void SetMaxPrice(const Aws::String& value) { m_maxPriceHasBeenSet = true; m_maxPrice = value; }
57 inline void SetMaxPrice(Aws::String&& value) { m_maxPriceHasBeenSet = true; m_maxPrice = std::move(value); }
58 inline void SetMaxPrice(const char* value) { m_maxPriceHasBeenSet = true; m_maxPrice.assign(value); }
59 inline SpotMarketOptions& WithMaxPrice(const Aws::String& value) { SetMaxPrice(value); return *this;}
60 inline SpotMarketOptions& WithMaxPrice(Aws::String&& value) { SetMaxPrice(std::move(value)); return *this;}
61 inline SpotMarketOptions& WithMaxPrice(const char* value) { SetMaxPrice(value); return *this;}
63
65
71 inline const SpotInstanceType& GetSpotInstanceType() const{ return m_spotInstanceType; }
72 inline bool SpotInstanceTypeHasBeenSet() const { return m_spotInstanceTypeHasBeenSet; }
73 inline void SetSpotInstanceType(const SpotInstanceType& value) { m_spotInstanceTypeHasBeenSet = true; m_spotInstanceType = value; }
74 inline void SetSpotInstanceType(SpotInstanceType&& value) { m_spotInstanceTypeHasBeenSet = true; m_spotInstanceType = std::move(value); }
75 inline SpotMarketOptions& WithSpotInstanceType(const SpotInstanceType& value) { SetSpotInstanceType(value); return *this;}
76 inline SpotMarketOptions& WithSpotInstanceType(SpotInstanceType&& value) { SetSpotInstanceType(std::move(value)); return *this;}
78
80
83 inline int GetBlockDurationMinutes() const{ return m_blockDurationMinutes; }
84 inline bool BlockDurationMinutesHasBeenSet() const { return m_blockDurationMinutesHasBeenSet; }
85 inline void SetBlockDurationMinutes(int value) { m_blockDurationMinutesHasBeenSet = true; m_blockDurationMinutes = value; }
86 inline SpotMarketOptions& WithBlockDurationMinutes(int value) { SetBlockDurationMinutes(value); return *this;}
88
90
100 inline const Aws::Utils::DateTime& GetValidUntil() const{ return m_validUntil; }
101 inline bool ValidUntilHasBeenSet() const { return m_validUntilHasBeenSet; }
102 inline void SetValidUntil(const Aws::Utils::DateTime& value) { m_validUntilHasBeenSet = true; m_validUntil = value; }
103 inline void SetValidUntil(Aws::Utils::DateTime&& value) { m_validUntilHasBeenSet = true; m_validUntil = std::move(value); }
104 inline SpotMarketOptions& WithValidUntil(const Aws::Utils::DateTime& value) { SetValidUntil(value); return *this;}
105 inline SpotMarketOptions& WithValidUntil(Aws::Utils::DateTime&& value) { SetValidUntil(std::move(value)); return *this;}
107
109
126 inline const InstanceInterruptionBehavior& GetInstanceInterruptionBehavior() const{ return m_instanceInterruptionBehavior; }
127 inline bool InstanceInterruptionBehaviorHasBeenSet() const { return m_instanceInterruptionBehaviorHasBeenSet; }
128 inline void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior& value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = value; }
129 inline void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior&& value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = std::move(value); }
133 private:
134
135 Aws::String m_maxPrice;
136 bool m_maxPriceHasBeenSet = false;
137
138 SpotInstanceType m_spotInstanceType;
139 bool m_spotInstanceTypeHasBeenSet = false;
140
141 int m_blockDurationMinutes;
142 bool m_blockDurationMinutesHasBeenSet = false;
143
144 Aws::Utils::DateTime m_validUntil;
145 bool m_validUntilHasBeenSet = false;
146
147 InstanceInterruptionBehavior m_instanceInterruptionBehavior;
148 bool m_instanceInterruptionBehaviorHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace EC2
153} // namespace Aws
SpotMarketOptions & WithValidUntil(Aws::Utils::DateTime &&value)
const SpotInstanceType & GetSpotInstanceType() const
void SetValidUntil(const Aws::Utils::DateTime &value)
void SetMaxPrice(const char *value)
SpotMarketOptions & WithMaxPrice(Aws::String &&value)
SpotMarketOptions & WithMaxPrice(const Aws::String &value)
SpotMarketOptions & WithInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
SpotMarketOptions & WithValidUntil(const Aws::Utils::DateTime &value)
void SetMaxPrice(const Aws::String &value)
SpotMarketOptions & WithInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
AWS_EC2_API SpotMarketOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotMarketOptions & WithBlockDurationMinutes(int value)
const Aws::String & GetMaxPrice() const
void SetMaxPrice(Aws::String &&value)
void SetSpotInstanceType(const SpotInstanceType &value)
void SetSpotInstanceType(SpotInstanceType &&value)
SpotMarketOptions & WithSpotInstanceType(SpotInstanceType &&value)
const Aws::Utils::DateTime & GetValidUntil() const
AWS_EC2_API SpotMarketOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
const InstanceInterruptionBehavior & GetInstanceInterruptionBehavior() const
void SetValidUntil(Aws::Utils::DateTime &&value)
SpotMarketOptions & WithSpotInstanceType(const SpotInstanceType &value)
SpotMarketOptions & WithMaxPrice(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream