|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateKeyPairRequest
public class CreateKeyPairRequest
Container for the parameters to the CreateKeyPair operation
.
Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#8 private key. If a key with the specified name already exists, Amazon EC2 returns an error.
You can have up to five thousand key pairs per region.
For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide .
AmazonEC2.createKeyPair(CreateKeyPairRequest)
,
Serialized FormConstructor Summary | |
---|---|
CreateKeyPairRequest()
Default constructor for a new CreateKeyPairRequest object. |
|
CreateKeyPairRequest(java.lang.String keyName)
Constructs a new CreateKeyPairRequest object. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateKeyPairRequest()
public CreateKeyPairRequest(java.lang.String keyName)
keyName
- A unique name for the key pair.Method Detail |
---|
public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName
- A unique name for the key pair.public CreateKeyPairRequest withKeyName(java.lang.String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- A unique name for the key pair.
public Request<CreateKeyPairRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateKeyPairRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |