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

#include <CreateKeyPairRequest.h>

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

Public Member Functions

 CreateKeyPairRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
const Aws::StringGetKeyName () const
 
bool KeyNameHasBeenSet () const
 
void SetKeyName (const Aws::String &value)
 
void SetKeyName (Aws::String &&value)
 
void SetKeyName (const char *value)
 
CreateKeyPairRequestWithKeyName (const Aws::String &value)
 
CreateKeyPairRequestWithKeyName (Aws::String &&value)
 
CreateKeyPairRequestWithKeyName (const char *value)
 
bool GetDryRun () const
 
bool DryRunHasBeenSet () const
 
void SetDryRun (bool value)
 
CreateKeyPairRequestWithDryRun (bool value)
 
const KeyTypeGetKeyType () const
 
bool KeyTypeHasBeenSet () const
 
void SetKeyType (const KeyType &value)
 
void SetKeyType (KeyType &&value)
 
CreateKeyPairRequestWithKeyType (const KeyType &value)
 
CreateKeyPairRequestWithKeyType (KeyType &&value)
 
const Aws::Vector< TagSpecification > & GetTagSpecifications () const
 
bool TagSpecificationsHasBeenSet () const
 
void SetTagSpecifications (const Aws::Vector< TagSpecification > &value)
 
void SetTagSpecifications (Aws::Vector< TagSpecification > &&value)
 
CreateKeyPairRequestWithTagSpecifications (const Aws::Vector< TagSpecification > &value)
 
CreateKeyPairRequestWithTagSpecifications (Aws::Vector< TagSpecification > &&value)
 
CreateKeyPairRequestAddTagSpecifications (const TagSpecification &value)
 
CreateKeyPairRequestAddTagSpecifications (TagSpecification &&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 CreateKeyPairRequest.h.

Constructor & Destructor Documentation

◆ CreateKeyPairRequest()

Aws::EC2::Model::CreateKeyPairRequest::CreateKeyPairRequest ( )

Member Function Documentation

◆ AddTagSpecifications() [1/2]

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

The tags to apply to the new key pair.

Definition at line 200 of file CreateKeyPairRequest.h.

◆ AddTagSpecifications() [2/2]

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

The tags to apply to the new key pair.

Definition at line 205 of file CreateKeyPairRequest.h.

◆ DryRunHasBeenSet()

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

◆ DumpBodyToUrl()

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

◆ GetKeyName()

const Aws::String& Aws::EC2::Model::CreateKeyPairRequest::GetKeyName ( ) const
inline

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

Definition at line 46 of file CreateKeyPairRequest.h.

◆ GetKeyType()

const KeyType& Aws::EC2::Model::CreateKeyPairRequest::GetKeyType ( ) const
inline

The type of key pair. Note that ED25519 keys are not supported for Windows instances, EC2 Instance Connect, and EC2 Serial Console.

Default: rsa

Definition at line 129 of file CreateKeyPairRequest.h.

◆ GetServiceRequestName()

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

Implements Aws::AmazonWebServiceRequest.

Definition at line 33 of file CreateKeyPairRequest.h.

◆ GetTagSpecifications()

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

The tags to apply to the new key pair.

Definition at line 170 of file CreateKeyPairRequest.h.

◆ KeyNameHasBeenSet()

bool Aws::EC2::Model::CreateKeyPairRequest::KeyNameHasBeenSet ( ) const
inline

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

Definition at line 52 of file CreateKeyPairRequest.h.

◆ KeyTypeHasBeenSet()

bool Aws::EC2::Model::CreateKeyPairRequest::KeyTypeHasBeenSet ( ) const
inline

The type of key pair. Note that ED25519 keys are not supported for Windows instances, EC2 Instance Connect, and EC2 Serial Console.

Default: rsa

Definition at line 136 of file CreateKeyPairRequest.h.

◆ SerializePayload()

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

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetDryRun()

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

◆ SetKeyName() [1/3]

void Aws::EC2::Model::CreateKeyPairRequest::SetKeyName ( Aws::String &&  value)
inline

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

Definition at line 64 of file CreateKeyPairRequest.h.

◆ SetKeyName() [2/3]

void Aws::EC2::Model::CreateKeyPairRequest::SetKeyName ( const Aws::String value)
inline

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

Definition at line 58 of file CreateKeyPairRequest.h.

◆ SetKeyName() [3/3]

void Aws::EC2::Model::CreateKeyPairRequest::SetKeyName ( const char *  value)
inline

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

Definition at line 70 of file CreateKeyPairRequest.h.

◆ SetKeyType() [1/2]

void Aws::EC2::Model::CreateKeyPairRequest::SetKeyType ( const KeyType value)
inline

The type of key pair. Note that ED25519 keys are not supported for Windows instances, EC2 Instance Connect, and EC2 Serial Console.

Default: rsa

Definition at line 143 of file CreateKeyPairRequest.h.

◆ SetKeyType() [2/2]

void Aws::EC2::Model::CreateKeyPairRequest::SetKeyType ( KeyType &&  value)
inline

The type of key pair. Note that ED25519 keys are not supported for Windows instances, EC2 Instance Connect, and EC2 Serial Console.

Default: rsa

Definition at line 150 of file CreateKeyPairRequest.h.

◆ SetTagSpecifications() [1/2]

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

The tags to apply to the new key pair.

Definition at line 185 of file CreateKeyPairRequest.h.

◆ SetTagSpecifications() [2/2]

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

The tags to apply to the new key pair.

Definition at line 180 of file CreateKeyPairRequest.h.

◆ TagSpecificationsHasBeenSet()

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

The tags to apply to the new key pair.

Definition at line 175 of file CreateKeyPairRequest.h.

◆ WithDryRun()

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

◆ WithKeyName() [1/3]

CreateKeyPairRequest& Aws::EC2::Model::CreateKeyPairRequest::WithKeyName ( Aws::String &&  value)
inline

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

Definition at line 82 of file CreateKeyPairRequest.h.

◆ WithKeyName() [2/3]

CreateKeyPairRequest& Aws::EC2::Model::CreateKeyPairRequest::WithKeyName ( const Aws::String value)
inline

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

Definition at line 76 of file CreateKeyPairRequest.h.

◆ WithKeyName() [3/3]

CreateKeyPairRequest& Aws::EC2::Model::CreateKeyPairRequest::WithKeyName ( const char *  value)
inline

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

Definition at line 88 of file CreateKeyPairRequest.h.

◆ WithKeyType() [1/2]

CreateKeyPairRequest& Aws::EC2::Model::CreateKeyPairRequest::WithKeyType ( const KeyType value)
inline

The type of key pair. Note that ED25519 keys are not supported for Windows instances, EC2 Instance Connect, and EC2 Serial Console.

Default: rsa

Definition at line 157 of file CreateKeyPairRequest.h.

◆ WithKeyType() [2/2]

CreateKeyPairRequest& Aws::EC2::Model::CreateKeyPairRequest::WithKeyType ( KeyType &&  value)
inline

The type of key pair. Note that ED25519 keys are not supported for Windows instances, EC2 Instance Connect, and EC2 Serial Console.

Default: rsa

Definition at line 164 of file CreateKeyPairRequest.h.

◆ WithTagSpecifications() [1/2]

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

The tags to apply to the new key pair.

Definition at line 195 of file CreateKeyPairRequest.h.

◆ WithTagSpecifications() [2/2]

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

The tags to apply to the new key pair.

Definition at line 190 of file CreateKeyPairRequest.h.


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