AWS SDK for C++  1.7.226
AWS SDK for C++
Public Member Functions | Protected Member Functions | List of all members
Aws::EC2::Model::CreateCapacityReservationRequest Class Reference

#include <CreateCapacityReservationRequest.h>

+ Inheritance diagram for Aws::EC2::Model::CreateCapacityReservationRequest:

Public Member Functions

 CreateCapacityReservationRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
const Aws::StringGetClientToken () const
 
bool ClientTokenHasBeenSet () const
 
void SetClientToken (const Aws::String &value)
 
void SetClientToken (Aws::String &&value)
 
void SetClientToken (const char *value)
 
CreateCapacityReservationRequestWithClientToken (const Aws::String &value)
 
CreateCapacityReservationRequestWithClientToken (Aws::String &&value)
 
CreateCapacityReservationRequestWithClientToken (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)
 
CreateCapacityReservationRequestWithInstanceType (const Aws::String &value)
 
CreateCapacityReservationRequestWithInstanceType (Aws::String &&value)
 
CreateCapacityReservationRequestWithInstanceType (const char *value)
 
const CapacityReservationInstancePlatformGetInstancePlatform () const
 
bool InstancePlatformHasBeenSet () const
 
void SetInstancePlatform (const CapacityReservationInstancePlatform &value)
 
void SetInstancePlatform (CapacityReservationInstancePlatform &&value)
 
CreateCapacityReservationRequestWithInstancePlatform (const CapacityReservationInstancePlatform &value)
 
CreateCapacityReservationRequestWithInstancePlatform (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)
 
CreateCapacityReservationRequestWithAvailabilityZone (const Aws::String &value)
 
CreateCapacityReservationRequestWithAvailabilityZone (Aws::String &&value)
 
CreateCapacityReservationRequestWithAvailabilityZone (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)
 
CreateCapacityReservationRequestWithAvailabilityZoneId (const Aws::String &value)
 
CreateCapacityReservationRequestWithAvailabilityZoneId (Aws::String &&value)
 
CreateCapacityReservationRequestWithAvailabilityZoneId (const char *value)
 
const CapacityReservationTenancyGetTenancy () const
 
bool TenancyHasBeenSet () const
 
void SetTenancy (const CapacityReservationTenancy &value)
 
void SetTenancy (CapacityReservationTenancy &&value)
 
CreateCapacityReservationRequestWithTenancy (const CapacityReservationTenancy &value)
 
CreateCapacityReservationRequestWithTenancy (CapacityReservationTenancy &&value)
 
int GetInstanceCount () const
 
bool InstanceCountHasBeenSet () const
 
void SetInstanceCount (int value)
 
CreateCapacityReservationRequestWithInstanceCount (int value)
 
bool GetEbsOptimized () const
 
bool EbsOptimizedHasBeenSet () const
 
void SetEbsOptimized (bool value)
 
CreateCapacityReservationRequestWithEbsOptimized (bool value)
 
bool GetEphemeralStorage () const
 
bool EphemeralStorageHasBeenSet () const
 
void SetEphemeralStorage (bool value)
 
CreateCapacityReservationRequestWithEphemeralStorage (bool value)
 
const Aws::Utils::DateTimeGetEndDate () const
 
bool EndDateHasBeenSet () const
 
void SetEndDate (const Aws::Utils::DateTime &value)
 
void SetEndDate (Aws::Utils::DateTime &&value)
 
CreateCapacityReservationRequestWithEndDate (const Aws::Utils::DateTime &value)
 
CreateCapacityReservationRequestWithEndDate (Aws::Utils::DateTime &&value)
 
const EndDateTypeGetEndDateType () const
 
bool EndDateTypeHasBeenSet () const
 
void SetEndDateType (const EndDateType &value)
 
void SetEndDateType (EndDateType &&value)
 
CreateCapacityReservationRequestWithEndDateType (const EndDateType &value)
 
CreateCapacityReservationRequestWithEndDateType (EndDateType &&value)
 
const InstanceMatchCriteriaGetInstanceMatchCriteria () const
 
bool InstanceMatchCriteriaHasBeenSet () const
 
void SetInstanceMatchCriteria (const InstanceMatchCriteria &value)
 
void SetInstanceMatchCriteria (InstanceMatchCriteria &&value)
 
CreateCapacityReservationRequestWithInstanceMatchCriteria (const InstanceMatchCriteria &value)
 
CreateCapacityReservationRequestWithInstanceMatchCriteria (InstanceMatchCriteria &&value)
 
const Aws::Vector< TagSpecification > & GetTagSpecifications () const
 
bool TagSpecificationsHasBeenSet () const
 
void SetTagSpecifications (const Aws::Vector< TagSpecification > &value)
 
void SetTagSpecifications (Aws::Vector< TagSpecification > &&value)
 
CreateCapacityReservationRequestWithTagSpecifications (const Aws::Vector< TagSpecification > &value)
 
CreateCapacityReservationRequestWithTagSpecifications (Aws::Vector< TagSpecification > &&value)
 
CreateCapacityReservationRequestAddTagSpecifications (const TagSpecification &value)
 
CreateCapacityReservationRequestAddTagSpecifications (TagSpecification &&value)
 
bool GetDryRun () const
 
bool DryRunHasBeenSet () const
 
void SetDryRun (bool value)
 
CreateCapacityReservationRequestWithDryRun (bool value)
 
- Public Member Functions inherited from Aws::EC2::EC2Request
virtual ~EC2Request ()
 
void AddParametersToRequest (Aws::Http::HttpRequest &httpRequest) const
 
Aws::Http::HeaderValueCollection GetHeaders () const override
 
- Public Member Functions inherited from Aws::AmazonSerializableWebServiceRequest
 AmazonSerializableWebServiceRequest ()
 
virtual ~AmazonSerializableWebServiceRequest ()
 
std::shared_ptr< Aws::IOStreamGetBody () const override
 
- Public Member Functions inherited from Aws::AmazonWebServiceRequest
 AmazonWebServiceRequest ()
 
virtual ~AmazonWebServiceRequest ()=default
 
virtual void AddQueryStringParameters (Aws::Http::URI &uri) const
 
virtual void PutToPresignedUrl (Aws::Http::URI &uri) const
 
virtual bool IsStreaming () const
 
virtual bool IsEventStreamRequest () const
 
virtual bool SignBody () const
 
virtual bool IsChunked () const
 
virtual void SetRequestSignedHandler (const RequestSignedHandler &handler)
 
virtual const RequestSignedHandlerGetRequestSignedHandler () const
 
const Aws::IOStreamFactoryGetResponseStreamFactory () const
 
void SetResponseStreamFactory (const Aws::IOStreamFactory &factory)
 
virtual void SetDataReceivedEventHandler (const Aws::Http::DataReceivedEventHandler &dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (const Aws::Http::DataSentEventHandler &dataSentEventHandler)
 
virtual void SetContinueRequestHandler (const Aws::Http::ContinueRequestHandler &continueRequestHandler)
 
virtual void SetDataReceivedEventHandler (Aws::Http::DataReceivedEventHandler &&dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (Aws::Http::DataSentEventHandler &&dataSentEventHandler)
 
virtual void SetContinueRequestHandler (Aws::Http::ContinueRequestHandler &&continueRequestHandler)
 
virtual void SetRequestRetryHandler (const RequestRetryHandler &handler)
 
virtual void SetRequestRetryHandler (RequestRetryHandler &&handler)
 
virtual const Aws::Http::DataReceivedEventHandlerGetDataReceivedEventHandler () const
 
virtual const Aws::Http::DataSentEventHandlerGetDataSentEventHandler () const
 
virtual const Aws::Http::ContinueRequestHandlerGetContinueRequestHandler () const
 
virtual const RequestRetryHandlerGetRequestRetryHandler () const
 
virtual bool ShouldComputeContentMd5 () const
 

Protected Member Functions

void DumpBodyToUrl (Aws::Http::URI &uri) const override
 
- Protected Member Functions inherited from Aws::EC2::EC2Request
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders () const
 

Detailed Description

Definition at line 38 of file CreateCapacityReservationRequest.h.

Constructor & Destructor Documentation

◆ CreateCapacityReservationRequest()

Aws::EC2::Model::CreateCapacityReservationRequest::CreateCapacityReservationRequest ( )

Member Function Documentation

◆ AddTagSpecifications() [1/2]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::AddTagSpecifications ( const TagSpecification value)
inline

The tags to apply to the Capacity Reservation during launch.

Definition at line 725 of file CreateCapacityReservationRequest.h.

◆ AddTagSpecifications() [2/2]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::AddTagSpecifications ( TagSpecification &&  value)
inline

The tags to apply to the Capacity Reservation during launch.

Definition at line 730 of file CreateCapacityReservationRequest.h.

◆ AvailabilityZoneHasBeenSet()

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

The Availability Zone in which to create the Capacity Reservation.

Definition at line 217 of file CreateCapacityReservationRequest.h.

◆ AvailabilityZoneIdHasBeenSet()

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

The ID of the Availability Zone in which to create the Capacity Reservation.

Definition at line 260 of file CreateCapacityReservationRequest.h.

◆ ClientTokenHasBeenSet()

bool Aws::EC2::Model::CreateCapacityReservationRequest::ClientTokenHasBeenSet ( ) const
inline

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Constraint: Maximum 64 ASCII characters.

Definition at line 70 of file CreateCapacityReservationRequest.h.

◆ DryRunHasBeenSet()

bool Aws::EC2::Model::CreateCapacityReservationRequest::DryRunHasBeenSet ( ) const
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 747 of file CreateCapacityReservationRequest.h.

◆ DumpBodyToUrl()

void Aws::EC2::Model::CreateCapacityReservationRequest::DumpBodyToUrl ( Aws::Http::URI uri) const
overrideprotectedvirtual

Default does nothing. Override this to convert what would otherwise be the payload of the request to a query string format.

Reimplemented from Aws::AmazonWebServiceRequest.

◆ EbsOptimizedHasBeenSet()

bool Aws::EC2::Model::CreateCapacityReservationRequest::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 397 of file CreateCapacityReservationRequest.h.

◆ EndDateHasBeenSet()

bool Aws::EC2::Model::CreateCapacityReservationRequest::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.

You must provide an EndDate value if EndDateType is limited. Omit EndDate if EndDateType is unlimited.

If the EndDateType is limited, the Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.

Definition at line 471 of file CreateCapacityReservationRequest.h.

◆ EndDateTypeHasBeenSet()

bool Aws::EC2::Model::CreateCapacityReservationRequest::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. Do not provide an EndDate if the EndDateType is unlimited.

  • limited - The Capacity Reservation expires automatically at a specified date and time. You must provide an EndDate value if the EndDateType value is limited.

Definition at line 556 of file CreateCapacityReservationRequest.h.

◆ EphemeralStorageHasBeenSet()

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

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

Definition at line 428 of file CreateCapacityReservationRequest.h.

◆ GetAvailabilityZone()

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

The Availability Zone in which to create the Capacity Reservation.

Definition at line 212 of file CreateCapacityReservationRequest.h.

◆ GetAvailabilityZoneId()

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

The ID of the Availability Zone in which to create the Capacity Reservation.

Definition at line 254 of file CreateCapacityReservationRequest.h.

◆ GetClientToken()

const Aws::String& Aws::EC2::Model::CreateCapacityReservationRequest::GetClientToken ( ) const
inline

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Constraint: Maximum 64 ASCII characters.

Definition at line 62 of file CreateCapacityReservationRequest.h.

◆ GetDryRun()

bool Aws::EC2::Model::CreateCapacityReservationRequest::GetDryRun ( ) const
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 739 of file CreateCapacityReservationRequest.h.

◆ GetEbsOptimized()

bool Aws::EC2::Model::CreateCapacityReservationRequest::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 388 of file CreateCapacityReservationRequest.h.

◆ GetEndDate()

const Aws::Utils::DateTime& Aws::EC2::Model::CreateCapacityReservationRequest::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.

You must provide an EndDate value if EndDateType is limited. Omit EndDate if EndDateType is unlimited.

If the EndDateType is limited, the Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.

Definition at line 456 of file CreateCapacityReservationRequest.h.

◆ GetEndDateType()

const EndDateType& Aws::EC2::Model::CreateCapacityReservationRequest::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. Do not provide an EndDate if the EndDateType is unlimited.

  • limited - The Capacity Reservation expires automatically at a specified date and time. You must provide an EndDate value if the EndDateType value is limited.

Definition at line 544 of file CreateCapacityReservationRequest.h.

◆ GetEphemeralStorage()

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

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

Definition at line 422 of file CreateCapacityReservationRequest.h.

◆ GetInstanceCount()

int Aws::EC2::Model::CreateCapacityReservationRequest::GetInstanceCount ( ) const
inline

The number of instances for which to reserve capacity.

Definition at line 363 of file CreateCapacityReservationRequest.h.

◆ GetInstanceMatchCriteria()

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

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

  • open - The Capacity Reservation automatically matches all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run in 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.

Default: open

Definition at line 619 of file CreateCapacityReservationRequest.h.

◆ GetInstancePlatform()

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

The type of operating system for which to reserve capacity.

Definition at line 181 of file CreateCapacityReservationRequest.h.

◆ GetInstanceType()

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

The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 126 of file CreateCapacityReservationRequest.h.

◆ GetServiceRequestName()

virtual const char* Aws::EC2::Model::CreateCapacityReservationRequest::GetServiceRequestName ( ) const
inlineoverridevirtual

Implements Aws::AmazonWebServiceRequest.

Definition at line 47 of file CreateCapacityReservationRequest.h.

◆ GetTagSpecifications()

const Aws::Vector<TagSpecification>& Aws::EC2::Model::CreateCapacityReservationRequest::GetTagSpecifications ( ) const
inline

The tags to apply to the Capacity Reservation during launch.

Definition at line 695 of file CreateCapacityReservationRequest.h.

◆ GetTenancy()

const CapacityReservationTenancy& Aws::EC2::Model::CreateCapacityReservationRequest::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 AWS accounts.

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

Definition at line 307 of file CreateCapacityReservationRequest.h.

◆ InstanceCountHasBeenSet()

bool Aws::EC2::Model::CreateCapacityReservationRequest::InstanceCountHasBeenSet ( ) const
inline

The number of instances for which to reserve capacity.

Definition at line 368 of file CreateCapacityReservationRequest.h.

◆ InstanceMatchCriteriaHasBeenSet()

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

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

  • open - The Capacity Reservation automatically matches all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run in 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.

Default: open

Definition at line 633 of file CreateCapacityReservationRequest.h.

◆ InstancePlatformHasBeenSet()

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

The type of operating system for which to reserve capacity.

Definition at line 186 of file CreateCapacityReservationRequest.h.

◆ InstanceTypeHasBeenSet()

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

The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 133 of file CreateCapacityReservationRequest.h.

◆ SerializePayload()

Aws::String Aws::EC2::Model::CreateCapacityReservationRequest::SerializePayload ( ) const
overridevirtual

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetAvailabilityZone() [1/3]

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

The Availability Zone in which to create the Capacity Reservation.

Definition at line 222 of file CreateCapacityReservationRequest.h.

◆ SetAvailabilityZone() [2/3]

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

The Availability Zone in which to create the Capacity Reservation.

Definition at line 227 of file CreateCapacityReservationRequest.h.

◆ SetAvailabilityZone() [3/3]

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

The Availability Zone in which to create the Capacity Reservation.

Definition at line 232 of file CreateCapacityReservationRequest.h.

◆ SetAvailabilityZoneId() [1/3]

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

The ID of the Availability Zone in which to create the Capacity Reservation.

Definition at line 266 of file CreateCapacityReservationRequest.h.

◆ SetAvailabilityZoneId() [2/3]

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

The ID of the Availability Zone in which to create the Capacity Reservation.

Definition at line 272 of file CreateCapacityReservationRequest.h.

◆ SetAvailabilityZoneId() [3/3]

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

The ID of the Availability Zone in which to create the Capacity Reservation.

Definition at line 278 of file CreateCapacityReservationRequest.h.

◆ SetClientToken() [1/3]

void Aws::EC2::Model::CreateCapacityReservationRequest::SetClientToken ( const Aws::String value)
inline

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Constraint: Maximum 64 ASCII characters.

Definition at line 78 of file CreateCapacityReservationRequest.h.

◆ SetClientToken() [2/3]

void Aws::EC2::Model::CreateCapacityReservationRequest::SetClientToken ( Aws::String &&  value)
inline

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Constraint: Maximum 64 ASCII characters.

Definition at line 86 of file CreateCapacityReservationRequest.h.

◆ SetClientToken() [3/3]

void Aws::EC2::Model::CreateCapacityReservationRequest::SetClientToken ( const char *  value)
inline

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Constraint: Maximum 64 ASCII characters.

Definition at line 94 of file CreateCapacityReservationRequest.h.

◆ SetDryRun()

void Aws::EC2::Model::CreateCapacityReservationRequest::SetDryRun ( bool  value)
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 755 of file CreateCapacityReservationRequest.h.

◆ SetEbsOptimized()

void Aws::EC2::Model::CreateCapacityReservationRequest::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 406 of file CreateCapacityReservationRequest.h.

◆ SetEndDate() [1/2]

void Aws::EC2::Model::CreateCapacityReservationRequest::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.

You must provide an EndDate value if EndDateType is limited. Omit EndDate if EndDateType is unlimited.

If the EndDateType is limited, the Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.

Definition at line 486 of file CreateCapacityReservationRequest.h.

◆ SetEndDate() [2/2]

void Aws::EC2::Model::CreateCapacityReservationRequest::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.

You must provide an EndDate value if EndDateType is limited. Omit EndDate if EndDateType is unlimited.

If the EndDateType is limited, the Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.

Definition at line 501 of file CreateCapacityReservationRequest.h.

◆ SetEndDateType() [1/2]

void Aws::EC2::Model::CreateCapacityReservationRequest::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. Do not provide an EndDate if the EndDateType is unlimited.

  • limited - The Capacity Reservation expires automatically at a specified date and time. You must provide an EndDate value if the EndDateType value is limited.

Definition at line 568 of file CreateCapacityReservationRequest.h.

◆ SetEndDateType() [2/2]

void Aws::EC2::Model::CreateCapacityReservationRequest::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. Do not provide an EndDate if the EndDateType is unlimited.

  • limited - The Capacity Reservation expires automatically at a specified date and time. You must provide an EndDate value if the EndDateType value is limited.

Definition at line 580 of file CreateCapacityReservationRequest.h.

◆ SetEphemeralStorage()

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

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

Definition at line 434 of file CreateCapacityReservationRequest.h.

◆ SetInstanceCount()

void Aws::EC2::Model::CreateCapacityReservationRequest::SetInstanceCount ( int  value)
inline

The number of instances for which to reserve capacity.

Definition at line 373 of file CreateCapacityReservationRequest.h.

◆ SetInstanceMatchCriteria() [1/2]

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

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

  • open - The Capacity Reservation automatically matches all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run in 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.

Default: open

Definition at line 647 of file CreateCapacityReservationRequest.h.

◆ SetInstanceMatchCriteria() [2/2]

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

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

  • open - The Capacity Reservation automatically matches all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run in 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.

Default: open

Definition at line 661 of file CreateCapacityReservationRequest.h.

◆ SetInstancePlatform() [1/2]

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

The type of operating system for which to reserve capacity.

Definition at line 191 of file CreateCapacityReservationRequest.h.

◆ SetInstancePlatform() [2/2]

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

The type of operating system for which to reserve capacity.

Definition at line 196 of file CreateCapacityReservationRequest.h.

◆ SetInstanceType() [1/3]

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

The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 140 of file CreateCapacityReservationRequest.h.

◆ SetInstanceType() [2/3]

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

The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 147 of file CreateCapacityReservationRequest.h.

◆ SetInstanceType() [3/3]

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

The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 154 of file CreateCapacityReservationRequest.h.

◆ SetTagSpecifications() [1/2]

void Aws::EC2::Model::CreateCapacityReservationRequest::SetTagSpecifications ( const Aws::Vector< TagSpecification > &  value)
inline

The tags to apply to the Capacity Reservation during launch.

Definition at line 705 of file CreateCapacityReservationRequest.h.

◆ SetTagSpecifications() [2/2]

void Aws::EC2::Model::CreateCapacityReservationRequest::SetTagSpecifications ( Aws::Vector< TagSpecification > &&  value)
inline

The tags to apply to the Capacity Reservation during launch.

Definition at line 710 of file CreateCapacityReservationRequest.h.

◆ SetTenancy() [1/2]

void Aws::EC2::Model::CreateCapacityReservationRequest::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 AWS accounts.

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

Definition at line 327 of file CreateCapacityReservationRequest.h.

◆ SetTenancy() [2/2]

void Aws::EC2::Model::CreateCapacityReservationRequest::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 AWS accounts.

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

Definition at line 337 of file CreateCapacityReservationRequest.h.

◆ TagSpecificationsHasBeenSet()

bool Aws::EC2::Model::CreateCapacityReservationRequest::TagSpecificationsHasBeenSet ( ) const
inline

The tags to apply to the Capacity Reservation during launch.

Definition at line 700 of file CreateCapacityReservationRequest.h.

◆ TenancyHasBeenSet()

bool Aws::EC2::Model::CreateCapacityReservationRequest::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 AWS accounts.

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

Definition at line 317 of file CreateCapacityReservationRequest.h.

◆ WithAvailabilityZone() [1/3]

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

The Availability Zone in which to create the Capacity Reservation.

Definition at line 237 of file CreateCapacityReservationRequest.h.

◆ WithAvailabilityZone() [2/3]

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

The Availability Zone in which to create the Capacity Reservation.

Definition at line 242 of file CreateCapacityReservationRequest.h.

◆ WithAvailabilityZone() [3/3]

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

The Availability Zone in which to create the Capacity Reservation.

Definition at line 247 of file CreateCapacityReservationRequest.h.

◆ WithAvailabilityZoneId() [1/3]

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

The ID of the Availability Zone in which to create the Capacity Reservation.

Definition at line 284 of file CreateCapacityReservationRequest.h.

◆ WithAvailabilityZoneId() [2/3]

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

The ID of the Availability Zone in which to create the Capacity Reservation.

Definition at line 290 of file CreateCapacityReservationRequest.h.

◆ WithAvailabilityZoneId() [3/3]

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

The ID of the Availability Zone in which to create the Capacity Reservation.

Definition at line 296 of file CreateCapacityReservationRequest.h.

◆ WithClientToken() [1/3]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::WithClientToken ( const Aws::String value)
inline

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Constraint: Maximum 64 ASCII characters.

Definition at line 102 of file CreateCapacityReservationRequest.h.

◆ WithClientToken() [2/3]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::WithClientToken ( Aws::String &&  value)
inline

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Constraint: Maximum 64 ASCII characters.

Definition at line 110 of file CreateCapacityReservationRequest.h.

◆ WithClientToken() [3/3]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::WithClientToken ( const char *  value)
inline

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Constraint: Maximum 64 ASCII characters.

Definition at line 118 of file CreateCapacityReservationRequest.h.

◆ WithDryRun()

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::WithDryRun ( bool  value)
inline

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Definition at line 763 of file CreateCapacityReservationRequest.h.

◆ WithEbsOptimized()

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::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 415 of file CreateCapacityReservationRequest.h.

◆ WithEndDate() [1/2]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::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.

You must provide an EndDate value if EndDateType is limited. Omit EndDate if EndDateType is unlimited.

If the EndDateType is limited, the Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.

Definition at line 516 of file CreateCapacityReservationRequest.h.

◆ WithEndDate() [2/2]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::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.

You must provide an EndDate value if EndDateType is limited. Omit EndDate if EndDateType is unlimited.

If the EndDateType is limited, the Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.

Definition at line 531 of file CreateCapacityReservationRequest.h.

◆ WithEndDateType() [1/2]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::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. Do not provide an EndDate if the EndDateType is unlimited.

  • limited - The Capacity Reservation expires automatically at a specified date and time. You must provide an EndDate value if the EndDateType value is limited.

Definition at line 592 of file CreateCapacityReservationRequest.h.

◆ WithEndDateType() [2/2]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::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. Do not provide an EndDate if the EndDateType is unlimited.

  • limited - The Capacity Reservation expires automatically at a specified date and time. You must provide an EndDate value if the EndDateType value is limited.

Definition at line 604 of file CreateCapacityReservationRequest.h.

◆ WithEphemeralStorage()

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

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

Definition at line 440 of file CreateCapacityReservationRequest.h.

◆ WithInstanceCount()

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::WithInstanceCount ( int  value)
inline

The number of instances for which to reserve capacity.

Definition at line 378 of file CreateCapacityReservationRequest.h.

◆ WithInstanceMatchCriteria() [1/2]

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

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

  • open - The Capacity Reservation automatically matches all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run in 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.

Default: open

Definition at line 675 of file CreateCapacityReservationRequest.h.

◆ WithInstanceMatchCriteria() [2/2]

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

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

  • open - The Capacity Reservation automatically matches all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run in 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.

Default: open

Definition at line 689 of file CreateCapacityReservationRequest.h.

◆ WithInstancePlatform() [1/2]

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

The type of operating system for which to reserve capacity.

Definition at line 201 of file CreateCapacityReservationRequest.h.

◆ WithInstancePlatform() [2/2]

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

The type of operating system for which to reserve capacity.

Definition at line 206 of file CreateCapacityReservationRequest.h.

◆ WithInstanceType() [1/3]

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

The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 161 of file CreateCapacityReservationRequest.h.

◆ WithInstanceType() [2/3]

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

The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 168 of file CreateCapacityReservationRequest.h.

◆ WithInstanceType() [3/3]

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

The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

Definition at line 175 of file CreateCapacityReservationRequest.h.

◆ WithTagSpecifications() [1/2]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::WithTagSpecifications ( const Aws::Vector< TagSpecification > &  value)
inline

The tags to apply to the Capacity Reservation during launch.

Definition at line 715 of file CreateCapacityReservationRequest.h.

◆ WithTagSpecifications() [2/2]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::WithTagSpecifications ( Aws::Vector< TagSpecification > &&  value)
inline

The tags to apply to the Capacity Reservation during launch.

Definition at line 720 of file CreateCapacityReservationRequest.h.

◆ WithTenancy() [1/2]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::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 AWS accounts.

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

Definition at line 347 of file CreateCapacityReservationRequest.h.

◆ WithTenancy() [2/2]

CreateCapacityReservationRequest& Aws::EC2::Model::CreateCapacityReservationRequest::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 AWS accounts.

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

Definition at line 357 of file CreateCapacityReservationRequest.h.


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