/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** *

Contains the parameters for CopyImage.

See Also:

AWS * API Reference

*/ class CopyImageRequest : public EC2Request { public: AWS_EC2_API CopyImageRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CopyImage"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline CopyImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline CopyImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure idempotency of the * request. For more information, see Ensuring * idempotency in the Amazon EC2 API Reference.

*/ inline CopyImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A description for the new AMI in the destination Region.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the new AMI in the destination Region.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the new AMI in the destination Region.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the new AMI in the destination Region.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the new AMI in the destination Region.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the new AMI in the destination Region.

*/ inline CopyImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the new AMI in the destination Region.

*/ inline CopyImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the new AMI in the destination Region.

*/ inline CopyImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

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 KMS key for * Amazon EBS is used unless you specify a non-default Key Management Service (KMS) * KMS key using KmsKeyId. For more information, see Amazon * EBS encryption in the Amazon EC2 User Guide.

*/ inline bool GetEncrypted() const{ return m_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 KMS key for * Amazon EBS is used unless you specify a non-default Key Management Service (KMS) * KMS key using KmsKeyId. For more information, see Amazon * EBS encryption in the Amazon EC2 User Guide.

*/ inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; } /** *

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 KMS key for * Amazon EBS is used unless you specify a non-default Key Management Service (KMS) * KMS key using KmsKeyId. For more information, see Amazon * EBS encryption in the Amazon EC2 User Guide.

*/ inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; } /** *

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 KMS key for * Amazon EBS is used unless you specify a non-default Key Management Service (KMS) * KMS key using KmsKeyId. For more information, see Amazon * EBS encryption in the Amazon EC2 User Guide.

*/ inline CopyImageRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;} /** *

The identifier of the symmetric Key Management Service (KMS) KMS key to use * when creating encrypted volumes. If this parameter is not specified, your Amazon * Web Services managed KMS key for Amazon EBS is used. If you specify a KMS key, * you must also set the encrypted state to true.

You can * specify a KMS key using any of the following:

  • Key ID. For * example, 1234abcd-12ab-34cd-56ef-1234567890ab.

  • Key alias. For * example, alias/ExampleAlias.

  • Key ARN. For example, * arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    *
  • Alias ARN. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

Amazon * Web Services authenticates the KMS key asynchronously. Therefore, if you specify * an identifier that is not valid, the action can appear to complete, but * eventually fails.

The specified KMS key must exist in the destination * Region.

Amazon EBS does not support asymmetric KMS keys.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The identifier of the symmetric Key Management Service (KMS) KMS key to use * when creating encrypted volumes. If this parameter is not specified, your Amazon * Web Services managed KMS key for Amazon EBS is used. If you specify a KMS key, * you must also set the encrypted state to true.

You can * specify a KMS key using any of the following:

  • Key ID. For * example, 1234abcd-12ab-34cd-56ef-1234567890ab.

  • Key alias. For * example, alias/ExampleAlias.

  • Key ARN. For example, * arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    *
  • Alias ARN. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

Amazon * Web Services authenticates the KMS key asynchronously. Therefore, if you specify * an identifier that is not valid, the action can appear to complete, but * eventually fails.

The specified KMS key must exist in the destination * Region.

Amazon EBS does not support asymmetric KMS keys.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The identifier of the symmetric Key Management Service (KMS) KMS key to use * when creating encrypted volumes. If this parameter is not specified, your Amazon * Web Services managed KMS key for Amazon EBS is used. If you specify a KMS key, * you must also set the encrypted state to true.

You can * specify a KMS key using any of the following:

  • Key ID. For * example, 1234abcd-12ab-34cd-56ef-1234567890ab.

  • Key alias. For * example, alias/ExampleAlias.

  • Key ARN. For example, * arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    *
  • Alias ARN. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

Amazon * Web Services authenticates the KMS key asynchronously. Therefore, if you specify * an identifier that is not valid, the action can appear to complete, but * eventually fails.

The specified KMS key must exist in the destination * Region.

Amazon EBS does not support asymmetric KMS keys.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The identifier of the symmetric Key Management Service (KMS) KMS key to use * when creating encrypted volumes. If this parameter is not specified, your Amazon * Web Services managed KMS key for Amazon EBS is used. If you specify a KMS key, * you must also set the encrypted state to true.

You can * specify a KMS key using any of the following:

  • Key ID. For * example, 1234abcd-12ab-34cd-56ef-1234567890ab.

  • Key alias. For * example, alias/ExampleAlias.

  • Key ARN. For example, * arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    *
  • Alias ARN. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

Amazon * Web Services authenticates the KMS key asynchronously. Therefore, if you specify * an identifier that is not valid, the action can appear to complete, but * eventually fails.

The specified KMS key must exist in the destination * Region.

Amazon EBS does not support asymmetric KMS keys.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The identifier of the symmetric Key Management Service (KMS) KMS key to use * when creating encrypted volumes. If this parameter is not specified, your Amazon * Web Services managed KMS key for Amazon EBS is used. If you specify a KMS key, * you must also set the encrypted state to true.

You can * specify a KMS key using any of the following:

  • Key ID. For * example, 1234abcd-12ab-34cd-56ef-1234567890ab.

  • Key alias. For * example, alias/ExampleAlias.

  • Key ARN. For example, * arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    *
  • Alias ARN. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

Amazon * Web Services authenticates the KMS key asynchronously. Therefore, if you specify * an identifier that is not valid, the action can appear to complete, but * eventually fails.

The specified KMS key must exist in the destination * Region.

Amazon EBS does not support asymmetric KMS keys.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The identifier of the symmetric Key Management Service (KMS) KMS key to use * when creating encrypted volumes. If this parameter is not specified, your Amazon * Web Services managed KMS key for Amazon EBS is used. If you specify a KMS key, * you must also set the encrypted state to true.

You can * specify a KMS key using any of the following:

  • Key ID. For * example, 1234abcd-12ab-34cd-56ef-1234567890ab.

  • Key alias. For * example, alias/ExampleAlias.

  • Key ARN. For example, * arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    *
  • Alias ARN. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

Amazon * Web Services authenticates the KMS key asynchronously. Therefore, if you specify * an identifier that is not valid, the action can appear to complete, but * eventually fails.

The specified KMS key must exist in the destination * Region.

Amazon EBS does not support asymmetric KMS keys.

*/ inline CopyImageRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The identifier of the symmetric Key Management Service (KMS) KMS key to use * when creating encrypted volumes. If this parameter is not specified, your Amazon * Web Services managed KMS key for Amazon EBS is used. If you specify a KMS key, * you must also set the encrypted state to true.

You can * specify a KMS key using any of the following:

  • Key ID. For * example, 1234abcd-12ab-34cd-56ef-1234567890ab.

  • Key alias. For * example, alias/ExampleAlias.

  • Key ARN. For example, * arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    *
  • Alias ARN. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

Amazon * Web Services authenticates the KMS key asynchronously. Therefore, if you specify * an identifier that is not valid, the action can appear to complete, but * eventually fails.

The specified KMS key must exist in the destination * Region.

Amazon EBS does not support asymmetric KMS keys.

*/ inline CopyImageRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The identifier of the symmetric Key Management Service (KMS) KMS key to use * when creating encrypted volumes. If this parameter is not specified, your Amazon * Web Services managed KMS key for Amazon EBS is used. If you specify a KMS key, * you must also set the encrypted state to true.

You can * specify a KMS key using any of the following:

  • Key ID. For * example, 1234abcd-12ab-34cd-56ef-1234567890ab.

  • Key alias. For * example, alias/ExampleAlias.

  • Key ARN. For example, * arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab.

    *
  • Alias ARN. For example, * arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

Amazon * Web Services authenticates the KMS key asynchronously. Therefore, if you specify * an identifier that is not valid, the action can appear to complete, but * eventually fails.

The specified KMS key must exist in the destination * Region.

Amazon EBS does not support asymmetric KMS keys.

*/ inline CopyImageRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The name of the new AMI in the destination Region.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the new AMI in the destination Region.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the new AMI in the destination Region.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the new AMI in the destination Region.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the new AMI in the destination Region.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the new AMI in the destination Region.

*/ inline CopyImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the new AMI in the destination Region.

*/ inline CopyImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the new AMI in the destination Region.

*/ inline CopyImageRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The ID of the AMI to copy.

*/ inline const Aws::String& GetSourceImageId() const{ return m_sourceImageId; } /** *

The ID of the AMI to copy.

*/ inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; } /** *

The ID of the AMI to copy.

*/ inline void SetSourceImageId(const Aws::String& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = value; } /** *

The ID of the AMI to copy.

*/ inline void SetSourceImageId(Aws::String&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::move(value); } /** *

The ID of the AMI to copy.

*/ inline void SetSourceImageId(const char* value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId.assign(value); } /** *

The ID of the AMI to copy.

*/ inline CopyImageRequest& WithSourceImageId(const Aws::String& value) { SetSourceImageId(value); return *this;} /** *

The ID of the AMI to copy.

*/ inline CopyImageRequest& WithSourceImageId(Aws::String&& value) { SetSourceImageId(std::move(value)); return *this;} /** *

The ID of the AMI to copy.

*/ inline CopyImageRequest& WithSourceImageId(const char* value) { SetSourceImageId(value); return *this;} /** *

The name of the Region that contains the AMI to copy.

*/ inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; } /** *

The name of the Region that contains the AMI to copy.

*/ inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; } /** *

The name of the Region that contains the AMI to copy.

*/ inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; } /** *

The name of the Region that contains the AMI to copy.

*/ inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); } /** *

The name of the Region that contains the AMI to copy.

*/ inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); } /** *

The name of the Region that contains the AMI to copy.

*/ inline CopyImageRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;} /** *

The name of the Region that contains the AMI to copy.

*/ inline CopyImageRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;} /** *

The name of the Region that contains the AMI to copy.

*/ inline CopyImageRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only * specify this parameter when copying an AMI from an Amazon Web Services Region to * an Outpost. The AMI must be in the Region of the destination Outpost. You cannot * copy an AMI from an Outpost to a Region, from one Outpost to another, or within * the same Outpost.

For more information, see * Copy AMIs from an Amazon Web Services Region to an Outpost in the Amazon * EC2 User Guide.

*/ inline const Aws::String& GetDestinationOutpostArn() const{ return m_destinationOutpostArn; } /** *

The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only * specify this parameter when copying an AMI from an Amazon Web Services Region to * an Outpost. The AMI must be in the Region of the destination Outpost. You cannot * copy an AMI from an Outpost to a Region, from one Outpost to another, or within * the same Outpost.

For more information, see * Copy AMIs from an Amazon Web Services Region to an Outpost in the Amazon * EC2 User Guide.

*/ inline bool DestinationOutpostArnHasBeenSet() const { return m_destinationOutpostArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only * specify this parameter when copying an AMI from an Amazon Web Services Region to * an Outpost. The AMI must be in the Region of the destination Outpost. You cannot * copy an AMI from an Outpost to a Region, from one Outpost to another, or within * the same Outpost.

For more information, see * Copy AMIs from an Amazon Web Services Region to an Outpost in the Amazon * EC2 User Guide.

*/ inline void SetDestinationOutpostArn(const Aws::String& value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn = value; } /** *

The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only * specify this parameter when copying an AMI from an Amazon Web Services Region to * an Outpost. The AMI must be in the Region of the destination Outpost. You cannot * copy an AMI from an Outpost to a Region, from one Outpost to another, or within * the same Outpost.

For more information, see * Copy AMIs from an Amazon Web Services Region to an Outpost in the Amazon * EC2 User Guide.

*/ inline void SetDestinationOutpostArn(Aws::String&& value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only * specify this parameter when copying an AMI from an Amazon Web Services Region to * an Outpost. The AMI must be in the Region of the destination Outpost. You cannot * copy an AMI from an Outpost to a Region, from one Outpost to another, or within * the same Outpost.

For more information, see * Copy AMIs from an Amazon Web Services Region to an Outpost in the Amazon * EC2 User Guide.

*/ inline void SetDestinationOutpostArn(const char* value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only * specify this parameter when copying an AMI from an Amazon Web Services Region to * an Outpost. The AMI must be in the Region of the destination Outpost. You cannot * copy an AMI from an Outpost to a Region, from one Outpost to another, or within * the same Outpost.

For more information, see * Copy AMIs from an Amazon Web Services Region to an Outpost in the Amazon * EC2 User Guide.

*/ inline CopyImageRequest& WithDestinationOutpostArn(const Aws::String& value) { SetDestinationOutpostArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only * specify this parameter when copying an AMI from an Amazon Web Services Region to * an Outpost. The AMI must be in the Region of the destination Outpost. You cannot * copy an AMI from an Outpost to a Region, from one Outpost to another, or within * the same Outpost.

For more information, see * Copy AMIs from an Amazon Web Services Region to an Outpost in the Amazon * EC2 User Guide.

*/ inline CopyImageRequest& WithDestinationOutpostArn(Aws::String&& value) { SetDestinationOutpostArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only * specify this parameter when copying an AMI from an Amazon Web Services Region to * an Outpost. The AMI must be in the Region of the destination Outpost. You cannot * copy an AMI from an Outpost to a Region, from one Outpost to another, or within * the same Outpost.

For more information, see * Copy AMIs from an Amazon Web Services Region to an Outpost in the Amazon * EC2 User Guide.

*/ inline CopyImageRequest& WithDestinationOutpostArn(const char* value) { SetDestinationOutpostArn(value); return *this;} /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline CopyImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

Indicates whether to include your user-defined AMI tags when copying the * AMI.

The following tags will not be copied:

  • System tags * (prefixed with aws:)

  • For public and shared AMIs, * user-defined tags that are attached by other Amazon Web Services accounts

    *

Default: Your user-defined AMI tags are not copied.

*/ inline bool GetCopyImageTags() const{ return m_copyImageTags; } /** *

Indicates whether to include your user-defined AMI tags when copying the * AMI.

The following tags will not be copied:

  • System tags * (prefixed with aws:)

  • For public and shared AMIs, * user-defined tags that are attached by other Amazon Web Services accounts

    *

Default: Your user-defined AMI tags are not copied.

*/ inline bool CopyImageTagsHasBeenSet() const { return m_copyImageTagsHasBeenSet; } /** *

Indicates whether to include your user-defined AMI tags when copying the * AMI.

The following tags will not be copied:

  • System tags * (prefixed with aws:)

  • For public and shared AMIs, * user-defined tags that are attached by other Amazon Web Services accounts

    *

Default: Your user-defined AMI tags are not copied.

*/ inline void SetCopyImageTags(bool value) { m_copyImageTagsHasBeenSet = true; m_copyImageTags = value; } /** *

Indicates whether to include your user-defined AMI tags when copying the * AMI.

The following tags will not be copied:

  • System tags * (prefixed with aws:)

  • For public and shared AMIs, * user-defined tags that are attached by other Amazon Web Services accounts

    *

Default: Your user-defined AMI tags are not copied.

*/ inline CopyImageRequest& WithCopyImageTags(bool value) { SetCopyImageTags(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_encrypted; bool m_encryptedHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_sourceImageId; bool m_sourceImageIdHasBeenSet = false; Aws::String m_sourceRegion; bool m_sourceRegionHasBeenSet = false; Aws::String m_destinationOutpostArn; bool m_destinationOutpostArnHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; bool m_copyImageTags; bool m_copyImageTagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws