com.amazonaws.services.ec2.model
Class CreateKeyPairRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateKeyPairRequest

public class CreateKeyPairRequest
extends AmazonWebServiceRequest

Represents a request to create a new EC2 key pair.


Constructor Summary
CreateKeyPairRequest()
           
 
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()
           
 CreateKeyPairRequest withKeyName(String keyName)
          The unique name for the new key pair.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateKeyPairRequest

public CreateKeyPairRequest()
Method Detail

getKeyName

public String getKeyName()
The unique name for the new key pair.

Returns:
The unique name for the new key pair.

setKeyName

public void setKeyName(String keyName)
The unique name for the new key pair.

Parameters:
keyName - The unique name for the new key pair.

withKeyName

public CreateKeyPairRequest withKeyName(String keyName)
The unique name for the new key pair.

Returns a reference to this object so that method calls can be chained together.

Parameters:
keyName - The unique name for the new key pair.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.