public class CreateKeyPairRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<CreateKeyPairRequest>
CreateKeyPair operation.
The CreateKeyPair operation creates a new 2048 bit RSA key pair and returns a unique ID that can be used to reference this key pair when launching new instances. For more information, see RunInstances.
| Constructor and Description |
|---|
CreateKeyPairRequest()
Default constructor for a new CreateKeyPairRequest object.
|
CreateKeyPairRequest(String keyName)
Constructs a new CreateKeyPairRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Request<CreateKeyPairRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getKeyName()
The unique name for the new key pair.
|
int |
hashCode() |
void |
setKeyName(String keyName)
The unique name for the new key pair.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateKeyPairRequest |
withKeyName(String keyName)
The unique name for the new key pair.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic CreateKeyPairRequest()
public CreateKeyPairRequest(String keyName)
keyName - The unique name for the new key pair.public String getKeyName()
public void setKeyName(String keyName)
keyName - The unique name for the new key pair.public CreateKeyPairRequest withKeyName(String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName - The unique name for the new key pair.public Request<CreateKeyPairRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateKeyPairRequest>public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.