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

#include <ModifyCapacityReservationRequest.h>

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

Public Member Functions

 ModifyCapacityReservationRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
const Aws::StringGetCapacityReservationId () const
 
bool CapacityReservationIdHasBeenSet () const
 
void SetCapacityReservationId (const Aws::String &value)
 
void SetCapacityReservationId (Aws::String &&value)
 
void SetCapacityReservationId (const char *value)
 
ModifyCapacityReservationRequestWithCapacityReservationId (const Aws::String &value)
 
ModifyCapacityReservationRequestWithCapacityReservationId (Aws::String &&value)
 
ModifyCapacityReservationRequestWithCapacityReservationId (const char *value)
 
int GetInstanceCount () const
 
bool InstanceCountHasBeenSet () const
 
void SetInstanceCount (int value)
 
ModifyCapacityReservationRequestWithInstanceCount (int value)
 
const Aws::Utils::DateTimeGetEndDate () const
 
bool EndDateHasBeenSet () const
 
void SetEndDate (const Aws::Utils::DateTime &value)
 
void SetEndDate (Aws::Utils::DateTime &&value)
 
ModifyCapacityReservationRequestWithEndDate (const Aws::Utils::DateTime &value)
 
ModifyCapacityReservationRequestWithEndDate (Aws::Utils::DateTime &&value)
 
const EndDateTypeGetEndDateType () const
 
bool EndDateTypeHasBeenSet () const
 
void SetEndDateType (const EndDateType &value)
 
void SetEndDateType (EndDateType &&value)
 
ModifyCapacityReservationRequestWithEndDateType (const EndDateType &value)
 
ModifyCapacityReservationRequestWithEndDateType (EndDateType &&value)
 
bool GetDryRun () const
 
bool DryRunHasBeenSet () const
 
void SetDryRun (bool value)
 
ModifyCapacityReservationRequestWithDryRun (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 33 of file ModifyCapacityReservationRequest.h.

Constructor & Destructor Documentation

◆ ModifyCapacityReservationRequest()

Aws::EC2::Model::ModifyCapacityReservationRequest::ModifyCapacityReservationRequest ( )

Member Function Documentation

◆ CapacityReservationIdHasBeenSet()

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

The ID of the Capacity Reservation.

Definition at line 59 of file ModifyCapacityReservationRequest.h.

◆ DryRunHasBeenSet()

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

◆ DumpBodyToUrl()

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

◆ EndDateHasBeenSet()

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

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.

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

Definition at line 139 of file ModifyCapacityReservationRequest.h.

◆ EndDateTypeHasBeenSet()

bool Aws::EC2::Model::ModifyCapacityReservationRequest::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 value if EndDateType is unlimited.

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

Definition at line 220 of file ModifyCapacityReservationRequest.h.

◆ GetCapacityReservationId()

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

The ID of the Capacity Reservation.

Definition at line 54 of file ModifyCapacityReservationRequest.h.

◆ GetDryRun()

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

◆ GetEndDate()

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

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.

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

Definition at line 125 of file ModifyCapacityReservationRequest.h.

◆ GetEndDateType()

const EndDateType& Aws::EC2::Model::ModifyCapacityReservationRequest::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 value if EndDateType is unlimited.

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

Definition at line 208 of file ModifyCapacityReservationRequest.h.

◆ GetInstanceCount()

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

The number of instances for which to reserve capacity.

Definition at line 95 of file ModifyCapacityReservationRequest.h.

◆ GetServiceRequestName()

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

Implements Aws::AmazonWebServiceRequest.

Definition at line 42 of file ModifyCapacityReservationRequest.h.

◆ InstanceCountHasBeenSet()

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

The number of instances for which to reserve capacity.

Definition at line 100 of file ModifyCapacityReservationRequest.h.

◆ SerializePayload()

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

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetCapacityReservationId() [1/3]

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

The ID of the Capacity Reservation.

Definition at line 64 of file ModifyCapacityReservationRequest.h.

◆ SetCapacityReservationId() [2/3]

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

The ID of the Capacity Reservation.

Definition at line 69 of file ModifyCapacityReservationRequest.h.

◆ SetCapacityReservationId() [3/3]

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

The ID of the Capacity Reservation.

Definition at line 74 of file ModifyCapacityReservationRequest.h.

◆ SetDryRun()

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

◆ SetEndDate() [1/2]

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

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.

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

Definition at line 153 of file ModifyCapacityReservationRequest.h.

◆ SetEndDate() [2/2]

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

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.

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

Definition at line 167 of file ModifyCapacityReservationRequest.h.

◆ SetEndDateType() [1/2]

void Aws::EC2::Model::ModifyCapacityReservationRequest::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 value if EndDateType is unlimited.

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

Definition at line 232 of file ModifyCapacityReservationRequest.h.

◆ SetEndDateType() [2/2]

void Aws::EC2::Model::ModifyCapacityReservationRequest::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 value if EndDateType is unlimited.

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

Definition at line 244 of file ModifyCapacityReservationRequest.h.

◆ SetInstanceCount()

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

The number of instances for which to reserve capacity.

Definition at line 105 of file ModifyCapacityReservationRequest.h.

◆ WithCapacityReservationId() [1/3]

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

The ID of the Capacity Reservation.

Definition at line 79 of file ModifyCapacityReservationRequest.h.

◆ WithCapacityReservationId() [2/3]

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

The ID of the Capacity Reservation.

Definition at line 84 of file ModifyCapacityReservationRequest.h.

◆ WithCapacityReservationId() [3/3]

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

The ID of the Capacity Reservation.

Definition at line 89 of file ModifyCapacityReservationRequest.h.

◆ WithDryRun()

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

◆ WithEndDate() [1/2]

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

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.

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

Definition at line 181 of file ModifyCapacityReservationRequest.h.

◆ WithEndDate() [2/2]

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

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.

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

Definition at line 195 of file ModifyCapacityReservationRequest.h.

◆ WithEndDateType() [1/2]

ModifyCapacityReservationRequest& Aws::EC2::Model::ModifyCapacityReservationRequest::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 value if EndDateType is unlimited.

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

Definition at line 256 of file ModifyCapacityReservationRequest.h.

◆ WithEndDateType() [2/2]

ModifyCapacityReservationRequest& Aws::EC2::Model::ModifyCapacityReservationRequest::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 value if EndDateType is unlimited.

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

Definition at line 268 of file ModifyCapacityReservationRequest.h.

◆ WithInstanceCount()

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

The number of instances for which to reserve capacity.

Definition at line 110 of file ModifyCapacityReservationRequest.h.


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