@Generated(value="software.amazon.awssdk:codegen") public final class CopyImageRequest extends Ec2Request implements ToCopyableBuilder<CopyImageRequest.Builder,CopyImageRequest>
Contains the parameters for CopyImage.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CopyImageRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CopyImageRequest.Builder |
builder() |
String |
clientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request.
|
String |
description()
A description for the new AMI in the destination Region.
|
Boolean |
encrypted()
Specifies whether the destination snapshots of the copied image should be encrypted.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
kmsKeyId()
An identifier for the symmetric AWS Key Management Service (AWS KMS) customer master key (CMK) to use when
creating the encrypted volume.
|
String |
name()
The name of the new AMI in the destination Region.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CopyImageRequest.Builder> |
serializableBuilderClass() |
String |
sourceImageId()
The ID of the AMI to copy.
|
String |
sourceRegion()
The name of the Region that contains the AMI to copy.
|
CopyImageRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String clientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
public String description()
A description for the new AMI in the destination Region.
public Boolean encrypted()
Specifies whether the destination snapshots of the copied image should be encrypted. You can encrypt a copy of an
unencrypted snapshot, but you cannot create an unencrypted copy of an encrypted snapshot. 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 String kmsKeyId()
An identifier for the symmetric AWS Key Management Service (AWS KMS) customer master key (CMK) to use when
creating the encrypted volume. 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.
To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". For example:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias ARN: arn:aws:kms:us-east-2:111122223333: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.
Amazon EBS does not support asymmetric CMKs.
KmsKeyId is
specified, the Encrypted flag must also be set.
To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias/". For example:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias ARN: arn:aws:kms:us-east-2:111122223333: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.
Amazon EBS does not support asymmetric CMKs.
public String name()
The name of the new AMI in the destination Region.
public String sourceImageId()
The ID of the AMI to copy.
public String sourceRegion()
The name of the Region that contains the AMI to copy.
public CopyImageRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CopyImageRequest.Builder,CopyImageRequest>toBuilder in class Ec2Requestpublic static CopyImageRequest.Builder builder()
public static Class<? extends CopyImageRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.