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() |
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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 Object
Object.toString()
public DeleteKeyPairRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.