@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateKeyPairRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateKeyPairRequest>
Contains the parameters for CreateKeyPair.
NOOP| Constructor and Description | 
|---|
| CreateKeyPairRequest()Default constructor for CreateKeyPairRequest object. | 
| CreateKeyPairRequest(String keyName)Constructs a new CreateKeyPairRequest object. | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateKeyPairRequest | clone() | 
| boolean | equals(Object obj) | 
| Request<CreateKeyPairRequest> | getDryRunRequest()This method is intended for internal use only. | 
| String | getKeyName()
 A unique name for the key pair. | 
| int | hashCode() | 
| void | setKeyName(String keyName)
 A unique name for the key pair. | 
| String | toString()Returns a string representation of this object; useful for testing and debugging. | 
| CreateKeyPairRequest | withKeyName(String keyName)
 A unique name for the key pair. | 
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic CreateKeyPairRequest()
public CreateKeyPairRequest(String keyName)
keyName - A unique name for the key pair.
        Constraints: Up to 255 ASCII characters
public void setKeyName(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 String getKeyName()
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
Constraints: Up to 255 ASCII characters
public CreateKeyPairRequest withKeyName(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 String toString()
toString in class ObjectObject.toString()public CreateKeyPairRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2017. All rights reserved.