AWS SDK for C++  1.9.159
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)
 
const InstanceMetadataProtocolStateGetHttpProtocolIpv6 () const
 
bool HttpProtocolIpv6HasBeenSet () const
 
void SetHttpProtocolIpv6 (const InstanceMetadataProtocolState &value)
 
void SetHttpProtocolIpv6 (InstanceMetadataProtocolState &&value)
 
ModifyInstanceMetadataOptionsRequestWithHttpProtocolIpv6 (const InstanceMetadataProtocolState &value)
 
ModifyInstanceMetadataOptionsRequestWithHttpProtocolIpv6 (InstanceMetadataProtocolState &&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 24 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 270 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 262 of file ModifyInstanceMetadataOptionsRequest.h.

◆ GetHttpEndpoint()

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

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 cannot access your instance metadata.

Definition at line 213 of file ModifyInstanceMetadataOptionsRequest.h.

◆ GetHttpProtocolIpv6()

const InstanceMetadataProtocolState& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::GetHttpProtocolIpv6 ( ) const
inline

Enables or disables the IPv6 endpoint for the instance metadata service. This setting applies only if you have enabled the HTTP metadata endpoint.

Definition at line 293 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 180 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 96 of file ModifyInstanceMetadataOptionsRequest.h.

◆ GetInstanceId()

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

The ID of the instance.

Definition at line 45 of file ModifyInstanceMetadataOptionsRequest.h.

◆ GetServiceRequestName()

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

◆ HttpEndpointHasBeenSet()

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

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 cannot access your instance metadata.

Definition at line 221 of file ModifyInstanceMetadataOptionsRequest.h.

◆ HttpProtocolIpv6HasBeenSet()

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

Enables or disables the IPv6 endpoint for the instance metadata service. This setting applies only if you have enabled the HTTP metadata endpoint.

Definition at line 299 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 188 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 111 of file ModifyInstanceMetadataOptionsRequest.h.

◆ InstanceIdHasBeenSet()

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

The ID of the instance.

Definition at line 50 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 278 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetHttpEndpoint() [1/2]

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

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 cannot access your instance metadata.

Definition at line 229 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetHttpEndpoint() [2/2]

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

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 cannot access your instance metadata.

Definition at line 237 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetHttpProtocolIpv6() [1/2]

void Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::SetHttpProtocolIpv6 ( const InstanceMetadataProtocolState value)
inline

Enables or disables the IPv6 endpoint for the instance metadata service. This setting applies only if you have enabled the HTTP metadata endpoint.

Definition at line 305 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetHttpProtocolIpv6() [2/2]

void Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::SetHttpProtocolIpv6 ( InstanceMetadataProtocolState &&  value)
inline

Enables or disables the IPv6 endpoint for the instance metadata service. This setting applies only if you have enabled the HTTP metadata endpoint.

Definition at line 311 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 196 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 126 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 141 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetInstanceId() [1/3]

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

The ID of the instance.

Definition at line 60 of file ModifyInstanceMetadataOptionsRequest.h.

◆ SetInstanceId() [2/3]

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

The ID of the instance.

Definition at line 55 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 65 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 286 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithHttpEndpoint() [1/2]

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

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 cannot access your instance metadata.

Definition at line 245 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithHttpEndpoint() [2/2]

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

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 cannot access your instance metadata.

Definition at line 253 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithHttpProtocolIpv6() [1/2]

ModifyInstanceMetadataOptionsRequest& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::WithHttpProtocolIpv6 ( const InstanceMetadataProtocolState value)
inline

Enables or disables the IPv6 endpoint for the instance metadata service. This setting applies only if you have enabled the HTTP metadata endpoint.

Definition at line 317 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithHttpProtocolIpv6() [2/2]

ModifyInstanceMetadataOptionsRequest& Aws::EC2::Model::ModifyInstanceMetadataOptionsRequest::WithHttpProtocolIpv6 ( InstanceMetadataProtocolState &&  value)
inline

Enables or disables the IPv6 endpoint for the instance metadata service. This setting applies only if you have enabled the HTTP metadata endpoint.

Definition at line 323 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 204 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 156 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 171 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithInstanceId() [1/3]

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

The ID of the instance.

Definition at line 75 of file ModifyInstanceMetadataOptionsRequest.h.

◆ WithInstanceId() [2/3]

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

The ID of the instance.

Definition at line 70 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 80 of file ModifyInstanceMetadataOptionsRequest.h.


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