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>
58 inline void SetMaxPrice(
const char* value) { m_maxPriceHasBeenSet =
true; m_maxPrice.assign(value); }
85 inline void SetBlockDurationMinutes(
int value) { m_blockDurationMinutesHasBeenSet =
true; m_blockDurationMinutes = value; }
136 bool m_maxPriceHasBeenSet =
false;
139 bool m_spotInstanceTypeHasBeenSet =
false;
141 int m_blockDurationMinutes;
142 bool m_blockDurationMinutesHasBeenSet =
false;
145 bool m_validUntilHasBeenSet =
false;
148 bool m_instanceInterruptionBehaviorHasBeenSet =
false;
int GetBlockDurationMinutes() const
SpotMarketOptions & WithValidUntil(Aws::Utils::DateTime &&value)
const SpotInstanceType & GetSpotInstanceType() const
void SetValidUntil(const Aws::Utils::DateTime &value)
bool SpotInstanceTypeHasBeenSet() const
void SetMaxPrice(const char *value)
void SetBlockDurationMinutes(int value)
SpotMarketOptions & WithMaxPrice(Aws::String &&value)
SpotMarketOptions & WithMaxPrice(const Aws::String &value)
AWS_EC2_API SpotMarketOptions()
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)
bool BlockDurationMinutesHasBeenSet() const
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
bool ValidUntilHasBeenSet() const
bool MaxPriceHasBeenSet() 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)
bool InstanceInterruptionBehaviorHasBeenSet() const
InstanceInterruptionBehavior
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream