com.amazonaws.services.ec2.model
Class DeleteKeyPairRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DeleteKeyPairRequest
All Implemented Interfaces:
DryRunSupportedRequest<DeleteKeyPairRequest>, java.io.Serializable

public class DeleteKeyPairRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<DeleteKeyPairRequest>

Container for the parameters to the DeleteKeyPair operation.

Deletes the specified key pair, by removing the public key from Amazon EC2.

See Also:
AmazonEC2.deleteKeyPair(DeleteKeyPairRequest), Serialized Form

Constructor Summary
DeleteKeyPairRequest()
          Default constructor for a new DeleteKeyPairRequest object.
DeleteKeyPairRequest(java.lang.String keyName)
          Constructs a new DeleteKeyPairRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<DeleteKeyPairRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getKeyName()
          The name of the key pair.
 int hashCode()
           
 void setKeyName(java.lang.String keyName)
          The name of the key pair.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteKeyPairRequest withKeyName(java.lang.String keyName)
          The name of 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

DeleteKeyPairRequest

public DeleteKeyPairRequest()
Default constructor for a new DeleteKeyPairRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeleteKeyPairRequest

public DeleteKeyPairRequest(java.lang.String keyName)
Constructs a new DeleteKeyPairRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
keyName - The name of the key pair.
Method Detail

getKeyName

public java.lang.String getKeyName()
The name of the key pair.

Returns:
The name of the key pair.

setKeyName

public void setKeyName(java.lang.String keyName)
The name of the key pair.

Parameters:
keyName - The name of the key pair.

withKeyName

public DeleteKeyPairRequest withKeyName(java.lang.String keyName)
The name of the key pair.

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

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

getDryRunRequest

public Request<DeleteKeyPairRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<DeleteKeyPairRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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