@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateKeyPairRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateKeyPairRequest() |
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) |
String |
getKeyPairName()
The name for your new key pair.
|
List<Tag> |
getTags()
The tag keys and optional values to add to the resource during create.
|
int |
hashCode() |
void |
setKeyPairName(String keyPairName)
The name for your new key pair.
|
void |
setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
String |
toString()
Returns a string representation of this object.
|
CreateKeyPairRequest |
withKeyPairName(String keyPairName)
The name for your new key pair.
|
CreateKeyPairRequest |
withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
CreateKeyPairRequest |
withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
|
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, withSdkRequestTimeout
public void setKeyPairName(String keyPairName)
The name for your new key pair.
keyPairName
- The name for your new key pair.public String getKeyPairName()
The name for your new key pair.
public CreateKeyPairRequest withKeyPairName(String keyPairName)
The name for your new key pair.
keyPairName
- The name for your new key pair.public List<Tag> getTags()
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
Use the TagResource
action to tag a resource after it's created.
public void setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public CreateKeyPairRequest withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public CreateKeyPairRequest withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public String toString()
toString
in class Object
Object.toString()
public CreateKeyPairRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()