AWS SDK for C++  1.9.104
AWS SDK for C++
Public Member Functions | List of all members
Aws::EC2::Model::CapacityReservation Class Reference

#include <CapacityReservation.h>

Public Member Functions

 CapacityReservation ()
 
 CapacityReservation (const Aws::Utils::Xml::XmlNode &xmlNode)
 
CapacityReservationoperator= (const Aws::Utils::Xml::XmlNode &xmlNode)
 
void OutputToStream (Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
 
void OutputToStream (Aws::OStream &oStream, const char *location) const
 
const Aws::StringGetCapacityReservationId () const
 
bool CapacityReservationIdHasBeenSet () const
 
void SetCapacityReservationId (const Aws::String &value)
 
void SetCapacityReservationId (Aws::String &&value)
 
void SetCapacityReservationId (const char *value)
 
CapacityReservationWithCapacityReservationId (const Aws::String &value)
 
CapacityReservationWithCapacityReservationId (Aws::String &&value)
 
CapacityReservationWithCapacityReservationId (const char *value)
 
const Aws::StringGetOwnerId () const
 
bool OwnerIdHasBeenSet () const
 
void SetOwnerId (const Aws::String &value)
 
void SetOwnerId (Aws::String &&value)
 
void SetOwnerId (const char *value)
 
CapacityReservationWithOwnerId (const Aws::String &value)
 
CapacityReservationWithOwnerId (Aws::String &&value)
 
CapacityReservationWithOwnerId (const char *value)
 
const Aws::StringGetCapacityReservationArn () const
 
bool CapacityReservationArnHasBeenSet () const
 
void SetCapacityReservationArn (const Aws::String &value)
 
void SetCapacityReservationArn (Aws::String &&value)
 
void SetCapacityReservationArn (const char *value)
 
CapacityReservationWithCapacityReservationArn (const Aws::String &value)
 
CapacityReservationWithCapacityReservationArn (Aws::String &&value)
 
CapacityReservationWithCapacityReservationArn (const char *value)
 
const Aws::StringGetAvailabilityZoneId () const
 
bool AvailabilityZoneIdHasBeenSet () const
 
void SetAvailabilityZoneId (const Aws::String &value)
 
void SetAvailabilityZoneId (Aws::String &&value)
 
void SetAvailabilityZoneId (const char *value)
 
CapacityReservationWithAvailabilityZoneId (const Aws::String &value)
 
CapacityReservationWithAvailabilityZoneId (Aws::String &&value)
 
CapacityReservationWithAvailabilityZoneId (const char *value)
 
const Aws::StringGetInstanceType () const
 
bool InstanceTypeHasBeenSet () const
 
void SetInstanceType (const Aws::String &value)
 
void SetInstanceType (Aws::String &&value)
 
void SetInstanceType (const char *value)
 
CapacityReservationWithInstanceType (const Aws::String &value)
 
CapacityReservationWithInstanceType (Aws::String &&value)
 
CapacityReservationWithInstanceType (const char *value)
 
const CapacityReservationInstancePlatformGetInstancePlatform () const
 
bool InstancePlatformHasBeenSet () const
 
void SetInstancePlatform (const CapacityReservationInstancePlatform &value)
 
void SetInstancePlatform (CapacityReservationInstancePlatform &&value)
 
CapacityReservationWithInstancePlatform (const CapacityReservationInstancePlatform &value)
 
CapacityReservationWithInstancePlatform (CapacityReservationInstancePlatform &&value)
 
const Aws::StringGetAvailabilityZone () const
 
bool AvailabilityZoneHasBeenSet () const
 
void SetAvailabilityZone (const Aws::String &value)
 
void SetAvailabilityZone (Aws::String &&value)
 
void SetAvailabilityZone (const char *value)
 
CapacityReservationWithAvailabilityZone (const Aws::String &value)
 
CapacityReservationWithAvailabilityZone (Aws::String &&value)
 
CapacityReservationWithAvailabilityZone (const char *value)
 
const CapacityReservationTenancyGetTenancy () const
 
bool TenancyHasBeenSet () const
 
void SetTenancy (const CapacityReservationTenancy &value)
 
void SetTenancy (CapacityReservationTenancy &&value)
 
CapacityReservationWithTenancy (const CapacityReservationTenancy &value)
 
CapacityReservationWithTenancy (CapacityReservationTenancy &&value)
 
int GetTotalInstanceCount () const
 
bool TotalInstanceCountHasBeenSet () const
 
void SetTotalInstanceCount (int value)
 
CapacityReservationWithTotalInstanceCount (int value)
 
int GetAvailableInstanceCount () const
 
bool AvailableInstanceCountHasBeenSet () const
 
void SetAvailableInstanceCount (int value)
 
CapacityReservationWithAvailableInstanceCount (int value)
 
bool GetEbsOptimized () const
 
bool EbsOptimizedHasBeenSet () const
 
void SetEbsOptimized (bool value)
 
CapacityReservationWithEbsOptimized (bool value)
 
bool GetEphemeralStorage () const
 
bool EphemeralStorageHasBeenSet () const
 
void SetEphemeralStorage (bool value)
 
CapacityReservationWithEphemeralStorage (bool value)
 
const CapacityReservationStateGetState () const
 
bool StateHasBeenSet () const
 
void SetState (const CapacityReservationState &value)
 
void SetState (CapacityReservationState &&value)
 
CapacityReservationWithState (const CapacityReservationState &value)
 
CapacityReservationWithState (CapacityReservationState &&value)
 
const Aws::Utils::DateTimeGetStartDate () const
 
bool StartDateHasBeenSet () const
 
void SetStartDate (const Aws::Utils::DateTime &value)
 
void SetStartDate (Aws::Utils::DateTime &&value)
 
CapacityReservationWithStartDate (const Aws::Utils::DateTime &value)
 
CapacityReservationWithStartDate (Aws::Utils::DateTime &&value)
 
const Aws::Utils::DateTimeGetEndDate () const
 
bool EndDateHasBeenSet () const
 
void SetEndDate (const Aws::Utils::DateTime &value)
 
void SetEndDate (Aws::Utils::DateTime &&value)
 
CapacityReservationWithEndDate (const Aws::Utils::DateTime &value)
 
CapacityReservationWithEndDate (Aws::Utils::DateTime &&value)
 
const EndDateTypeGetEndDateType () const
 
bool EndDateTypeHasBeenSet () const
 
void SetEndDateType (const EndDateType &value)
 
void SetEndDateType (EndDateType &&value)
 
CapacityReservationWithEndDateType (const EndDateType &value)
 
CapacityReservationWithEndDateType (EndDateType &&value)
 
const InstanceMatchCriteriaGetInstanceMatchCriteria () const
 
bool InstanceMatchCriteriaHasBeenSet () const
 
void SetInstanceMatchCriteria (const InstanceMatchCriteria &value)
 
void SetInstanceMatchCriteria (InstanceMatchCriteria &&value)
 
CapacityReservationWithInstanceMatchCriteria (const InstanceMatchCriteria &value)
 
CapacityReservationWithInstanceMatchCriteria (InstanceMatchCriteria &&value)
 
const Aws::Utils::DateTimeGetCreateDate () const
 
bool CreateDateHasBeenSet () const
 
void SetCreateDate (const Aws::Utils::DateTime &value)
 
void SetCreateDate (Aws::Utils::DateTime &&value)
 
CapacityReservationWithCreateDate (const Aws::Utils::DateTime &value)
 
CapacityReservationWithCreateDate (Aws::Utils::DateTime &&value)
 
const Aws::Vector< Tag > & GetTags () const
 
bool TagsHasBeenSet () const
 
void SetTags (const Aws::Vector< Tag > &value)
 
void SetTags (Aws::Vector< Tag > &&value)
 
CapacityReservationWithTags (const Aws::Vector< Tag > &value)
 
CapacityReservationWithTags (Aws::Vector< Tag > &&value)
 
CapacityReservationAddTags (const Tag &value)
 
CapacityReservationAddTags (Tag &&value)
 
const Aws::StringGetOutpostArn () const
 
bool OutpostArnHasBeenSet () const
 
void SetOutpostArn (const Aws::String &value)
 
void SetOutpostArn (Aws::String &&value)
 
void SetOutpostArn (const char *value)
 
CapacityReservationWithOutpostArn (const Aws::String &value)
 
CapacityReservationWithOutpostArn (Aws::String &&value)
 
CapacityReservationWithOutpostArn (const char *value)
 

Detailed Description

Describes a Capacity Reservation.

See Also:

AWS API Reference

Definition at line 39 of file CapacityReservation.h.

Constructor & Destructor Documentation

◆ CapacityReservation() [1/2]

Aws::EC2::Model::CapacityReservation::CapacityReservation ( )

◆ CapacityReservation() [2/2]

Aws::EC2::Model::CapacityReservation::CapacityReservation ( const Aws::Utils::Xml::XmlNode xmlNode)

Member Function Documentation

◆ AddTags() [1/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::AddTags ( const Tag value)
inline

Any tags assigned to the Capacity Reservation.

Definition at line 915 of file CapacityReservation.h.

◆ AddTags() [2/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::AddTags ( Tag &&  value)
inline

Any tags assigned to the Capacity Reservation.

Definition at line 920 of file CapacityReservation.h.

◆ AvailabilityZoneHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::AvailabilityZoneHasBeenSet ( ) const
inline

The Availability Zone in which the capacity is reserved.

Definition at line 316 of file CapacityReservation.h.

◆ AvailabilityZoneIdHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::AvailabilityZoneIdHasBeenSet ( ) const
inline

The Availability Zone ID of the Capacity Reservation.

Definition at line 189 of file CapacityReservation.h.

◆ AvailableInstanceCountHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::AvailableInstanceCountHasBeenSet ( ) const
inline

The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.

Definition at line 451 of file CapacityReservation.h.

◆ CapacityReservationArnHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::CapacityReservationArnHasBeenSet ( ) const
inline

The Amazon Resource Name (ARN) of the Capacity Reservation.

Definition at line 148 of file CapacityReservation.h.

◆ CapacityReservationIdHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::CapacityReservationIdHasBeenSet ( ) const
inline

The ID of the Capacity Reservation.

Definition at line 58 of file CapacityReservation.h.

◆ CreateDateHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::CreateDateHasBeenSet ( ) const
inline

The date and time at which the Capacity Reservation was created.

Definition at line 859 of file CapacityReservation.h.

◆ EbsOptimizedHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::EbsOptimizedHasBeenSet ( ) const
inline

Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.

Definition at line 482 of file CapacityReservation.h.

◆ EndDateHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::EndDateHasBeenSet ( ) const
inline

The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

Definition at line 676 of file CapacityReservation.h.

◆ EndDateTypeHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::EndDateTypeHasBeenSet ( ) const
inline

Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it.

  • limited - The Capacity Reservation expires automatically at a specified date and time.

Definition at line 727 of file CapacityReservation.h.

◆ EphemeralStorageHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::EphemeralStorageHasBeenSet ( ) const
inline

Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.

Definition at line 513 of file CapacityReservation.h.

◆ GetAvailabilityZone()

const Aws::String& Aws::EC2::Model::CapacityReservation::GetAvailabilityZone ( ) const
inline

The Availability Zone in which the capacity is reserved.

Definition at line 311 of file CapacityReservation.h.

◆ GetAvailabilityZoneId()

const Aws::String& Aws::EC2::Model::CapacityReservation::GetAvailabilityZoneId ( ) const
inline

The Availability Zone ID of the Capacity Reservation.

Definition at line 184 of file CapacityReservation.h.

◆ GetAvailableInstanceCount()

int Aws::EC2::Model::CapacityReservation::GetAvailableInstanceCount ( ) const
inline

The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.

Definition at line 445 of file CapacityReservation.h.

◆ GetCapacityReservationArn()

const Aws::String& Aws::EC2::Model::CapacityReservation::GetCapacityReservationArn ( ) const
inline

The Amazon Resource Name (ARN) of the Capacity Reservation.

Definition at line 143 of file CapacityReservation.h.

◆ GetCapacityReservationId()

const Aws::String& Aws::EC2::Model::CapacityReservation::GetCapacityReservationId ( ) const
inline

The ID of the Capacity Reservation.

Definition at line 53 of file CapacityReservation.h.

◆ GetCreateDate()

const Aws::Utils::DateTime& Aws::EC2::Model::CapacityReservation::GetCreateDate ( ) const
inline

The date and time at which the Capacity Reservation was created.

Definition at line 854 of file CapacityReservation.h.

◆ GetEbsOptimized()

bool Aws::EC2::Model::CapacityReservation::GetEbsOptimized ( ) const
inline

Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.

Definition at line 473 of file CapacityReservation.h.

◆ GetEndDate()

const Aws::Utils::DateTime& Aws::EC2::Model::CapacityReservation::GetEndDate ( ) const
inline

The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

Definition at line 668 of file CapacityReservation.h.

◆ GetEndDateType()

const EndDateType& Aws::EC2::Model::CapacityReservation::GetEndDateType ( ) const
inline

Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it.

  • limited - The Capacity Reservation expires automatically at a specified date and time.

Definition at line 718 of file CapacityReservation.h.

◆ GetEphemeralStorage()

bool Aws::EC2::Model::CapacityReservation::GetEphemeralStorage ( ) const
inline

Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.

Definition at line 507 of file CapacityReservation.h.

◆ GetInstanceMatchCriteria()

const InstanceMatchCriteria& Aws::EC2::Model::CapacityReservation::GetInstanceMatchCriteria ( ) const
inline

Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

  • open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters.

  • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.

Definition at line 778 of file CapacityReservation.h.

◆ GetInstancePlatform()

const CapacityReservationInstancePlatform& Aws::EC2::Model::CapacityReservation::GetInstancePlatform ( ) const
inline

The type of operating system for which the Capacity Reservation reserves capacity.

Definition at line 275 of file CapacityReservation.h.

◆ GetInstanceType()

const Aws::String& Aws::EC2::Model::CapacityReservation::GetInstanceType ( ) const
inline

The type of instance for which the Capacity Reservation reserves capacity.

Definition at line 226 of file CapacityReservation.h.

◆ GetOutpostArn()

const Aws::String& Aws::EC2::Model::CapacityReservation::GetOutpostArn ( ) const
inline

The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

Definition at line 927 of file CapacityReservation.h.

◆ GetOwnerId()

const Aws::String& Aws::EC2::Model::CapacityReservation::GetOwnerId ( ) const
inline

The ID of the Amazon Web Services account that owns the Capacity Reservation.

Definition at line 95 of file CapacityReservation.h.

◆ GetStartDate()

const Aws::Utils::DateTime& Aws::EC2::Model::CapacityReservation::GetStartDate ( ) const
inline

The date and time at which the Capacity Reservation was started.

Definition at line 634 of file CapacityReservation.h.

◆ GetState()

const CapacityReservationState& Aws::EC2::Model::CapacityReservation::GetState ( ) const
inline

The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:

  • active - The Capacity Reservation is active and the capacity is available for your use.

  • expired - The Capacity Reservation expired automatically at the date and time specified in your request. The reserved capacity is no longer available for your use.

  • cancelled - The Capacity Reservation was cancelled. The reserved capacity is no longer available for your use.

  • pending - The Capacity Reservation request was successful but the capacity provisioning is still pending.

  • failed - The Capacity Reservation request has failed. A request might fail due to invalid request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.

Definition at line 543 of file CapacityReservation.h.

◆ GetTags()

const Aws::Vector<Tag>& Aws::EC2::Model::CapacityReservation::GetTags ( ) const
inline

Any tags assigned to the Capacity Reservation.

Definition at line 885 of file CapacityReservation.h.

◆ GetTenancy()

const CapacityReservationTenancy& Aws::EC2::Model::CapacityReservation::GetTenancy ( ) const
inline

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

  • default - The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.

  • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

Definition at line 358 of file CapacityReservation.h.

◆ GetTotalInstanceCount()

int Aws::EC2::Model::CapacityReservation::GetTotalInstanceCount ( ) const
inline

The total number of instances for which the Capacity Reservation reserves capacity.

Definition at line 420 of file CapacityReservation.h.

◆ InstanceMatchCriteriaHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::InstanceMatchCriteriaHasBeenSet ( ) const
inline

Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

  • open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters.

  • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.

Definition at line 792 of file CapacityReservation.h.

◆ InstancePlatformHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::InstancePlatformHasBeenSet ( ) const
inline

The type of operating system for which the Capacity Reservation reserves capacity.

Definition at line 281 of file CapacityReservation.h.

◆ InstanceTypeHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::InstanceTypeHasBeenSet ( ) const
inline

The type of instance for which the Capacity Reservation reserves capacity.

Definition at line 232 of file CapacityReservation.h.

◆ operator=()

CapacityReservation& Aws::EC2::Model::CapacityReservation::operator= ( const Aws::Utils::Xml::XmlNode xmlNode)

◆ OutpostArnHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::OutpostArnHasBeenSet ( ) const
inline

The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

Definition at line 933 of file CapacityReservation.h.

◆ OutputToStream() [1/2]

void Aws::EC2::Model::CapacityReservation::OutputToStream ( Aws::OStream oStream,
const char *  location 
) const

◆ OutputToStream() [2/2]

void Aws::EC2::Model::CapacityReservation::OutputToStream ( Aws::OStream ostream,
const char *  location,
unsigned  index,
const char *  locationValue 
) const

◆ OwnerIdHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::OwnerIdHasBeenSet ( ) const
inline

The ID of the Amazon Web Services account that owns the Capacity Reservation.

Definition at line 101 of file CapacityReservation.h.

◆ SetAvailabilityZone() [1/3]

void Aws::EC2::Model::CapacityReservation::SetAvailabilityZone ( Aws::String &&  value)
inline

The Availability Zone in which the capacity is reserved.

Definition at line 326 of file CapacityReservation.h.

◆ SetAvailabilityZone() [2/3]

void Aws::EC2::Model::CapacityReservation::SetAvailabilityZone ( const Aws::String value)
inline

The Availability Zone in which the capacity is reserved.

Definition at line 321 of file CapacityReservation.h.

◆ SetAvailabilityZone() [3/3]

void Aws::EC2::Model::CapacityReservation::SetAvailabilityZone ( const char *  value)
inline

The Availability Zone in which the capacity is reserved.

Definition at line 331 of file CapacityReservation.h.

◆ SetAvailabilityZoneId() [1/3]

void Aws::EC2::Model::CapacityReservation::SetAvailabilityZoneId ( Aws::String &&  value)
inline

The Availability Zone ID of the Capacity Reservation.

Definition at line 199 of file CapacityReservation.h.

◆ SetAvailabilityZoneId() [2/3]

void Aws::EC2::Model::CapacityReservation::SetAvailabilityZoneId ( const Aws::String value)
inline

The Availability Zone ID of the Capacity Reservation.

Definition at line 194 of file CapacityReservation.h.

◆ SetAvailabilityZoneId() [3/3]

void Aws::EC2::Model::CapacityReservation::SetAvailabilityZoneId ( const char *  value)
inline

The Availability Zone ID of the Capacity Reservation.

Definition at line 204 of file CapacityReservation.h.

◆ SetAvailableInstanceCount()

void Aws::EC2::Model::CapacityReservation::SetAvailableInstanceCount ( int  value)
inline

The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.

Definition at line 457 of file CapacityReservation.h.

◆ SetCapacityReservationArn() [1/3]

void Aws::EC2::Model::CapacityReservation::SetCapacityReservationArn ( Aws::String &&  value)
inline

The Amazon Resource Name (ARN) of the Capacity Reservation.

Definition at line 158 of file CapacityReservation.h.

◆ SetCapacityReservationArn() [2/3]

void Aws::EC2::Model::CapacityReservation::SetCapacityReservationArn ( const Aws::String value)
inline

The Amazon Resource Name (ARN) of the Capacity Reservation.

Definition at line 153 of file CapacityReservation.h.

◆ SetCapacityReservationArn() [3/3]

void Aws::EC2::Model::CapacityReservation::SetCapacityReservationArn ( const char *  value)
inline

The Amazon Resource Name (ARN) of the Capacity Reservation.

Definition at line 163 of file CapacityReservation.h.

◆ SetCapacityReservationId() [1/3]

void Aws::EC2::Model::CapacityReservation::SetCapacityReservationId ( Aws::String &&  value)
inline

The ID of the Capacity Reservation.

Definition at line 68 of file CapacityReservation.h.

◆ SetCapacityReservationId() [2/3]

void Aws::EC2::Model::CapacityReservation::SetCapacityReservationId ( const Aws::String value)
inline

The ID of the Capacity Reservation.

Definition at line 63 of file CapacityReservation.h.

◆ SetCapacityReservationId() [3/3]

void Aws::EC2::Model::CapacityReservation::SetCapacityReservationId ( const char *  value)
inline

The ID of the Capacity Reservation.

Definition at line 73 of file CapacityReservation.h.

◆ SetCreateDate() [1/2]

void Aws::EC2::Model::CapacityReservation::SetCreateDate ( Aws::Utils::DateTime &&  value)
inline

The date and time at which the Capacity Reservation was created.

Definition at line 869 of file CapacityReservation.h.

◆ SetCreateDate() [2/2]

void Aws::EC2::Model::CapacityReservation::SetCreateDate ( const Aws::Utils::DateTime value)
inline

The date and time at which the Capacity Reservation was created.

Definition at line 864 of file CapacityReservation.h.

◆ SetEbsOptimized()

void Aws::EC2::Model::CapacityReservation::SetEbsOptimized ( bool  value)
inline

Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.

Definition at line 491 of file CapacityReservation.h.

◆ SetEndDate() [1/2]

void Aws::EC2::Model::CapacityReservation::SetEndDate ( Aws::Utils::DateTime &&  value)
inline

The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

Definition at line 692 of file CapacityReservation.h.

◆ SetEndDate() [2/2]

void Aws::EC2::Model::CapacityReservation::SetEndDate ( const Aws::Utils::DateTime value)
inline

The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

Definition at line 684 of file CapacityReservation.h.

◆ SetEndDateType() [1/2]

void Aws::EC2::Model::CapacityReservation::SetEndDateType ( const EndDateType value)
inline

Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it.

  • limited - The Capacity Reservation expires automatically at a specified date and time.

Definition at line 736 of file CapacityReservation.h.

◆ SetEndDateType() [2/2]

void Aws::EC2::Model::CapacityReservation::SetEndDateType ( EndDateType &&  value)
inline

Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it.

  • limited - The Capacity Reservation expires automatically at a specified date and time.

Definition at line 745 of file CapacityReservation.h.

◆ SetEphemeralStorage()

void Aws::EC2::Model::CapacityReservation::SetEphemeralStorage ( bool  value)
inline

Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.

Definition at line 519 of file CapacityReservation.h.

◆ SetInstanceMatchCriteria() [1/2]

void Aws::EC2::Model::CapacityReservation::SetInstanceMatchCriteria ( const InstanceMatchCriteria value)
inline

Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

  • open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters.

  • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.

Definition at line 806 of file CapacityReservation.h.

◆ SetInstanceMatchCriteria() [2/2]

void Aws::EC2::Model::CapacityReservation::SetInstanceMatchCriteria ( InstanceMatchCriteria &&  value)
inline

Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

  • open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters.

  • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.

Definition at line 820 of file CapacityReservation.h.

◆ SetInstancePlatform() [1/2]

void Aws::EC2::Model::CapacityReservation::SetInstancePlatform ( CapacityReservationInstancePlatform &&  value)
inline

The type of operating system for which the Capacity Reservation reserves capacity.

Definition at line 293 of file CapacityReservation.h.

◆ SetInstancePlatform() [2/2]

void Aws::EC2::Model::CapacityReservation::SetInstancePlatform ( const CapacityReservationInstancePlatform value)
inline

The type of operating system for which the Capacity Reservation reserves capacity.

Definition at line 287 of file CapacityReservation.h.

◆ SetInstanceType() [1/3]

void Aws::EC2::Model::CapacityReservation::SetInstanceType ( Aws::String &&  value)
inline

The type of instance for which the Capacity Reservation reserves capacity.

Definition at line 244 of file CapacityReservation.h.

◆ SetInstanceType() [2/3]

void Aws::EC2::Model::CapacityReservation::SetInstanceType ( const Aws::String value)
inline

The type of instance for which the Capacity Reservation reserves capacity.

Definition at line 238 of file CapacityReservation.h.

◆ SetInstanceType() [3/3]

void Aws::EC2::Model::CapacityReservation::SetInstanceType ( const char *  value)
inline

The type of instance for which the Capacity Reservation reserves capacity.

Definition at line 250 of file CapacityReservation.h.

◆ SetOutpostArn() [1/3]

void Aws::EC2::Model::CapacityReservation::SetOutpostArn ( Aws::String &&  value)
inline

The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

Definition at line 945 of file CapacityReservation.h.

◆ SetOutpostArn() [2/3]

void Aws::EC2::Model::CapacityReservation::SetOutpostArn ( const Aws::String value)
inline

The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

Definition at line 939 of file CapacityReservation.h.

◆ SetOutpostArn() [3/3]

void Aws::EC2::Model::CapacityReservation::SetOutpostArn ( const char *  value)
inline

The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

Definition at line 951 of file CapacityReservation.h.

◆ SetOwnerId() [1/3]

void Aws::EC2::Model::CapacityReservation::SetOwnerId ( Aws::String &&  value)
inline

The ID of the Amazon Web Services account that owns the Capacity Reservation.

Definition at line 113 of file CapacityReservation.h.

◆ SetOwnerId() [2/3]

void Aws::EC2::Model::CapacityReservation::SetOwnerId ( const Aws::String value)
inline

The ID of the Amazon Web Services account that owns the Capacity Reservation.

Definition at line 107 of file CapacityReservation.h.

◆ SetOwnerId() [3/3]

void Aws::EC2::Model::CapacityReservation::SetOwnerId ( const char *  value)
inline

The ID of the Amazon Web Services account that owns the Capacity Reservation.

Definition at line 119 of file CapacityReservation.h.

◆ SetStartDate() [1/2]

void Aws::EC2::Model::CapacityReservation::SetStartDate ( Aws::Utils::DateTime &&  value)
inline

The date and time at which the Capacity Reservation was started.

Definition at line 649 of file CapacityReservation.h.

◆ SetStartDate() [2/2]

void Aws::EC2::Model::CapacityReservation::SetStartDate ( const Aws::Utils::DateTime value)
inline

The date and time at which the Capacity Reservation was started.

Definition at line 644 of file CapacityReservation.h.

◆ SetState() [1/2]

void Aws::EC2::Model::CapacityReservation::SetState ( CapacityReservationState &&  value)
inline

The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:

  • active - The Capacity Reservation is active and the capacity is available for your use.

  • expired - The Capacity Reservation expired automatically at the date and time specified in your request. The reserved capacity is no longer available for your use.

  • cancelled - The Capacity Reservation was cancelled. The reserved capacity is no longer available for your use.

  • pending - The Capacity Reservation request was successful but the capacity provisioning is still pending.

  • failed - The Capacity Reservation request has failed. A request might fail due to invalid request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.

Definition at line 594 of file CapacityReservation.h.

◆ SetState() [2/2]

void Aws::EC2::Model::CapacityReservation::SetState ( const CapacityReservationState value)
inline

The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:

  • active - The Capacity Reservation is active and the capacity is available for your use.

  • expired - The Capacity Reservation expired automatically at the date and time specified in your request. The reserved capacity is no longer available for your use.

  • cancelled - The Capacity Reservation was cancelled. The reserved capacity is no longer available for your use.

  • pending - The Capacity Reservation request was successful but the capacity provisioning is still pending.

  • failed - The Capacity Reservation request has failed. A request might fail due to invalid request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.

Definition at line 577 of file CapacityReservation.h.

◆ SetTags() [1/2]

void Aws::EC2::Model::CapacityReservation::SetTags ( Aws::Vector< Tag > &&  value)
inline

Any tags assigned to the Capacity Reservation.

Definition at line 900 of file CapacityReservation.h.

◆ SetTags() [2/2]

void Aws::EC2::Model::CapacityReservation::SetTags ( const Aws::Vector< Tag > &  value)
inline

Any tags assigned to the Capacity Reservation.

Definition at line 895 of file CapacityReservation.h.

◆ SetTenancy() [1/2]

void Aws::EC2::Model::CapacityReservation::SetTenancy ( CapacityReservationTenancy &&  value)
inline

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

  • default - The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.

  • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

Definition at line 391 of file CapacityReservation.h.

◆ SetTenancy() [2/2]

void Aws::EC2::Model::CapacityReservation::SetTenancy ( const CapacityReservationTenancy value)
inline

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

  • default - The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.

  • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

Definition at line 380 of file CapacityReservation.h.

◆ SetTotalInstanceCount()

void Aws::EC2::Model::CapacityReservation::SetTotalInstanceCount ( int  value)
inline

The total number of instances for which the Capacity Reservation reserves capacity.

Definition at line 432 of file CapacityReservation.h.

◆ StartDateHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::StartDateHasBeenSet ( ) const
inline

The date and time at which the Capacity Reservation was started.

Definition at line 639 of file CapacityReservation.h.

◆ StateHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::StateHasBeenSet ( ) const
inline

The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:

  • active - The Capacity Reservation is active and the capacity is available for your use.

  • expired - The Capacity Reservation expired automatically at the date and time specified in your request. The reserved capacity is no longer available for your use.

  • cancelled - The Capacity Reservation was cancelled. The reserved capacity is no longer available for your use.

  • pending - The Capacity Reservation request was successful but the capacity provisioning is still pending.

  • failed - The Capacity Reservation request has failed. A request might fail due to invalid request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.

Definition at line 560 of file CapacityReservation.h.

◆ TagsHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::TagsHasBeenSet ( ) const
inline

Any tags assigned to the Capacity Reservation.

Definition at line 890 of file CapacityReservation.h.

◆ TenancyHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::TenancyHasBeenSet ( ) const
inline

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

  • default - The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.

  • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

Definition at line 369 of file CapacityReservation.h.

◆ TotalInstanceCountHasBeenSet()

bool Aws::EC2::Model::CapacityReservation::TotalInstanceCountHasBeenSet ( ) const
inline

The total number of instances for which the Capacity Reservation reserves capacity.

Definition at line 426 of file CapacityReservation.h.

◆ WithAvailabilityZone() [1/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithAvailabilityZone ( Aws::String &&  value)
inline

The Availability Zone in which the capacity is reserved.

Definition at line 341 of file CapacityReservation.h.

◆ WithAvailabilityZone() [2/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithAvailabilityZone ( const Aws::String value)
inline

The Availability Zone in which the capacity is reserved.

Definition at line 336 of file CapacityReservation.h.

◆ WithAvailabilityZone() [3/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithAvailabilityZone ( const char *  value)
inline

The Availability Zone in which the capacity is reserved.

Definition at line 346 of file CapacityReservation.h.

◆ WithAvailabilityZoneId() [1/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithAvailabilityZoneId ( Aws::String &&  value)
inline

The Availability Zone ID of the Capacity Reservation.

Definition at line 214 of file CapacityReservation.h.

◆ WithAvailabilityZoneId() [2/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithAvailabilityZoneId ( const Aws::String value)
inline

The Availability Zone ID of the Capacity Reservation.

Definition at line 209 of file CapacityReservation.h.

◆ WithAvailabilityZoneId() [3/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithAvailabilityZoneId ( const char *  value)
inline

The Availability Zone ID of the Capacity Reservation.

Definition at line 219 of file CapacityReservation.h.

◆ WithAvailableInstanceCount()

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithAvailableInstanceCount ( int  value)
inline

The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.

Definition at line 463 of file CapacityReservation.h.

◆ WithCapacityReservationArn() [1/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithCapacityReservationArn ( Aws::String &&  value)
inline

The Amazon Resource Name (ARN) of the Capacity Reservation.

Definition at line 173 of file CapacityReservation.h.

◆ WithCapacityReservationArn() [2/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithCapacityReservationArn ( const Aws::String value)
inline

The Amazon Resource Name (ARN) of the Capacity Reservation.

Definition at line 168 of file CapacityReservation.h.

◆ WithCapacityReservationArn() [3/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithCapacityReservationArn ( const char *  value)
inline

The Amazon Resource Name (ARN) of the Capacity Reservation.

Definition at line 178 of file CapacityReservation.h.

◆ WithCapacityReservationId() [1/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithCapacityReservationId ( Aws::String &&  value)
inline

The ID of the Capacity Reservation.

Definition at line 83 of file CapacityReservation.h.

◆ WithCapacityReservationId() [2/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithCapacityReservationId ( const Aws::String value)
inline

The ID of the Capacity Reservation.

Definition at line 78 of file CapacityReservation.h.

◆ WithCapacityReservationId() [3/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithCapacityReservationId ( const char *  value)
inline

The ID of the Capacity Reservation.

Definition at line 88 of file CapacityReservation.h.

◆ WithCreateDate() [1/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithCreateDate ( Aws::Utils::DateTime &&  value)
inline

The date and time at which the Capacity Reservation was created.

Definition at line 879 of file CapacityReservation.h.

◆ WithCreateDate() [2/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithCreateDate ( const Aws::Utils::DateTime value)
inline

The date and time at which the Capacity Reservation was created.

Definition at line 874 of file CapacityReservation.h.

◆ WithEbsOptimized()

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithEbsOptimized ( bool  value)
inline

Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.

Definition at line 500 of file CapacityReservation.h.

◆ WithEndDate() [1/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithEndDate ( Aws::Utils::DateTime &&  value)
inline

The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

Definition at line 708 of file CapacityReservation.h.

◆ WithEndDate() [2/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithEndDate ( const Aws::Utils::DateTime value)
inline

The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

Definition at line 700 of file CapacityReservation.h.

◆ WithEndDateType() [1/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithEndDateType ( const EndDateType value)
inline

Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it.

  • limited - The Capacity Reservation expires automatically at a specified date and time.

Definition at line 754 of file CapacityReservation.h.

◆ WithEndDateType() [2/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithEndDateType ( EndDateType &&  value)
inline

Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it.

  • limited - The Capacity Reservation expires automatically at a specified date and time.

Definition at line 763 of file CapacityReservation.h.

◆ WithEphemeralStorage()

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithEphemeralStorage ( bool  value)
inline

Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.

Definition at line 525 of file CapacityReservation.h.

◆ WithInstanceMatchCriteria() [1/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithInstanceMatchCriteria ( const InstanceMatchCriteria value)
inline

Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

  • open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters.

  • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.

Definition at line 834 of file CapacityReservation.h.

◆ WithInstanceMatchCriteria() [2/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithInstanceMatchCriteria ( InstanceMatchCriteria &&  value)
inline

Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

  • open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters.

  • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.

Definition at line 848 of file CapacityReservation.h.

◆ WithInstancePlatform() [1/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithInstancePlatform ( CapacityReservationInstancePlatform &&  value)
inline

The type of operating system for which the Capacity Reservation reserves capacity.

Definition at line 305 of file CapacityReservation.h.

◆ WithInstancePlatform() [2/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithInstancePlatform ( const CapacityReservationInstancePlatform value)
inline

The type of operating system for which the Capacity Reservation reserves capacity.

Definition at line 299 of file CapacityReservation.h.

◆ WithInstanceType() [1/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithInstanceType ( Aws::String &&  value)
inline

The type of instance for which the Capacity Reservation reserves capacity.

Definition at line 262 of file CapacityReservation.h.

◆ WithInstanceType() [2/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithInstanceType ( const Aws::String value)
inline

The type of instance for which the Capacity Reservation reserves capacity.

Definition at line 256 of file CapacityReservation.h.

◆ WithInstanceType() [3/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithInstanceType ( const char *  value)
inline

The type of instance for which the Capacity Reservation reserves capacity.

Definition at line 268 of file CapacityReservation.h.

◆ WithOutpostArn() [1/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithOutpostArn ( Aws::String &&  value)
inline

The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

Definition at line 963 of file CapacityReservation.h.

◆ WithOutpostArn() [2/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithOutpostArn ( const Aws::String value)
inline

The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

Definition at line 957 of file CapacityReservation.h.

◆ WithOutpostArn() [3/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithOutpostArn ( const char *  value)
inline

The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

Definition at line 969 of file CapacityReservation.h.

◆ WithOwnerId() [1/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithOwnerId ( Aws::String &&  value)
inline

The ID of the Amazon Web Services account that owns the Capacity Reservation.

Definition at line 131 of file CapacityReservation.h.

◆ WithOwnerId() [2/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithOwnerId ( const Aws::String value)
inline

The ID of the Amazon Web Services account that owns the Capacity Reservation.

Definition at line 125 of file CapacityReservation.h.

◆ WithOwnerId() [3/3]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithOwnerId ( const char *  value)
inline

The ID of the Amazon Web Services account that owns the Capacity Reservation.

Definition at line 137 of file CapacityReservation.h.

◆ WithStartDate() [1/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithStartDate ( Aws::Utils::DateTime &&  value)
inline

The date and time at which the Capacity Reservation was started.

Definition at line 659 of file CapacityReservation.h.

◆ WithStartDate() [2/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithStartDate ( const Aws::Utils::DateTime value)
inline

The date and time at which the Capacity Reservation was started.

Definition at line 654 of file CapacityReservation.h.

◆ WithState() [1/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithState ( CapacityReservationState &&  value)
inline

The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:

  • active - The Capacity Reservation is active and the capacity is available for your use.

  • expired - The Capacity Reservation expired automatically at the date and time specified in your request. The reserved capacity is no longer available for your use.

  • cancelled - The Capacity Reservation was cancelled. The reserved capacity is no longer available for your use.

  • pending - The Capacity Reservation request was successful but the capacity provisioning is still pending.

  • failed - The Capacity Reservation request has failed. A request might fail due to invalid request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.

Definition at line 628 of file CapacityReservation.h.

◆ WithState() [2/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithState ( const CapacityReservationState value)
inline

The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:

  • active - The Capacity Reservation is active and the capacity is available for your use.

  • expired - The Capacity Reservation expired automatically at the date and time specified in your request. The reserved capacity is no longer available for your use.

  • cancelled - The Capacity Reservation was cancelled. The reserved capacity is no longer available for your use.

  • pending - The Capacity Reservation request was successful but the capacity provisioning is still pending.

  • failed - The Capacity Reservation request has failed. A request might fail due to invalid request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.

Definition at line 611 of file CapacityReservation.h.

◆ WithTags() [1/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithTags ( Aws::Vector< Tag > &&  value)
inline

Any tags assigned to the Capacity Reservation.

Definition at line 910 of file CapacityReservation.h.

◆ WithTags() [2/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithTags ( const Aws::Vector< Tag > &  value)
inline

Any tags assigned to the Capacity Reservation.

Definition at line 905 of file CapacityReservation.h.

◆ WithTenancy() [1/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithTenancy ( CapacityReservationTenancy &&  value)
inline

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

  • default - The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.

  • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

Definition at line 413 of file CapacityReservation.h.

◆ WithTenancy() [2/2]

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithTenancy ( const CapacityReservationTenancy value)
inline

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

  • default - The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.

  • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

Definition at line 402 of file CapacityReservation.h.

◆ WithTotalInstanceCount()

CapacityReservation& Aws::EC2::Model::CapacityReservation::WithTotalInstanceCount ( int  value)
inline

The total number of instances for which the Capacity Reservation reserves capacity.

Definition at line 438 of file CapacityReservation.h.


The documentation for this class was generated from the following file: