7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/CapacityReservationInstancePlatform.h>
11#include <aws/ec2/model/CapacityReservationTenancy.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/EndDateType.h>
14#include <aws/ec2/model/InstanceMatchCriteria.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/ec2/model/TagSpecification.h>
57 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
73 inline void SetInstanceType(
const char* value) { m_instanceTypeHasBeenSet =
true; m_instanceType.assign(value); }
99 inline void SetAvailabilityZone(
const char* value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone.assign(value); }
114 inline void SetAvailabilityZoneId(
const char* value) { m_availabilityZoneIdHasBeenSet =
true; m_availabilityZoneId.assign(value); }
145 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
159 inline void SetEbsOptimized(
bool value) { m_ebsOptimizedHasBeenSet =
true; m_ebsOptimized = value; }
169 inline void SetEphemeralStorage(
bool value) { m_ephemeralStorageHasBeenSet =
true; m_ephemeralStorage = value; }
258 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
271 inline void SetOutpostArn(
const char* value) { m_outpostArnHasBeenSet =
true; m_outpostArn.assign(value); }
289 inline void SetPlacementGroupArn(
const char* value) { m_placementGroupArnHasBeenSet =
true; m_placementGroupArn.assign(value); }
297 bool m_clientTokenHasBeenSet =
false;
300 bool m_instanceTypeHasBeenSet =
false;
303 bool m_instancePlatformHasBeenSet =
false;
306 bool m_availabilityZoneHasBeenSet =
false;
309 bool m_availabilityZoneIdHasBeenSet =
false;
312 bool m_tenancyHasBeenSet =
false;
315 bool m_instanceCountHasBeenSet =
false;
318 bool m_ebsOptimizedHasBeenSet =
false;
320 bool m_ephemeralStorage;
321 bool m_ephemeralStorageHasBeenSet =
false;
324 bool m_endDateHasBeenSet =
false;
327 bool m_endDateTypeHasBeenSet =
false;
330 bool m_instanceMatchCriteriaHasBeenSet =
false;
333 bool m_tagSpecificationsHasBeenSet =
false;
336 bool m_dryRunHasBeenSet =
false;
339 bool m_outpostArnHasBeenSet =
false;
342 bool m_placementGroupArnHasBeenSet =
false;
AWS_EC2_API CreateCapacityReservationRequest()
CreateCapacityReservationRequest & WithOutpostArn(const Aws::String &value)
void SetAvailabilityZone(Aws::String &&value)
CreateCapacityReservationRequest & WithInstanceCount(int value)
const Aws::Utils::DateTime & GetEndDate() const
void SetInstanceType(const char *value)
CreateCapacityReservationRequest & WithClientToken(const Aws::String &value)
void SetPlacementGroupArn(const char *value)
bool AvailabilityZoneIdHasBeenSet() const
void SetEndDateType(const EndDateType &value)
void SetAvailabilityZoneId(const char *value)
bool InstanceTypeHasBeenSet() const
bool OutpostArnHasBeenSet() const
CreateCapacityReservationRequest & WithAvailabilityZoneId(const Aws::String &value)
CreateCapacityReservationRequest & WithInstanceType(const char *value)
bool PlacementGroupArnHasBeenSet() const
CreateCapacityReservationRequest & WithInstanceMatchCriteria(const InstanceMatchCriteria &value)
void SetEphemeralStorage(bool value)
CreateCapacityReservationRequest & WithAvailabilityZone(Aws::String &&value)
CreateCapacityReservationRequest & WithInstancePlatform(CapacityReservationInstancePlatform &&value)
CreateCapacityReservationRequest & AddTagSpecifications(TagSpecification &&value)
CreateCapacityReservationRequest & WithEndDateType(const EndDateType &value)
void SetInstancePlatform(CapacityReservationInstancePlatform &&value)
CreateCapacityReservationRequest & WithEndDate(const Aws::Utils::DateTime &value)
CreateCapacityReservationRequest & WithAvailabilityZoneId(Aws::String &&value)
CreateCapacityReservationRequest & WithAvailabilityZone(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
const CapacityReservationTenancy & GetTenancy() const
void SetInstanceType(const Aws::String &value)
CreateCapacityReservationRequest & WithOutpostArn(const char *value)
CreateCapacityReservationRequest & WithPlacementGroupArn(const char *value)
bool AvailabilityZoneHasBeenSet() const
void SetInstanceCount(int value)
void SetEndDate(const Aws::Utils::DateTime &value)
void SetTenancy(const CapacityReservationTenancy &value)
void SetClientToken(Aws::String &&value)
const Aws::String & GetOutpostArn() const
const Aws::String & GetAvailabilityZone() const
void SetPlacementGroupArn(const Aws::String &value)
void SetOutpostArn(const Aws::String &value)
void SetInstanceMatchCriteria(const InstanceMatchCriteria &value)
int GetInstanceCount() const
const Aws::String & GetPlacementGroupArn() const
bool EbsOptimizedHasBeenSet() const
CreateCapacityReservationRequest & WithEphemeralStorage(bool value)
void SetInstanceMatchCriteria(InstanceMatchCriteria &&value)
bool DryRunHasBeenSet() const
CreateCapacityReservationRequest & WithEbsOptimized(bool value)
CreateCapacityReservationRequest & WithAvailabilityZoneId(const char *value)
CreateCapacityReservationRequest & WithInstanceType(const Aws::String &value)
CreateCapacityReservationRequest & WithClientToken(const char *value)
bool TenancyHasBeenSet() const
bool EphemeralStorageHasBeenSet() const
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetOutpostArn(const char *value)
CreateCapacityReservationRequest & WithOutpostArn(Aws::String &&value)
bool GetEphemeralStorage() const
CreateCapacityReservationRequest & WithTenancy(const CapacityReservationTenancy &value)
void SetAvailabilityZone(const Aws::String &value)
bool ClientTokenHasBeenSet() const
bool InstancePlatformHasBeenSet() const
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetDryRun(bool value)
CreateCapacityReservationRequest & WithPlacementGroupArn(Aws::String &&value)
const InstanceMatchCriteria & GetInstanceMatchCriteria() const
void SetAvailabilityZoneId(Aws::String &&value)
void SetEbsOptimized(bool value)
const Aws::String & GetAvailabilityZoneId() const
bool InstanceMatchCriteriaHasBeenSet() const
CreateCapacityReservationRequest & WithEndDateType(EndDateType &&value)
bool EndDateHasBeenSet() const
CreateCapacityReservationRequest & WithInstanceType(Aws::String &&value)
void SetAvailabilityZoneId(const Aws::String &value)
void SetClientToken(const Aws::String &value)
bool InstanceCountHasBeenSet() const
void SetAvailabilityZone(const char *value)
void SetEndDateType(EndDateType &&value)
void SetEndDate(Aws::Utils::DateTime &&value)
virtual const char * GetServiceRequestName() const override
const CapacityReservationInstancePlatform & GetInstancePlatform() const
CreateCapacityReservationRequest & WithInstancePlatform(const CapacityReservationInstancePlatform &value)
CreateCapacityReservationRequest & WithClientToken(Aws::String &&value)
CreateCapacityReservationRequest & WithPlacementGroupArn(const Aws::String &value)
const Aws::String & GetClientToken() const
CreateCapacityReservationRequest & WithInstanceMatchCriteria(InstanceMatchCriteria &&value)
void SetClientToken(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateCapacityReservationRequest & AddTagSpecifications(const TagSpecification &value)
void SetInstancePlatform(const CapacityReservationInstancePlatform &value)
bool TagSpecificationsHasBeenSet() const
CreateCapacityReservationRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateCapacityReservationRequest & WithAvailabilityZone(const char *value)
bool EndDateTypeHasBeenSet() const
void SetInstanceType(Aws::String &&value)
void SetOutpostArn(Aws::String &&value)
CreateCapacityReservationRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
const EndDateType & GetEndDateType() const
bool GetEbsOptimized() const
void SetTenancy(CapacityReservationTenancy &&value)
const Aws::String & GetInstanceType() const
void SetPlacementGroupArn(Aws::String &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateCapacityReservationRequest & WithDryRun(bool value)
CreateCapacityReservationRequest & WithEndDate(Aws::Utils::DateTime &&value)
CreateCapacityReservationRequest & WithTenancy(CapacityReservationTenancy &&value)
CapacityReservationTenancy
CapacityReservationInstancePlatform
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector