Package com.amazonaws.services.ec2.model
Class ImportKeyPairRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ImportKeyPairRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ImportKeyPairRequest>
,Serializable
,Cloneable
public class ImportKeyPairRequest
extends AmazonWebServiceRequest
implements Serializable, Cloneable, DryRunSupportedRequest<ImportKeyPairRequest>
Contains the parameters for ImportKeyPair.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for ImportKeyPairRequest object.ImportKeyPairRequest
(String keyName, String publicKeyMaterial) Constructs a new ImportKeyPairRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
This method is intended for internal use only.A unique name for the key pair.The public key.int
hashCode()
void
setKeyName
(String keyName) A unique name for the key pair.void
setPublicKeyMaterial
(String publicKeyMaterial) The public key.toString()
Returns a string representation of this object; useful for testing and debugging.withKeyName
(String keyName) A unique name for the key pair.withPublicKeyMaterial
(String publicKeyMaterial) The public key.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
ImportKeyPairRequest
public ImportKeyPairRequest()Default constructor for ImportKeyPairRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
ImportKeyPairRequest
Constructs a new ImportKeyPairRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
keyName
- A unique name for the key pair.publicKeyMaterial
- The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
-
-
Method Details
-
setKeyName
A unique name for the key pair.
- Parameters:
keyName
- A unique name for the key pair.
-
getKeyName
A unique name for the key pair.
- Returns:
- A unique name for the key pair.
-
withKeyName
A unique name for the key pair.
- Parameters:
keyName
- A unique name for the key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPublicKeyMaterial
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
- Parameters:
publicKeyMaterial
- The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
-
getPublicKeyMaterial
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
- Returns:
- The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
-
withPublicKeyMaterial
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
- Parameters:
publicKeyMaterial
- The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ImportKeyPairRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-