@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateKeyPairRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateKeyPairRequest>
NOOP| Constructor and Description | 
|---|
CreateKeyPairRequest()
Default constructor for CreateKeyPairRequest object. 
 | 
CreateKeyPairRequest(String keyName)
Constructs a new CreateKeyPairRequest object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CreateKeyPairRequest | 
clone()
Creates a shallow clone of this object for all fields except the handler context. 
 | 
boolean | 
equals(Object obj)  | 
Request<CreateKeyPairRequest> | 
getDryRunRequest()
This method is intended for internal use only. 
 | 
String | 
getKeyName()
 A unique name for the key pair. 
 | 
List<TagSpecification> | 
getTagSpecifications()
 The tags to apply to the new key pair. 
 | 
int | 
hashCode()  | 
void | 
setKeyName(String keyName)
 A unique name for the key pair. 
 | 
void | 
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
 The tags to apply to the new key pair. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
CreateKeyPairRequest | 
withKeyName(String keyName)
 A unique name for the key pair. 
 | 
CreateKeyPairRequest | 
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
 The tags to apply to the new key pair. 
 | 
CreateKeyPairRequest | 
withTagSpecifications(TagSpecification... tagSpecifications)
 The tags to apply to the new key pair. 
 | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic CreateKeyPairRequest()
public CreateKeyPairRequest(String keyName)
keyName - A unique name for the key pair.
        Constraints: Up to 255 ASCII characters
public void setKeyName(String keyName)
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
keyName - A unique name for the key pair.
        Constraints: Up to 255 ASCII characters
public String getKeyName()
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
Constraints: Up to 255 ASCII characters
public CreateKeyPairRequest withKeyName(String keyName)
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
keyName - A unique name for the key pair.
        Constraints: Up to 255 ASCII characters
public List<TagSpecification> getTagSpecifications()
The tags to apply to the new key pair.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new key pair.
tagSpecifications - The tags to apply to the new key pair.public CreateKeyPairRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the new key pair.
 NOTE: This method appends the values to the existing list (if any). Use
 setTagSpecifications(java.util.Collection) or withTagSpecifications(java.util.Collection) if
 you want to override the existing values.
 
tagSpecifications - The tags to apply to the new key pair.public CreateKeyPairRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the new key pair.
tagSpecifications - The tags to apply to the new key pair.public Request<CreateKeyPairRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<CreateKeyPairRequest>public String toString()
toString in class ObjectObject.toString()public CreateKeyPairRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()