|
|||||||
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
.
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.
AmazonEC2.createKeyPair(CreateKeyPairRequest)
Constructor Summary | |
---|---|
CreateKeyPairRequest()
Default constructor for a new CreateKeyPairRequest object. |
|
CreateKeyPairRequest(String keyName)
Constructs a new CreateKeyPairRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateKeyPairRequest()
public CreateKeyPairRequest(String keyName)
keyName
- The unique name for the new key pair.Method Detail |
---|
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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |