public class ImportKeyPairRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ImportKeyPairRequest>
Contains the parameters for ImportKeyPair.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
keyName
A unique name for the key pair.
|
private java.lang.String |
publicKeyMaterial
The public key.
|
NOOP
Constructor and Description |
---|
ImportKeyPairRequest()
Default constructor for ImportKeyPairRequest object.
|
ImportKeyPairRequest(java.lang.String keyName,
java.lang.String publicKeyMaterial)
Constructs a new ImportKeyPairRequest object.
|
Modifier and Type | Method and Description |
---|---|
ImportKeyPairRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
Request<ImportKeyPairRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getKeyName()
A unique name for the key pair.
|
java.lang.String |
getPublicKeyMaterial()
The public key.
|
int |
hashCode() |
void |
setKeyName(java.lang.String keyName)
A unique name for the key pair.
|
void |
setPublicKeyMaterial(java.lang.String publicKeyMaterial)
The public key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ImportKeyPairRequest |
withKeyName(java.lang.String keyName)
A unique name for the key pair.
|
ImportKeyPairRequest |
withPublicKeyMaterial(java.lang.String publicKeyMaterial)
The public key.
|
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
private java.lang.String keyName
A unique name for the key pair.
private java.lang.String publicKeyMaterial
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
public ImportKeyPairRequest()
public ImportKeyPairRequest(java.lang.String keyName, java.lang.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(java.lang.String keyName)
A unique name for the key pair.
keyName
- A unique name for the key pair.public java.lang.String getKeyName()
A unique name for the key pair.
public ImportKeyPairRequest withKeyName(java.lang.String keyName)
A unique name for the key pair.
keyName
- A unique name for the key pair.public void setPublicKeyMaterial(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ImportKeyPairRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()