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

#include <CapacityReservationSpecification.h>

Public Member Functions

 CapacityReservationSpecification ()
 
 CapacityReservationSpecification (const Aws::Utils::Xml::XmlNode &xmlNode)
 
CapacityReservationSpecificationoperator= (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 CapacityReservationPreferenceGetCapacityReservationPreference () const
 
bool CapacityReservationPreferenceHasBeenSet () const
 
void SetCapacityReservationPreference (const CapacityReservationPreference &value)
 
void SetCapacityReservationPreference (CapacityReservationPreference &&value)
 
CapacityReservationSpecificationWithCapacityReservationPreference (const CapacityReservationPreference &value)
 
CapacityReservationSpecificationWithCapacityReservationPreference (CapacityReservationPreference &&value)
 
const CapacityReservationTargetGetCapacityReservationTarget () const
 
bool CapacityReservationTargetHasBeenSet () const
 
void SetCapacityReservationTarget (const CapacityReservationTarget &value)
 
void SetCapacityReservationTarget (CapacityReservationTarget &&value)
 
CapacityReservationSpecificationWithCapacityReservationTarget (const CapacityReservationTarget &value)
 
CapacityReservationSpecificationWithCapacityReservationTarget (CapacityReservationTarget &&value)
 

Detailed Description

Describes an instance's Capacity Reservation targeting option. You can specify only one parameter at a time. If you specify CapacityReservationPreference and CapacityReservationTarget, the request fails.

Use the CapacityReservationPreference parameter to configure the instance to run as an On-Demand Instance or to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). Use the CapacityReservationTarget parameter to explicitly target a specific Capacity Reservation or a Capacity Reservation group.

See Also:

AWS API Reference

Definition at line 41 of file CapacityReservationSpecification.h.

Constructor & Destructor Documentation

◆ CapacityReservationSpecification() [1/2]

Aws::EC2::Model::CapacityReservationSpecification::CapacityReservationSpecification ( )

◆ CapacityReservationSpecification() [2/2]

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

Member Function Documentation

◆ CapacityReservationPreferenceHasBeenSet()

bool Aws::EC2::Model::CapacityReservationSpecification::CapacityReservationPreferenceHasBeenSet ( ) const
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 70 of file CapacityReservationSpecification.h.

◆ CapacityReservationTargetHasBeenSet()

bool Aws::EC2::Model::CapacityReservationSpecification::CapacityReservationTargetHasBeenSet ( ) const
inline

Information about the target Capacity Reservation or Capacity Reservation group.

Definition at line 123 of file CapacityReservationSpecification.h.

◆ GetCapacityReservationPreference()

const CapacityReservationPreference& Aws::EC2::Model::CapacityReservationSpecification::GetCapacityReservationPreference ( ) const
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 60 of file CapacityReservationSpecification.h.

◆ GetCapacityReservationTarget()

const CapacityReservationTarget& Aws::EC2::Model::CapacityReservationSpecification::GetCapacityReservationTarget ( ) const
inline

Information about the target Capacity Reservation or Capacity Reservation group.

Definition at line 117 of file CapacityReservationSpecification.h.

◆ operator=()

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

◆ OutputToStream() [1/2]

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

◆ OutputToStream() [2/2]

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

◆ SetCapacityReservationPreference() [1/2]

void Aws::EC2::Model::CapacityReservationSpecification::SetCapacityReservationPreference ( const CapacityReservationPreference value)
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 80 of file CapacityReservationSpecification.h.

◆ SetCapacityReservationPreference() [2/2]

void Aws::EC2::Model::CapacityReservationSpecification::SetCapacityReservationPreference ( CapacityReservationPreference &&  value)
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 90 of file CapacityReservationSpecification.h.

◆ SetCapacityReservationTarget() [1/2]

void Aws::EC2::Model::CapacityReservationSpecification::SetCapacityReservationTarget ( const CapacityReservationTarget value)
inline

Information about the target Capacity Reservation or Capacity Reservation group.

Definition at line 129 of file CapacityReservationSpecification.h.

◆ SetCapacityReservationTarget() [2/2]

void Aws::EC2::Model::CapacityReservationSpecification::SetCapacityReservationTarget ( CapacityReservationTarget &&  value)
inline

Information about the target Capacity Reservation or Capacity Reservation group.

Definition at line 135 of file CapacityReservationSpecification.h.

◆ WithCapacityReservationPreference() [1/2]

CapacityReservationSpecification& Aws::EC2::Model::CapacityReservationSpecification::WithCapacityReservationPreference ( const CapacityReservationPreference value)
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 100 of file CapacityReservationSpecification.h.

◆ WithCapacityReservationPreference() [2/2]

CapacityReservationSpecification& Aws::EC2::Model::CapacityReservationSpecification::WithCapacityReservationPreference ( CapacityReservationPreference &&  value)
inline

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

Definition at line 110 of file CapacityReservationSpecification.h.

◆ WithCapacityReservationTarget() [1/2]

CapacityReservationSpecification& Aws::EC2::Model::CapacityReservationSpecification::WithCapacityReservationTarget ( const CapacityReservationTarget value)
inline

Information about the target Capacity Reservation or Capacity Reservation group.

Definition at line 141 of file CapacityReservationSpecification.h.

◆ WithCapacityReservationTarget() [2/2]

CapacityReservationSpecification& Aws::EC2::Model::CapacityReservationSpecification::WithCapacityReservationTarget ( CapacityReservationTarget &&  value)
inline

Information about the target Capacity Reservation or Capacity Reservation group.

Definition at line 147 of file CapacityReservationSpecification.h.


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