public class DeleteKeyPairRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DeleteKeyPairRequest>
DeleteKeyPair operation.
Deletes the specified key pair, by removing the public key from Amazon EC2.
NOOP| Constructor and Description |
|---|
DeleteKeyPairRequest()
Default constructor for a new DeleteKeyPairRequest object.
|
DeleteKeyPairRequest(String keyName)
Constructs a new DeleteKeyPairRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
DeleteKeyPairRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Request<DeleteKeyPairRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getKeyName()
The name of the key pair.
|
int |
hashCode() |
void |
setKeyName(String keyName)
The name of the key pair.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteKeyPairRequest |
withKeyName(String keyName)
The name of the key pair.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic DeleteKeyPairRequest()
public DeleteKeyPairRequest(String keyName)
keyName - The name of the key pair.public String getKeyName()
public void setKeyName(String keyName)
keyName - The name of the key pair.public DeleteKeyPairRequest withKeyName(String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName - The name of the key pair.public Request<DeleteKeyPairRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<DeleteKeyPairRequest>public String toString()
toString in class ObjectObject.toString()public DeleteKeyPairRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.