@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportKeyPairRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ImportKeyPairRequest>
NOOP
Constructor and Description |
---|
ImportKeyPairRequest()
Default constructor for ImportKeyPairRequest object.
|
ImportKeyPairRequest(String keyName,
String publicKeyMaterial)
Constructs a new ImportKeyPairRequest object.
|
Modifier and Type | Method and Description |
---|---|
ImportKeyPairRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<ImportKeyPairRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getKeyName()
A unique name for the key pair.
|
String |
getPublicKeyMaterial()
The public key.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the imported key pair.
|
int |
hashCode() |
void |
setKeyName(String keyName)
A unique name for the key pair.
|
void |
setPublicKeyMaterial(String publicKeyMaterial)
The public key.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the imported key pair.
|
String |
toString()
Returns a string representation of this object.
|
ImportKeyPairRequest |
withKeyName(String keyName)
A unique name for the key pair.
|
ImportKeyPairRequest |
withPublicKeyMaterial(String publicKeyMaterial)
The public key.
|
ImportKeyPairRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the imported key pair.
|
ImportKeyPairRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the imported 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 ImportKeyPairRequest()
public ImportKeyPairRequest(String keyName, String publicKeyMaterial)
keyName
- A unique name for the key pair.publicKeyMaterial
- The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is
performed for you.public void setKeyName(String keyName)
A unique name for the key pair.
keyName
- A unique name for the key pair.public String getKeyName()
A unique name for the key pair.
public ImportKeyPairRequest withKeyName(String keyName)
A unique name for the key pair.
keyName
- A unique name for the key pair.public void setPublicKeyMaterial(String publicKeyMaterial)
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
publicKeyMaterial
- The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is
performed for you.public String getPublicKeyMaterial()
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
public ImportKeyPairRequest withPublicKeyMaterial(String publicKeyMaterial)
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
publicKeyMaterial
- The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is
performed for you.public List<TagSpecification> getTagSpecifications()
The tags to apply to the imported key pair.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the imported key pair.
tagSpecifications
- The tags to apply to the imported key pair.public ImportKeyPairRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the imported 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 imported key pair.public ImportKeyPairRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the imported key pair.
tagSpecifications
- The tags to apply to the imported key pair.public Request<ImportKeyPairRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ImportKeyPairRequest>
public String toString()
toString
in class Object
Object.toString()
public ImportKeyPairRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()