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 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.booleanThis method is intended for internal use only.A unique name for the key pair.The public key.inthashCode()voidsetKeyName(String keyName) A unique name for the key pair.voidsetPublicKeyMaterial(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 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
-
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:
getDryRunRequestin interfaceDryRunSupportedRequest<ImportKeyPairRequest>
-
toString
-
equals
-
hashCode
-
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-