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/core/utils/DateTime.h>
11#include <aws/ec2/model/SpotInstanceStateFault.h>
12#include <aws/ec2/model/LaunchSpecification.h>
13#include <aws/ec2/model/RIProductDescription.h>
14#include <aws/ec2/model/SpotInstanceState.h>
15#include <aws/ec2/model/SpotInstanceStatus.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/ec2/model/SpotInstanceType.h>
18#include <aws/ec2/model/InstanceInterruptionBehavior.h>
19#include <aws/ec2/model/Tag.h>
60 inline void SetActualBlockHourlyPrice(
const char* value) { m_actualBlockHourlyPriceHasBeenSet =
true; m_actualBlockHourlyPrice.assign(value); }
76 inline void SetAvailabilityZoneGroup(
const char* value) { m_availabilityZoneGroupHasBeenSet =
true; m_availabilityZoneGroup.assign(value); }
88 inline void SetBlockDurationMinutes(
int value) { m_blockDurationMinutesHasBeenSet =
true; m_blockDurationMinutes = value; }
127 inline void SetInstanceId(
const char* value) { m_instanceIdHasBeenSet =
true; m_instanceId.assign(value); }
142 inline void SetLaunchGroup(
const char* value) { m_launchGroupHasBeenSet =
true; m_launchGroup.assign(value); }
168 inline void SetLaunchedAvailabilityZone(
const char* value) { m_launchedAvailabilityZoneHasBeenSet =
true; m_launchedAvailabilityZone.assign(value); }
194 inline void SetSpotInstanceRequestId(
const char* value) { m_spotInstanceRequestIdHasBeenSet =
true; m_spotInstanceRequestId.assign(value); }
213 inline void SetSpotPrice(
const char* value) { m_spotPriceHasBeenSet =
true; m_spotPrice.assign(value); }
319 bool m_actualBlockHourlyPriceHasBeenSet =
false;
322 bool m_availabilityZoneGroupHasBeenSet =
false;
324 int m_blockDurationMinutes;
325 bool m_blockDurationMinutesHasBeenSet =
false;
328 bool m_createTimeHasBeenSet =
false;
331 bool m_faultHasBeenSet =
false;
334 bool m_instanceIdHasBeenSet =
false;
337 bool m_launchGroupHasBeenSet =
false;
340 bool m_launchSpecificationHasBeenSet =
false;
343 bool m_launchedAvailabilityZoneHasBeenSet =
false;
346 bool m_productDescriptionHasBeenSet =
false;
349 bool m_spotInstanceRequestIdHasBeenSet =
false;
352 bool m_spotPriceHasBeenSet =
false;
355 bool m_stateHasBeenSet =
false;
358 bool m_statusHasBeenSet =
false;
361 bool m_tagsHasBeenSet =
false;
364 bool m_typeHasBeenSet =
false;
367 bool m_validFromHasBeenSet =
false;
370 bool m_validUntilHasBeenSet =
false;
373 bool m_instanceInterruptionBehaviorHasBeenSet =
false;
void SetSpotPrice(const char *value)
bool LaunchSpecificationHasBeenSet() const
void SetLaunchSpecification(const LaunchSpecification &value)
SpotInstanceRequest & WithStatus(SpotInstanceStatus &&value)
void SetType(SpotInstanceType &&value)
SpotInstanceRequest & WithValidUntil(Aws::Utils::DateTime &&value)
SpotInstanceRequest & WithInstanceId(Aws::String &&value)
void SetProductDescription(RIProductDescription &&value)
bool TypeHasBeenSet() const
SpotInstanceRequest & WithLaunchedAvailabilityZone(Aws::String &&value)
void SetAvailabilityZoneGroup(Aws::String &&value)
SpotInstanceRequest & WithType(const SpotInstanceType &value)
SpotInstanceRequest & WithLaunchGroup(const Aws::String &value)
SpotInstanceRequest & WithLaunchedAvailabilityZone(const char *value)
SpotInstanceRequest & WithStatus(const SpotInstanceStatus &value)
bool ProductDescriptionHasBeenSet() const
SpotInstanceRequest & WithInstanceId(const Aws::String &value)
SpotInstanceRequest & WithValidUntil(const Aws::Utils::DateTime &value)
SpotInstanceRequest & AddTags(Tag &&value)
int GetBlockDurationMinutes() const
void SetFault(SpotInstanceStateFault &&value)
bool AvailabilityZoneGroupHasBeenSet() const
SpotInstanceRequest & WithLaunchSpecification(LaunchSpecification &&value)
bool LaunchedAvailabilityZoneHasBeenSet() const
SpotInstanceRequest & WithSpotPrice(Aws::String &&value)
void SetSpotInstanceRequestId(Aws::String &&value)
SpotInstanceRequest & WithLaunchedAvailabilityZone(const Aws::String &value)
SpotInstanceRequest & WithSpotInstanceRequestId(const char *value)
void SetCreateTime(Aws::Utils::DateTime &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SpotInstanceRequest & WithInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetValidFrom(const Aws::Utils::DateTime &value)
SpotInstanceRequest & WithSpotPrice(const Aws::String &value)
void SetState(const SpotInstanceState &value)
SpotInstanceRequest & WithLaunchSpecification(const LaunchSpecification &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetSpotPrice(const Aws::String &value)
const SpotInstanceStatus & GetStatus() const
SpotInstanceRequest & WithCreateTime(const Aws::Utils::DateTime &value)
bool InstanceIdHasBeenSet() const
const SpotInstanceStateFault & GetFault() const
const Aws::Utils::DateTime & GetCreateTime() const
void SetActualBlockHourlyPrice(const Aws::String &value)
SpotInstanceRequest & WithActualBlockHourlyPrice(const Aws::String &value)
SpotInstanceRequest & WithSpotPrice(const char *value)
bool FaultHasBeenSet() const
void SetLaunchedAvailabilityZone(Aws::String &&value)
AWS_EC2_API SpotInstanceRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCreateTime(const Aws::Utils::DateTime &value)
void SetInstanceId(const char *value)
void SetInstanceId(Aws::String &&value)
bool SpotInstanceRequestIdHasBeenSet() const
bool ActualBlockHourlyPriceHasBeenSet() const
const SpotInstanceState & GetState() const
SpotInstanceRequest & WithState(SpotInstanceState &&value)
const Aws::String & GetActualBlockHourlyPrice() const
const Aws::Utils::DateTime & GetValidUntil() const
const Aws::String & GetLaunchGroup() const
void SetState(SpotInstanceState &&value)
void SetType(const SpotInstanceType &value)
bool SpotPriceHasBeenSet() const
void SetStatus(SpotInstanceStatus &&value)
const LaunchSpecification & GetLaunchSpecification() const
void SetLaunchedAvailabilityZone(const char *value)
SpotInstanceRequest & WithProductDescription(RIProductDescription &&value)
bool CreateTimeHasBeenSet() const
void SetAvailabilityZoneGroup(const Aws::String &value)
AWS_EC2_API SpotInstanceRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotInstanceRequest & WithInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
void SetValidUntil(const Aws::Utils::DateTime &value)
void SetValidUntil(Aws::Utils::DateTime &&value)
const Aws::Vector< Tag > & GetTags() const
SpotInstanceRequest & WithAvailabilityZoneGroup(const char *value)
bool InstanceInterruptionBehaviorHasBeenSet() const
bool LaunchGroupHasBeenSet() const
SpotInstanceRequest & WithAvailabilityZoneGroup(Aws::String &&value)
void SetProductDescription(const RIProductDescription &value)
bool BlockDurationMinutesHasBeenSet() const
SpotInstanceRequest & WithAvailabilityZoneGroup(const Aws::String &value)
SpotInstanceRequest & WithCreateTime(Aws::Utils::DateTime &&value)
SpotInstanceRequest & WithTags(Aws::Vector< Tag > &&value)
SpotInstanceRequest & WithLaunchGroup(const char *value)
SpotInstanceRequest & WithActualBlockHourlyPrice(Aws::String &&value)
SpotInstanceRequest & WithActualBlockHourlyPrice(const char *value)
bool StatusHasBeenSet() const
void SetValidFrom(Aws::Utils::DateTime &&value)
SpotInstanceRequest & WithValidFrom(const Aws::Utils::DateTime &value)
SpotInstanceRequest & WithType(SpotInstanceType &&value)
bool ValidUntilHasBeenSet() const
bool TagsHasBeenSet() const
const Aws::String & GetLaunchedAvailabilityZone() const
SpotInstanceRequest & WithSpotInstanceRequestId(const Aws::String &value)
void SetAvailabilityZoneGroup(const char *value)
bool StateHasBeenSet() const
AWS_EC2_API SpotInstanceRequest()
SpotInstanceRequest & WithLaunchGroup(Aws::String &&value)
const InstanceInterruptionBehavior & GetInstanceInterruptionBehavior() const
const Aws::String & GetInstanceId() const
SpotInstanceRequest & WithSpotInstanceRequestId(Aws::String &&value)
SpotInstanceRequest & WithTags(const Aws::Vector< Tag > &value)
const RIProductDescription & GetProductDescription() const
void SetSpotInstanceRequestId(const Aws::String &value)
void SetActualBlockHourlyPrice(const char *value)
SpotInstanceRequest & WithBlockDurationMinutes(int value)
void SetSpotPrice(Aws::String &&value)
void SetLaunchSpecification(LaunchSpecification &&value)
SpotInstanceRequest & WithFault(SpotInstanceStateFault &&value)
void SetLaunchedAvailabilityZone(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
void SetLaunchGroup(Aws::String &&value)
SpotInstanceRequest & WithState(const SpotInstanceState &value)
const SpotInstanceType & GetType() const
void SetTags(const Aws::Vector< Tag > &value)
void SetLaunchGroup(const Aws::String &value)
void SetBlockDurationMinutes(int value)
const Aws::Utils::DateTime & GetValidFrom() const
void SetInstanceInterruptionBehavior(InstanceInterruptionBehavior &&value)
void SetFault(const SpotInstanceStateFault &value)
void SetLaunchGroup(const char *value)
SpotInstanceRequest & WithValidFrom(Aws::Utils::DateTime &&value)
const Aws::String & GetSpotPrice() const
void SetInstanceInterruptionBehavior(const InstanceInterruptionBehavior &value)
SpotInstanceRequest & WithInstanceId(const char *value)
void SetStatus(const SpotInstanceStatus &value)
const Aws::String & GetAvailabilityZoneGroup() const
SpotInstanceRequest & AddTags(const Tag &value)
const Aws::String & GetSpotInstanceRequestId() const
void SetSpotInstanceRequestId(const char *value)
void SetActualBlockHourlyPrice(Aws::String &&value)
bool ValidFromHasBeenSet() const
SpotInstanceRequest & WithProductDescription(const RIProductDescription &value)
SpotInstanceRequest & WithFault(const SpotInstanceStateFault &value)
InstanceInterruptionBehavior
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream