@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportKeyPairRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ImportKeyPairRequest>
Contains the parameters for ImportKeyPair.
NOOP
Constructor and Description |
---|
ImportKeyPairRequest()
Default constructor for ImportKeyPairRequest object.
|
ImportKeyPairRequest(String keyName,
String publicKeyMaterial)
Constructs a new ImportKeyPairRequest object.
|
Modifier and Type | Method and Description |
---|---|
ImportKeyPairRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<ImportKeyPairRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getKeyName()
A unique name for the key pair.
|
String |
getPublicKeyMaterial()
The public key.
|
int |
hashCode() |
void |
setKeyName(String keyName)
A unique name for the key pair.
|
void |
setPublicKeyMaterial(String publicKeyMaterial)
The public key.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ImportKeyPairRequest |
withKeyName(String keyName)
A unique name for the key pair.
|
ImportKeyPairRequest |
withPublicKeyMaterial(String publicKeyMaterial)
The public key.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public ImportKeyPairRequest()
public ImportKeyPairRequest(String keyName, String publicKeyMaterial)
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.public void setKeyName(String keyName)
A unique name for the key pair.
keyName
- A unique name for the key pair.public String getKeyName()
A unique name for the key pair.
public ImportKeyPairRequest withKeyName(String keyName)
A unique name for the key pair.
keyName
- A unique name for the key pair.public void setPublicKeyMaterial(String publicKeyMaterial)
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
publicKeyMaterial
- The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is
performed for you.public String getPublicKeyMaterial()
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
public ImportKeyPairRequest withPublicKeyMaterial(String publicKeyMaterial)
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
publicKeyMaterial
- The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is
performed for you.public Request<ImportKeyPairRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ImportKeyPairRequest>
public String toString()
toString
in class Object
Object.toString()
public ImportKeyPairRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.