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/CapacityReservationInstancePlatform.h>
11#include <aws/ec2/model/CapacityReservationTenancy.h>
12#include <aws/ec2/model/CapacityReservationState.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/ec2/model/EndDateType.h>
15#include <aws/ec2/model/InstanceMatchCriteria.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <aws/ec2/model/CapacityReservationType.h>
18#include <aws/ec2/model/Tag.h>
19#include <aws/ec2/model/CapacityAllocation.h>
60 inline void SetCapacityReservationId(
const char* value) { m_capacityReservationIdHasBeenSet =
true; m_capacityReservationId.assign(value); }
75 inline void SetOwnerId(
const char* value) { m_ownerIdHasBeenSet =
true; m_ownerId.assign(value); }
89 inline void SetCapacityReservationArn(
const char* value) { m_capacityReservationArnHasBeenSet =
true; m_capacityReservationArn.assign(value); }
103 inline void SetAvailabilityZoneId(
const char* value) { m_availabilityZoneIdHasBeenSet =
true; m_availabilityZoneId.assign(value); }
118 inline void SetInstanceType(
const char* value) { m_instanceTypeHasBeenSet =
true; m_instanceType.assign(value); }
145 inline void SetAvailabilityZone(
const char* value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone.assign(value); }
176 inline void SetTotalInstanceCount(
int value) { m_totalInstanceCountHasBeenSet =
true; m_totalInstanceCount = value; }
201 inline void SetEbsOptimized(
bool value) { m_ebsOptimizedHasBeenSet =
true; m_ebsOptimized = value; }
211 inline void SetEphemeralStorage(
bool value) { m_ephemeralStorageHasBeenSet =
true; m_ephemeralStorage = value; }
338 inline void SetOutpostArn(
const char* value) { m_outpostArnHasBeenSet =
true; m_outpostArn.assign(value); }
372 inline void SetPlacementGroupArn(
const char* value) { m_placementGroupArnHasBeenSet =
true; m_placementGroupArn.assign(value); }
421 bool m_capacityReservationIdHasBeenSet =
false;
424 bool m_ownerIdHasBeenSet =
false;
427 bool m_capacityReservationArnHasBeenSet =
false;
430 bool m_availabilityZoneIdHasBeenSet =
false;
433 bool m_instanceTypeHasBeenSet =
false;
436 bool m_instancePlatformHasBeenSet =
false;
439 bool m_availabilityZoneHasBeenSet =
false;
442 bool m_tenancyHasBeenSet =
false;
444 int m_totalInstanceCount;
445 bool m_totalInstanceCountHasBeenSet =
false;
447 int m_availableInstanceCount;
448 bool m_availableInstanceCountHasBeenSet =
false;
451 bool m_ebsOptimizedHasBeenSet =
false;
453 bool m_ephemeralStorage;
454 bool m_ephemeralStorageHasBeenSet =
false;
457 bool m_stateHasBeenSet =
false;
460 bool m_startDateHasBeenSet =
false;
463 bool m_endDateHasBeenSet =
false;
466 bool m_endDateTypeHasBeenSet =
false;
469 bool m_instanceMatchCriteriaHasBeenSet =
false;
472 bool m_createDateHasBeenSet =
false;
475 bool m_tagsHasBeenSet =
false;
478 bool m_outpostArnHasBeenSet =
false;
481 bool m_capacityReservationFleetIdHasBeenSet =
false;
484 bool m_placementGroupArnHasBeenSet =
false;
487 bool m_capacityAllocationsHasBeenSet =
false;
490 bool m_reservationTypeHasBeenSet =
false;
493 bool m_unusedReservationBillingOwnerIdHasBeenSet =
false;
void SetReservationType(CapacityReservationType &&value)
void SetOwnerId(Aws::String &&value)
CapacityReservation & WithInstanceType(const Aws::String &value)
bool ReservationTypeHasBeenSet() const
void SetCreateDate(Aws::Utils::DateTime &&value)
const InstanceMatchCriteria & GetInstanceMatchCriteria() const
void SetOutpostArn(Aws::String &&value)
CapacityReservation & WithAvailableInstanceCount(int value)
bool CapacityAllocationsHasBeenSet() const
void SetCapacityReservationId(const char *value)
bool StartDateHasBeenSet() const
CapacityReservation & WithCapacityAllocations(Aws::Vector< CapacityAllocation > &&value)
bool CreateDateHasBeenSet() const
const Aws::Utils::DateTime & GetStartDate() const
const CapacityReservationInstancePlatform & GetInstancePlatform() const
void SetCapacityReservationArn(Aws::String &&value)
bool InstancePlatformHasBeenSet() const
bool TotalInstanceCountHasBeenSet() const
const Aws::String & GetInstanceType() const
CapacityReservation & WithState(const CapacityReservationState &value)
void SetTenancy(const CapacityReservationTenancy &value)
void SetInstanceMatchCriteria(InstanceMatchCriteria &&value)
bool CapacityReservationArnHasBeenSet() const
CapacityReservation & WithCapacityReservationArn(const Aws::String &value)
int GetTotalInstanceCount() const
const Aws::Utils::DateTime & GetCreateDate() const
void SetCapacityReservationFleetId(const char *value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Utils::DateTime & GetEndDate() const
void SetAvailableInstanceCount(int value)
CapacityReservation & WithPlacementGroupArn(const char *value)
void SetCapacityReservationArn(const Aws::String &value)
bool UnusedReservationBillingOwnerIdHasBeenSet() const
CapacityReservation & WithAvailabilityZoneId(const char *value)
void SetOwnerId(const Aws::String &value)
void SetOutpostArn(const char *value)
CapacityReservation & WithInstanceType(const char *value)
CapacityReservation & WithInstanceMatchCriteria(InstanceMatchCriteria &&value)
void SetAvailabilityZoneId(const Aws::String &value)
AWS_EC2_API CapacityReservation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool PlacementGroupArnHasBeenSet() const
CapacityReservation & WithOutpostArn(const Aws::String &value)
CapacityReservation & AddTags(Tag &&value)
void SetReservationType(const CapacityReservationType &value)
CapacityReservation & WithOwnerId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEphemeralStorage(bool value)
CapacityReservation & WithOutpostArn(const char *value)
void SetInstanceType(const Aws::String &value)
const Aws::String & GetCapacityReservationFleetId() const
void SetPlacementGroupArn(Aws::String &&value)
void SetState(const CapacityReservationState &value)
CapacityReservation & WithUnusedReservationBillingOwnerId(Aws::String &&value)
CapacityReservation & WithEndDateType(EndDateType &&value)
void SetEbsOptimized(bool value)
void SetCapacityReservationId(Aws::String &&value)
void SetOutpostArn(const Aws::String &value)
CapacityReservation & WithCapacityReservationFleetId(const Aws::String &value)
CapacityReservation & WithTags(const Aws::Vector< Tag > &value)
CapacityReservation & WithAvailabilityZoneId(Aws::String &&value)
CapacityReservation & WithPlacementGroupArn(Aws::String &&value)
void SetInstanceType(Aws::String &&value)
void SetState(CapacityReservationState &&value)
bool AvailabilityZoneIdHasBeenSet() const
CapacityReservation & WithEndDateType(const EndDateType &value)
const Aws::String & GetPlacementGroupArn() const
CapacityReservation & WithEndDate(Aws::Utils::DateTime &&value)
CapacityReservation & WithInstanceMatchCriteria(const InstanceMatchCriteria &value)
void SetTags(Aws::Vector< Tag > &&value)
bool OwnerIdHasBeenSet() const
CapacityReservation & WithTags(Aws::Vector< Tag > &&value)
bool EphemeralStorageHasBeenSet() const
AWS_EC2_API CapacityReservation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEndDateType(const EndDateType &value)
void SetStartDate(Aws::Utils::DateTime &&value)
CapacityReservation & WithUnusedReservationBillingOwnerId(const char *value)
CapacityReservation & WithReservationType(const CapacityReservationType &value)
void SetInstancePlatform(const CapacityReservationInstancePlatform &value)
void SetAvailabilityZone(const Aws::String &value)
bool StateHasBeenSet() const
bool TenancyHasBeenSet() const
void SetUnusedReservationBillingOwnerId(Aws::String &&value)
bool GetEphemeralStorage() const
AWS_EC2_API CapacityReservation()
CapacityReservation & WithCapacityReservationId(const Aws::String &value)
CapacityReservation & WithOwnerId(Aws::String &&value)
void SetOwnerId(const char *value)
bool EbsOptimizedHasBeenSet() const
void SetCapacityReservationArn(const char *value)
CapacityReservation & WithEphemeralStorage(bool value)
CapacityReservation & AddTags(const Tag &value)
CapacityReservation & WithCapacityReservationFleetId(const char *value)
CapacityReservation & WithOutpostArn(Aws::String &&value)
CapacityReservation & WithCapacityAllocations(const Aws::Vector< CapacityAllocation > &value)
CapacityReservation & WithOwnerId(const char *value)
CapacityReservation & WithCapacityReservationArn(const char *value)
void SetTenancy(CapacityReservationTenancy &&value)
void SetCapacityAllocations(Aws::Vector< CapacityAllocation > &&value)
void SetCapacityReservationFleetId(Aws::String &&value)
CapacityReservation & AddCapacityAllocations(const CapacityAllocation &value)
void SetUnusedReservationBillingOwnerId(const Aws::String &value)
void SetAvailabilityZone(Aws::String &&value)
bool OutpostArnHasBeenSet() const
bool InstanceMatchCriteriaHasBeenSet() const
CapacityReservation & WithPlacementGroupArn(const Aws::String &value)
CapacityReservation & WithCreateDate(Aws::Utils::DateTime &&value)
const Aws::String & GetOwnerId() const
CapacityReservation & WithUnusedReservationBillingOwnerId(const Aws::String &value)
const Aws::String & GetAvailabilityZoneId() const
CapacityReservation & WithState(CapacityReservationState &&value)
CapacityReservation & WithInstanceType(Aws::String &&value)
void SetInstanceMatchCriteria(const InstanceMatchCriteria &value)
CapacityReservation & WithStartDate(const Aws::Utils::DateTime &value)
void SetCreateDate(const Aws::Utils::DateTime &value)
void SetTotalInstanceCount(int value)
bool CapacityReservationIdHasBeenSet() const
CapacityReservation & WithEndDate(const Aws::Utils::DateTime &value)
CapacityReservation & WithCapacityReservationFleetId(Aws::String &&value)
void SetPlacementGroupArn(const Aws::String &value)
const Aws::String & GetCapacityReservationId() const
void SetStartDate(const Aws::Utils::DateTime &value)
const CapacityReservationState & GetState() const
CapacityReservation & WithTenancy(const CapacityReservationTenancy &value)
const Aws::Vector< CapacityAllocation > & GetCapacityAllocations() const
void SetUnusedReservationBillingOwnerId(const char *value)
const CapacityReservationTenancy & GetTenancy() const
CapacityReservation & WithAvailabilityZone(const char *value)
CapacityReservation & WithReservationType(CapacityReservationType &&value)
void SetInstancePlatform(CapacityReservationInstancePlatform &&value)
const Aws::String & GetAvailabilityZone() const
void SetCapacityReservationId(const Aws::String &value)
CapacityReservation & WithAvailabilityZone(const Aws::String &value)
bool EndDateHasBeenSet() const
CapacityReservation & WithCapacityReservationId(const char *value)
bool CapacityReservationFleetIdHasBeenSet() const
void SetEndDate(const Aws::Utils::DateTime &value)
void SetEndDate(Aws::Utils::DateTime &&value)
const Aws::String & GetCapacityReservationArn() const
CapacityReservation & WithEbsOptimized(bool value)
const Aws::String & GetOutpostArn() const
const CapacityReservationType & GetReservationType() const
bool EndDateTypeHasBeenSet() const
void SetCapacityReservationFleetId(const Aws::String &value)
void SetInstanceType(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetUnusedReservationBillingOwnerId() const
CapacityReservation & WithTotalInstanceCount(int value)
void SetPlacementGroupArn(const char *value)
void SetEndDateType(EndDateType &&value)
void SetAvailabilityZoneId(Aws::String &&value)
CapacityReservation & WithInstancePlatform(const CapacityReservationInstancePlatform &value)
int GetAvailableInstanceCount() const
CapacityReservation & WithCreateDate(const Aws::Utils::DateTime &value)
CapacityReservation & WithAvailabilityZoneId(const Aws::String &value)
CapacityReservation & WithCapacityReservationArn(Aws::String &&value)
CapacityReservation & WithAvailabilityZone(Aws::String &&value)
void SetAvailabilityZone(const char *value)
CapacityReservation & WithTenancy(CapacityReservationTenancy &&value)
bool InstanceTypeHasBeenSet() const
CapacityReservation & WithCapacityReservationId(Aws::String &&value)
bool AvailabilityZoneHasBeenSet() const
void SetAvailabilityZoneId(const char *value)
bool GetEbsOptimized() const
CapacityReservation & WithInstancePlatform(CapacityReservationInstancePlatform &&value)
CapacityReservation & AddCapacityAllocations(CapacityAllocation &&value)
CapacityReservation & WithStartDate(Aws::Utils::DateTime &&value)
bool TagsHasBeenSet() const
bool AvailableInstanceCountHasBeenSet() const
void SetTags(const Aws::Vector< Tag > &value)
void SetCapacityAllocations(const Aws::Vector< CapacityAllocation > &value)
const EndDateType & GetEndDateType() const
CapacityReservationTenancy
CapacityReservationInstancePlatform
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