@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 symmetric KMS key to use when creating the encrypted snapshot. | 
| String | getRoleName()
 The name of the role to use when not using the default role, 'vmimport'. | 
| List<TagSpecification> | getTagSpecifications()
 The tags to apply to the import snapshot task during creation. | 
| 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 symmetric KMS key 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'. | 
| void | setTagSpecifications(Collection<TagSpecification> tagSpecifications)
 The tags to apply to the import snapshot task during creation. | 
| 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 symmetric KMS key 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'. | 
| ImportSnapshotRequest | withTagSpecifications(Collection<TagSpecification> tagSpecifications)
 The tags to apply to the import snapshot task during creation. | 
| ImportSnapshotRequest | withTagSpecifications(TagSpecification... tagSpecifications)
 The tags to apply to the import snapshot task during creation. | 
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 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 KMS key for EBS
 is used unless you specify a non-default KMS key 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 KMS key
        for EBS is used unless you specify a non-default KMS key 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 KMS key for EBS
 is used unless you specify a non-default KMS key 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 KMS key for EBS
 is used unless you specify a non-default KMS key 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 KMS key
        for EBS is used unless you specify a non-default KMS key 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 KMS key for EBS
 is used unless you specify a non-default KMS key 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 symmetric KMS key to use when creating the encrypted snapshot. This parameter is only
 required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for
 EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.
 
The KMS key identifier may be provided in any of the following formats:
Key ID
Key alias
 ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of the key,
 the Amazon Web Services account ID of the key owner, the key namespace, and then the key 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
 key, the Amazon Web Services account ID of the key owner, the alias namespace, and then the key
 alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
 
 Amazon Web Services 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 KMS key must exist in the Region that the snapshot is being copied to.
Amazon EBS does not support asymmetric KMS keys.
kmsKeyId - An identifier for the symmetric KMS key to use when creating the encrypted snapshot. This parameter is
        only required if you want to use a non-default KMS key; if this parameter is not specified, the default
        KMS key for EBS is used. If a KmsKeyId is specified, the Encrypted flag must
        also be set. 
        The KMS key identifier may be provided in any of the following formats:
Key ID
Key alias
        ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of
        the key, the Amazon Web Services account ID of the key owner, the key namespace, and then the
        key 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 key, the Amazon Web Services account ID of the key owner, the alias namespace, and
        then the key alias. For example,
        arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
        
        Amazon Web Services 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 KMS key must exist in the Region that the snapshot is being copied to.
Amazon EBS does not support asymmetric KMS keys.
public String getKmsKeyId()
 An identifier for the symmetric KMS key to use when creating the encrypted snapshot. This parameter is only
 required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for
 EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.
 
The KMS key identifier may be provided in any of the following formats:
Key ID
Key alias
 ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of the key,
 the Amazon Web Services account ID of the key owner, the key namespace, and then the key 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
 key, the Amazon Web Services account ID of the key owner, the alias namespace, and then the key
 alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
 
 Amazon Web Services 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 KMS key must exist in the Region that the snapshot is being copied to.
Amazon EBS does not support asymmetric KMS keys.
KmsKeyId is specified, the Encrypted flag must
         also be set. 
         The KMS key identifier may be provided in any of the following formats:
Key ID
Key alias
         ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of
         the key, the Amazon Web Services account ID of the key owner, the key namespace, and then
         the key 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 key, the Amazon Web Services account ID of the key owner, the alias namespace,
         and then the key alias. For example,
         arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
         
         Amazon Web Services 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 KMS key must exist in the Region that the snapshot is being copied to.
Amazon EBS does not support asymmetric KMS keys.
public ImportSnapshotRequest withKmsKeyId(String kmsKeyId)
 An identifier for the symmetric KMS key to use when creating the encrypted snapshot. This parameter is only
 required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for
 EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.
 
The KMS key identifier may be provided in any of the following formats:
Key ID
Key alias
 ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of the key,
 the Amazon Web Services account ID of the key owner, the key namespace, and then the key 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
 key, the Amazon Web Services account ID of the key owner, the alias namespace, and then the key
 alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
 
 Amazon Web Services 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 KMS key must exist in the Region that the snapshot is being copied to.
Amazon EBS does not support asymmetric KMS keys.
kmsKeyId - An identifier for the symmetric KMS key to use when creating the encrypted snapshot. This parameter is
        only required if you want to use a non-default KMS key; if this parameter is not specified, the default
        KMS key for EBS is used. If a KmsKeyId is specified, the Encrypted flag must
        also be set. 
        The KMS key identifier may be provided in any of the following formats:
Key ID
Key alias
        ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed by the Region of
        the key, the Amazon Web Services account ID of the key owner, the key namespace, and then the
        key 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 key, the Amazon Web Services account ID of the key owner, the alias namespace, and
        then the key alias. For example,
        arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.
        
        Amazon Web Services 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 KMS key must exist in the Region that the snapshot is being copied to.
Amazon EBS does not support asymmetric KMS keys.
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 List<TagSpecification> getTagSpecifications()
The tags to apply to the import snapshot task during creation.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the import snapshot task during creation.
tagSpecifications - The tags to apply to the import snapshot task during creation.public ImportSnapshotRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the import snapshot task during creation.
 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 import snapshot task during creation.public ImportSnapshotRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the import snapshot task during creation.
tagSpecifications - The tags to apply to the import snapshot task during creation.public Request<ImportSnapshotRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ImportSnapshotRequest>public String toString()
toString in class ObjectObject.toString()public ImportSnapshotRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()