@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImportSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ImportSnapshotRequest>
NOOP
Constructor and Description |
---|
ImportSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
ImportSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
ClientData |
getClientData()
The client-specific data.
|
String |
getClientToken()
Token to enable idempotency for VM import requests.
|
String |
getDescription()
The description string for the import snapshot task.
|
SnapshotDiskContainer |
getDiskContainer()
Information about the disk container.
|
Request<ImportSnapshotRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Boolean |
getEncrypted()
Specifies whether the destination snapshot of the imported image should be encrypted.
|
String |
getKmsKeyId()
An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the
encrypted snapshot.
|
String |
getRoleName()
The name of the role to use when not using the default role, 'vmimport'.
|
int |
hashCode() |
Boolean |
isEncrypted()
Specifies whether the destination snapshot of the imported image should be encrypted.
|
void |
setClientData(ClientData clientData)
The client-specific data.
|
void |
setClientToken(String clientToken)
Token to enable idempotency for VM import requests.
|
void |
setDescription(String description)
The description string for the import snapshot task.
|
void |
setDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.
|
void |
setEncrypted(Boolean encrypted)
Specifies whether the destination snapshot of the imported image should be encrypted.
|
void |
setKmsKeyId(String kmsKeyId)
An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the
encrypted snapshot.
|
void |
setRoleName(String roleName)
The name of the role to use when not using the default role, 'vmimport'.
|
String |
toString()
Returns a string representation of this object.
|
ImportSnapshotRequest |
withClientData(ClientData clientData)
The client-specific data.
|
ImportSnapshotRequest |
withClientToken(String clientToken)
Token to enable idempotency for VM import requests.
|
ImportSnapshotRequest |
withDescription(String description)
The description string for the import snapshot task.
|
ImportSnapshotRequest |
withDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.
|
ImportSnapshotRequest |
withEncrypted(Boolean encrypted)
Specifies whether the destination snapshot of the imported image should be encrypted.
|
ImportSnapshotRequest |
withKmsKeyId(String kmsKeyId)
An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the
encrypted snapshot.
|
ImportSnapshotRequest |
withRoleName(String roleName)
The name of the role to use when not using the default role, 'vmimport'.
|
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 setClientData(ClientData clientData)
The client-specific data.
clientData
- The client-specific data.public ClientData getClientData()
The client-specific data.
public ImportSnapshotRequest withClientData(ClientData clientData)
The client-specific data.
clientData
- The client-specific data.public void setClientToken(String clientToken)
Token to enable idempotency for VM import requests.
clientToken
- Token to enable idempotency for VM import requests.public String getClientToken()
Token to enable idempotency for VM import requests.
public ImportSnapshotRequest withClientToken(String clientToken)
Token to enable idempotency for VM import requests.
clientToken
- Token to enable idempotency for VM import requests.public void setDescription(String description)
The description string for the import snapshot task.
description
- The description string for the import snapshot task.public String getDescription()
The description string for the import snapshot task.
public ImportSnapshotRequest withDescription(String description)
The description string for the import snapshot task.
description
- The description string for the import snapshot task.public void setDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.
diskContainer
- Information about the disk container.public SnapshotDiskContainer getDiskContainer()
Information about the disk container.
public ImportSnapshotRequest withDiskContainer(SnapshotDiskContainer diskContainer)
Information about the disk container.
diskContainer
- Information about the disk container.public void setEncrypted(Boolean encrypted)
Specifies whether the destination snapshot of the imported image should be encrypted. The default CMK for EBS is
used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId
. For
more information, see Amazon EBS
Encryption in the Amazon Elastic Compute Cloud User Guide.
encrypted
- Specifies whether the destination snapshot of the imported image should be encrypted. The default CMK for
EBS is used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using
KmsKeyId
. For more information, see Amazon EBS Encryption in
the Amazon Elastic Compute Cloud User Guide.public Boolean getEncrypted()
Specifies whether the destination snapshot of the imported image should be encrypted. The default CMK for EBS is
used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId
. For
more information, see Amazon EBS
Encryption in the Amazon Elastic Compute Cloud User Guide.
KmsKeyId
. For more information, see Amazon EBS Encryption
in the Amazon Elastic Compute Cloud User Guide.public ImportSnapshotRequest withEncrypted(Boolean encrypted)
Specifies whether the destination snapshot of the imported image should be encrypted. The default CMK for EBS is
used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId
. For
more information, see Amazon EBS
Encryption in the Amazon Elastic Compute Cloud User Guide.
encrypted
- Specifies whether the destination snapshot of the imported image should be encrypted. The default CMK for
EBS is used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using
KmsKeyId
. For more information, see Amazon EBS Encryption in
the Amazon Elastic Compute Cloud User Guide.public Boolean isEncrypted()
Specifies whether the destination snapshot of the imported image should be encrypted. The default CMK for EBS is
used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId
. For
more information, see Amazon EBS
Encryption in the Amazon Elastic Compute Cloud User Guide.
KmsKeyId
. For more information, see Amazon EBS Encryption
in the Amazon Elastic Compute Cloud User Guide.public void setKmsKeyId(String kmsKeyId)
An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the
encrypted snapshot. This parameter is only required if you want to use a non-default CMK; if this parameter is
not specified, the default CMK for EBS is used. If a KmsKeyId
is specified, the
Encrypted
flag must also be set.
The CMK identifier may be provided in any of the following formats:
Key ID
Key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region of the CMK, the
AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias. For example,
arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
ARN using key ID. The ID ARN contains the arn:aws:kms
namespace, followed by the Region of the CMK,
the AWS account ID of the CMK owner, the key
namespace, and then the CMK ID. For example,
arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
ARN using key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region of the
CMK, the AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias. For example,
arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
AWS parses KmsKeyId
asynchronously, meaning that the action you call may appear to complete even
though you provided an invalid identifier. This action will eventually report failure.
The specified CMK must exist in the Region that the snapshot is being copied to.
kmsKeyId
- An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating
the encrypted snapshot. This parameter is only required if you want to use a non-default CMK; if this
parameter is not specified, the default CMK for EBS is used. If a KmsKeyId
is specified, the
Encrypted
flag must also be set.
The CMK identifier may be provided in any of the following formats:
Key ID
Key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region of the
CMK, the AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias. For
example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
ARN using key ID. The ID ARN contains the arn:aws:kms
namespace, followed by the Region of
the CMK, the AWS account ID of the CMK owner, the key
namespace, and then the CMK ID. For
example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
ARN using key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region
of the CMK, the AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias.
For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
AWS parses KmsKeyId
asynchronously, meaning that the action you call may appear to complete
even though you provided an invalid identifier. This action will eventually report failure.
The specified CMK must exist in the Region that the snapshot is being copied to.
public String getKmsKeyId()
An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the
encrypted snapshot. This parameter is only required if you want to use a non-default CMK; if this parameter is
not specified, the default CMK for EBS is used. If a KmsKeyId
is specified, the
Encrypted
flag must also be set.
The CMK identifier may be provided in any of the following formats:
Key ID
Key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region of the CMK, the
AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias. For example,
arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
ARN using key ID. The ID ARN contains the arn:aws:kms
namespace, followed by the Region of the CMK,
the AWS account ID of the CMK owner, the key
namespace, and then the CMK ID. For example,
arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
ARN using key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region of the
CMK, the AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias. For example,
arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
AWS parses KmsKeyId
asynchronously, meaning that the action you call may appear to complete even
though you provided an invalid identifier. This action will eventually report failure.
The specified CMK must exist in the Region that the snapshot is being copied to.
KmsKeyId
is specified, the
Encrypted
flag must also be set.
The CMK identifier may be provided in any of the following formats:
Key ID
Key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region of the
CMK, the AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias. For
example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
ARN using key ID. The ID ARN contains the arn:aws:kms
namespace, followed by the Region of
the CMK, the AWS account ID of the CMK owner, the key
namespace, and then the CMK ID. For
example,
arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
ARN using key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the
Region of the CMK, the AWS account ID of the CMK owner, the alias
namespace, and then the
CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
AWS parses KmsKeyId
asynchronously, meaning that the action you call may appear to complete
even though you provided an invalid identifier. This action will eventually report failure.
The specified CMK must exist in the Region that the snapshot is being copied to.
public ImportSnapshotRequest withKmsKeyId(String kmsKeyId)
An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the
encrypted snapshot. This parameter is only required if you want to use a non-default CMK; if this parameter is
not specified, the default CMK for EBS is used. If a KmsKeyId
is specified, the
Encrypted
flag must also be set.
The CMK identifier may be provided in any of the following formats:
Key ID
Key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region of the CMK, the
AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias. For example,
arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
ARN using key ID. The ID ARN contains the arn:aws:kms
namespace, followed by the Region of the CMK,
the AWS account ID of the CMK owner, the key
namespace, and then the CMK ID. For example,
arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
ARN using key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region of the
CMK, the AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias. For example,
arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
AWS parses KmsKeyId
asynchronously, meaning that the action you call may appear to complete even
though you provided an invalid identifier. This action will eventually report failure.
The specified CMK must exist in the Region that the snapshot is being copied to.
kmsKeyId
- An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating
the encrypted snapshot. This parameter is only required if you want to use a non-default CMK; if this
parameter is not specified, the default CMK for EBS is used. If a KmsKeyId
is specified, the
Encrypted
flag must also be set.
The CMK identifier may be provided in any of the following formats:
Key ID
Key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region of the
CMK, the AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias. For
example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
ARN using key ID. The ID ARN contains the arn:aws:kms
namespace, followed by the Region of
the CMK, the AWS account ID of the CMK owner, the key
namespace, and then the CMK ID. For
example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
ARN using key alias. The alias ARN contains the arn:aws:kms
namespace, followed by the Region
of the CMK, the AWS account ID of the CMK owner, the alias
namespace, and then the CMK alias.
For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
AWS parses KmsKeyId
asynchronously, meaning that the action you call may appear to complete
even though you provided an invalid identifier. This action will eventually report failure.
The specified CMK must exist in the Region that the snapshot is being copied to.
public void setRoleName(String roleName)
The name of the role to use when not using the default role, 'vmimport'.
roleName
- The name of the role to use when not using the default role, 'vmimport'.public String getRoleName()
The name of the role to use when not using the default role, 'vmimport'.
public ImportSnapshotRequest withRoleName(String roleName)
The name of the role to use when not using the default role, 'vmimport'.
roleName
- The name of the role to use when not using the default role, 'vmimport'.public Request<ImportSnapshotRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ImportSnapshotRequest>
public String toString()
toString
in class Object
Object.toString()
public ImportSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.