AWS SDK for C++

AWS SDK for C++ Version 1.11.605

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() = default;
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
56 inline const Aws::String& GetMaxPrice() const { return m_maxPrice; }
57 inline bool MaxPriceHasBeenSet() const { return m_maxPriceHasBeenSet; }
58 template<typename MaxPriceT = Aws::String>
59 void SetMaxPrice(MaxPriceT&& value) { m_maxPriceHasBeenSet = true; m_maxPrice = std::forward<MaxPriceT>(value); }
60 template<typename MaxPriceT = Aws::String>
61 SpotMarketOptions& WithMaxPrice(MaxPriceT&& value) { SetMaxPrice(std::forward<MaxPriceT>(value)); return *this;}
63
65
71 inline SpotInstanceType GetSpotInstanceType() const { return m_spotInstanceType; }
72 inline bool SpotInstanceTypeHasBeenSet() const { return m_spotInstanceTypeHasBeenSet; }
73 inline void SetSpotInstanceType(SpotInstanceType value) { m_spotInstanceTypeHasBeenSet = true; m_spotInstanceType = value; }
76
78
81 inline int GetBlockDurationMinutes() const { return m_blockDurationMinutes; }
82 inline bool BlockDurationMinutesHasBeenSet() const { return m_blockDurationMinutesHasBeenSet; }
83 inline void SetBlockDurationMinutes(int value) { m_blockDurationMinutesHasBeenSet = true; m_blockDurationMinutes = value; }
84 inline SpotMarketOptions& WithBlockDurationMinutes(int value) { SetBlockDurationMinutes(value); return *this;}
86
88
98 inline const Aws::Utils::DateTime& GetValidUntil() const { return m_validUntil; }
99 inline bool ValidUntilHasBeenSet() const { return m_validUntilHasBeenSet; }
100 template<typename ValidUntilT = Aws::Utils::DateTime>
101 void SetValidUntil(ValidUntilT&& value) { m_validUntilHasBeenSet = true; m_validUntil = std::forward<ValidUntilT>(value); }
102 template<typename ValidUntilT = Aws::Utils::DateTime>
103 SpotMarketOptions& WithValidUntil(ValidUntilT&& value) { SetValidUntil(std::forward<ValidUntilT>(value)); return *this;}
105
107
124 inline InstanceInterruptionBehavior GetInstanceInterruptionBehavior() const { return m_instanceInterruptionBehavior; }
125 inline bool InstanceInterruptionBehaviorHasBeenSet() const { return m_instanceInterruptionBehaviorHasBeenSet; }
126 inline void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior value) { m_instanceInterruptionBehaviorHasBeenSet = true; m_instanceInterruptionBehavior = value; }
129 private:
130
131 Aws::String m_maxPrice;
132 bool m_maxPriceHasBeenSet = false;
133
135 bool m_spotInstanceTypeHasBeenSet = false;
136
137 int m_blockDurationMinutes{0};
138 bool m_blockDurationMinutesHasBeenSet = false;
139
140 Aws::Utils::DateTime m_validUntil{};
141 bool m_validUntilHasBeenSet = false;
142
144 bool m_instanceInterruptionBehaviorHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace EC2
149} // namespace Aws
void SetValidUntil(ValidUntilT &&value)
SpotMarketOptions & WithSpotInstanceType(SpotInstanceType value)
SpotMarketOptions & WithValidUntil(ValidUntilT &&value)
SpotInstanceType GetSpotInstanceType() const
SpotMarketOptions & WithInstanceInterruptionBehavior(InstanceInterruptionBehavior value)
AWS_EC2_API SpotMarketOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotMarketOptions & WithMaxPrice(MaxPriceT &&value)
void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior value)
SpotMarketOptions & WithBlockDurationMinutes(int value)
const Aws::String & GetMaxPrice() const
const Aws::Utils::DateTime & GetValidUntil() const
void SetSpotInstanceType(SpotInstanceType value)
AWS_EC2_API SpotMarketOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API SpotMarketOptions()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceInterruptionBehavior GetInstanceInterruptionBehavior() const
void SetMaxPrice(MaxPriceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream