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

#include <ModifyInstanceMetadataOptionsRequest.h>

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

Public Member Functions

 ModifyInstanceMetadataOptionsRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
const Aws::StringGetInstanceId () const
 
bool InstanceIdHasBeenSet () const
 
void SetInstanceId (const Aws::String &value)
 
void SetInstanceId (Aws::String &&value)
 
void SetInstanceId (const char *value)
 
ModifyInstanceMetadataOptionsRequestWithInstanceId (const Aws::String &value)
 
ModifyInstanceMetadataOptionsRequestWithInstanceId (Aws::String &&value)
 
ModifyInstanceMetadataOptionsRequestWithInstanceId (const char *value)
 
const HttpTokensStateGetHttpTokens () const
 
bool HttpTokensHasBeenSet () const
 
void SetHttpTokens (const HttpTokensState &value)
 
void SetHttpTokens (HttpTokensState &&value)
 
ModifyInstanceMetadataOptionsRequestWithHttpTokens (const HttpTokensState &value)
 
ModifyInstanceMetadataOptionsRequestWithHttpTokens (HttpTokensState &&value)
 
int GetHttpPutResponseHopLimit () const
 
bool HttpPutResponseHopLimitHasBeenSet () const
 
void SetHttpPutResponseHopLimit (int value)
 
ModifyInstanceMetadataOptionsRequestWithHttpPutResponseHopLimit (int value)
 
const InstanceMetadataEndpointStateGetHttpEndpoint () const
 
bool HttpEndpointHasBeenSet () const
 
void SetHttpEndpoint (const InstanceMetadataEndpointState &value)
 
void SetHttpEndpoint (InstanceMetadataEndpointState &&value)
 
ModifyInstanceMetadataOptionsRequestWithHttpEndpoint (const InstanceMetadataEndpointState &value)
 
ModifyInstanceMetadataOptionsRequestWithHttpEndpoint (InstanceMetadataEndpointState &&value)
 
bool GetDryRun () const
 
bool DryRunHasBeenSet () const
 
void SetDryRun (bool value)
 
ModifyInstanceMetadataOptionsRequestWithDryRun (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 23 of file ModifyInstanceMetadataOptionsRequest.h.

Constructor & Destructor Documentation

◆ ModifyInstanceMetadataOptionsRequest()

Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::ModifyInstanceMetadataOptionsRequest ( )

Member Function Documentation

◆ DryRunHasBeenSet()

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

◆ DumpBodyToUrl()

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

◆ GetDryRun()

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

◆ GetHttpEndpoint()

const InstanceMetadataEndpointState& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::GetHttpEndpoint ( ) const
inline

This parameter enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the existing state is maintained.

If you specify a value of disabled, you will not be able to access your instance metadata.

Definition at line 212 of file ModifyInstanceMetadataOptionsRequest.h.

◆ GetHttpPutResponseHopLimit()

int Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::GetHttpPutResponseHopLimit ( ) const
inline

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. If no parameter is specified, the existing state is maintained.

Possible values: Integers from 1 to 64

Definition at line 179 of file ModifyInstanceMetadataOptionsRequest.h.

◆ GetHttpTokens()

const HttpTokensState& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::GetHttpTokens ( ) const
inline

The state of token usage for your instance metadata requests. If the parameter is not specified in the request, the default state is optional.

If the state is optional, you can choose to retrieve instance metadata with or without a signed token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role credentials are returned. If you retrieve the IAM role credentials using a valid signed token, the version 2.0 role credentials are returned.

If the state is required, you must send a signed token header with any instance metadata retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials; the version 1.0 credentials are not available.

Definition at line 95 of file ModifyInstanceMetadataOptionsRequest.h.

◆ GetInstanceId()

const Aws::String& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::GetInstanceId ( ) const
inline

The ID of the instance.

Definition at line 44 of file ModifyInstanceMetadataOptionsRequest.h.

◆ GetServiceRequestName()

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

◆ HttpEndpointHasBeenSet()

bool Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::HttpEndpointHasBeenSet ( ) const
inline

This parameter enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the existing state is maintained.

If you specify a value of disabled, you will not be able to access your instance metadata.

Definition at line 220 of file ModifyInstanceMetadataOptionsRequest.h.

◆ HttpPutResponseHopLimitHasBeenSet()

bool Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::HttpPutResponseHopLimitHasBeenSet ( ) const
inline

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. If no parameter is specified, the existing state is maintained.

Possible values: Integers from 1 to 64

Definition at line 187 of file ModifyInstanceMetadataOptionsRequest.h.

◆ HttpTokensHasBeenSet()

bool Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::HttpTokensHasBeenSet ( ) const
inline

The state of token usage for your instance metadata requests. If the parameter is not specified in the request, the default state is optional.

If the state is optional, you can choose to retrieve instance metadata with or without a signed token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role credentials are returned. If you retrieve the IAM role credentials using a valid signed token, the version 2.0 role credentials are returned.

If the state is required, you must send a signed token header with any instance metadata retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials; the version 1.0 credentials are not available.

Definition at line 110 of file ModifyInstanceMetadataOptionsRequest.h.

◆ InstanceIdHasBeenSet()

bool Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::InstanceIdHasBeenSet ( ) const
inline

The ID of the instance.

Definition at line 49 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SerializePayload()

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

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetDryRun()

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

◆ SetHttpEndpoint() [1/2]

void Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::SetHttpEndpoint ( const InstanceMetadataEndpointState value)
inline

This parameter enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the existing state is maintained.

If you specify a value of disabled, you will not be able to access your instance metadata.

Definition at line 228 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetHttpEndpoint() [2/2]

void Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::SetHttpEndpoint ( InstanceMetadataEndpointState &&  value)
inline

This parameter enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the existing state is maintained.

If you specify a value of disabled, you will not be able to access your instance metadata.

Definition at line 236 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetHttpPutResponseHopLimit()

void Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::SetHttpPutResponseHopLimit ( int  value)
inline

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. If no parameter is specified, the existing state is maintained.

Possible values: Integers from 1 to 64

Definition at line 195 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetHttpTokens() [1/2]

void Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::SetHttpTokens ( const HttpTokensState value)
inline

The state of token usage for your instance metadata requests. If the parameter is not specified in the request, the default state is optional.

If the state is optional, you can choose to retrieve instance metadata with or without a signed token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role credentials are returned. If you retrieve the IAM role credentials using a valid signed token, the version 2.0 role credentials are returned.

If the state is required, you must send a signed token header with any instance metadata retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials; the version 1.0 credentials are not available.

Definition at line 125 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetHttpTokens() [2/2]

void Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::SetHttpTokens ( HttpTokensState &&  value)
inline

The state of token usage for your instance metadata requests. If the parameter is not specified in the request, the default state is optional.

If the state is optional, you can choose to retrieve instance metadata with or without a signed token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role credentials are returned. If you retrieve the IAM role credentials using a valid signed token, the version 2.0 role credentials are returned.

If the state is required, you must send a signed token header with any instance metadata retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials; the version 1.0 credentials are not available.

Definition at line 140 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetInstanceId() [1/3]

void Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::SetInstanceId ( const Aws::String value)
inline

The ID of the instance.

Definition at line 54 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetInstanceId() [2/3]

void Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::SetInstanceId ( Aws::String &&  value)
inline

The ID of the instance.

Definition at line 59 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetInstanceId() [3/3]

void Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::SetInstanceId ( const char *  value)
inline

The ID of the instance.

Definition at line 64 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithDryRun()

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

◆ WithHttpEndpoint() [1/2]

ModifyInstanceMetadataOptionsRequest& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::WithHttpEndpoint ( const InstanceMetadataEndpointState value)
inline

This parameter enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the existing state is maintained.

If you specify a value of disabled, you will not be able to access your instance metadata.

Definition at line 244 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithHttpEndpoint() [2/2]

ModifyInstanceMetadataOptionsRequest& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::WithHttpEndpoint ( InstanceMetadataEndpointState &&  value)
inline

This parameter enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the existing state is maintained.

If you specify a value of disabled, you will not be able to access your instance metadata.

Definition at line 252 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithHttpPutResponseHopLimit()

ModifyInstanceMetadataOptionsRequest& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::WithHttpPutResponseHopLimit ( int  value)
inline

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. If no parameter is specified, the existing state is maintained.

Possible values: Integers from 1 to 64

Definition at line 203 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithHttpTokens() [1/2]

ModifyInstanceMetadataOptionsRequest& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::WithHttpTokens ( const HttpTokensState value)
inline

The state of token usage for your instance metadata requests. If the parameter is not specified in the request, the default state is optional.

If the state is optional, you can choose to retrieve instance metadata with or without a signed token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role credentials are returned. If you retrieve the IAM role credentials using a valid signed token, the version 2.0 role credentials are returned.

If the state is required, you must send a signed token header with any instance metadata retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials; the version 1.0 credentials are not available.

Definition at line 155 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithHttpTokens() [2/2]

ModifyInstanceMetadataOptionsRequest& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::WithHttpTokens ( HttpTokensState &&  value)
inline

The state of token usage for your instance metadata requests. If the parameter is not specified in the request, the default state is optional.

If the state is optional, you can choose to retrieve instance metadata with or without a signed token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role credentials are returned. If you retrieve the IAM role credentials using a valid signed token, the version 2.0 role credentials are returned.

If the state is required, you must send a signed token header with any instance metadata retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials; the version 1.0 credentials are not available.

Definition at line 170 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithInstanceId() [1/3]

ModifyInstanceMetadataOptionsRequest& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::WithInstanceId ( const Aws::String value)
inline

The ID of the instance.

Definition at line 69 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithInstanceId() [2/3]

ModifyInstanceMetadataOptionsRequest& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::WithInstanceId ( Aws::String &&  value)
inline

The ID of the instance.

Definition at line 74 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithInstanceId() [3/3]

ModifyInstanceMetadataOptionsRequest& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::WithInstanceId ( const char *  value)
inline

The ID of the instance.

Definition at line 79 of file ModifyInstanceMetadataOptionsRequest.h.


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