@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 |
getKeyFormat()
The format of the key pair.
|
String |
getKeyName()
A unique name for the key pair.
|
String |
getKeyType()
The type of key pair.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the new key pair.
|
int |
hashCode() |
void |
setKeyFormat(String keyFormat)
The format of the key pair.
|
void |
setKeyName(String keyName)
A unique name for the key pair.
|
void |
setKeyType(String keyType)
The type of 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 |
withKeyFormat(KeyFormat keyFormat)
The format of the key pair.
|
CreateKeyPairRequest |
withKeyFormat(String keyFormat)
The format of the key pair.
|
CreateKeyPairRequest |
withKeyName(String keyName)
A unique name for the key pair.
|
CreateKeyPairRequest |
withKeyType(KeyType keyType)
The type of key pair.
|
CreateKeyPairRequest |
withKeyType(String keyType)
The type of 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, withSdkRequestTimeout
public 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 void setKeyType(String keyType)
The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
keyType
- The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
KeyType
public String getKeyType()
The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
Default: rsa
KeyType
public CreateKeyPairRequest withKeyType(String keyType)
The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
keyType
- The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
KeyType
public CreateKeyPairRequest withKeyType(KeyType keyType)
The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
keyType
- The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default: rsa
KeyType
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 void setKeyFormat(String keyFormat)
The format of the key pair.
Default: pem
keyFormat
- The format of the key pair.
Default: pem
KeyFormat
public String getKeyFormat()
The format of the key pair.
Default: pem
Default: pem
KeyFormat
public CreateKeyPairRequest withKeyFormat(String keyFormat)
The format of the key pair.
Default: pem
keyFormat
- The format of the key pair.
Default: pem
KeyFormat
public CreateKeyPairRequest withKeyFormat(KeyFormat keyFormat)
The format of the key pair.
Default: pem
keyFormat
- The format of the key pair.
Default: pem
KeyFormat
public Request<CreateKeyPairRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateKeyPairRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateKeyPairRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()