public class CreateKeyPairRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateKeyPairRequest>
Contains the parameters for CreateKeyPair.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
keyName
A unique name for the key pair.
|
NOOP
Constructor and Description |
---|
CreateKeyPairRequest()
Default constructor for CreateKeyPairRequest object.
|
CreateKeyPairRequest(java.lang.String keyName)
Constructs a new CreateKeyPairRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateKeyPairRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
Request<CreateKeyPairRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getKeyName()
A unique name for the key pair.
|
int |
hashCode() |
void |
setKeyName(java.lang.String keyName)
A unique name for the key pair.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateKeyPairRequest |
withKeyName(java.lang.String keyName)
A unique name for the key pair.
|
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.
Constraints: Up to 255 ASCII characters
public CreateKeyPairRequest()
public CreateKeyPairRequest(java.lang.String keyName)
keyName
- A unique name for the key pair.
Constraints: Up to 255 ASCII characters
public void setKeyName(java.lang.String keyName)
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
keyName
- A unique name for the key pair.
Constraints: Up to 255 ASCII characters
public java.lang.String getKeyName()
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
Constraints: Up to 255 ASCII characters
public CreateKeyPairRequest withKeyName(java.lang.String keyName)
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
keyName
- A unique name for the key pair.
Constraints: Up to 255 ASCII characters
public Request<CreateKeyPairRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateKeyPairRequest>
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 CreateKeyPairRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()