|
|||||||
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 | |
---|---|
String |
getKeyName()
The unique name for the new key pair. |
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, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, 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()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |