This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ec2/include/aws/ec2/model/CopyImageRequest.h

555 lines
27 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/ec2/EC2Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace EC2
{
namespace Model
{
/**
* <p>Contains the parameters for CopyImage.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopyImageRequest">AWS
* API Reference</a></p>
*/
class AWS_EC2_API CopyImageRequest : public EC2Request
{
public:
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::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>Unique, case-sensitive identifier you provide to ensure idempotency of the
* request. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How
* to Ensure Idempotency</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
*/
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
/**
* <p>Unique, case-sensitive identifier you provide to ensure idempotency of the
* request. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How
* to Ensure Idempotency</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
*/
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
/**
* <p>Unique, case-sensitive identifier you provide to ensure idempotency of the
* request. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How
* to Ensure Idempotency</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
*/
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
/**
* <p>Unique, case-sensitive identifier you provide to ensure idempotency of the
* request. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How
* to Ensure Idempotency</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
*/
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
/**
* <p>Unique, case-sensitive identifier you provide to ensure idempotency of the
* request. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How
* to Ensure Idempotency</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
*/
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
/**
* <p>Unique, case-sensitive identifier you provide to ensure idempotency of the
* request. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How
* to Ensure Idempotency</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
*/
inline CopyImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
/**
* <p>Unique, case-sensitive identifier you provide to ensure idempotency of the
* request. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How
* to Ensure Idempotency</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
*/
inline CopyImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
/**
* <p>Unique, case-sensitive identifier you provide to ensure idempotency of the
* request. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How
* to Ensure Idempotency</a> in the <i>Amazon Elastic Compute Cloud User
* Guide</i>.</p>
*/
inline CopyImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
/**
* <p>A description for the new AMI in the destination Region.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description for the new AMI in the destination Region.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description for the new AMI in the destination Region.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description for the new AMI in the destination Region.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description for the new AMI in the destination Region.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description for the new AMI in the destination Region.</p>
*/
inline CopyImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description for the new AMI in the destination Region.</p>
*/
inline CopyImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description for the new AMI in the destination Region.</p>
*/
inline CopyImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>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 <code>KmsKeyId</code>. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon
* EBS Encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
*/
inline bool GetEncrypted() const{ return m_encrypted; }
/**
* <p>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 <code>KmsKeyId</code>. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon
* EBS Encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
*/
inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
/**
* <p>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 <code>KmsKeyId</code>. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon
* EBS Encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
*/
inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
/**
* <p>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 <code>KmsKeyId</code>. For more information, see <a
* href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon
* EBS Encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
*/
inline CopyImageRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
/**
* <p>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 <code>KmsKeyId</code> is
* specified, the <code>Encrypted</code> flag must also be set. </p> <p>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:</p> <ul> <li>
* <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li>
* <p>Key ARN:
* <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
* </p> </li> <li> <p>Alias name: <code>alias/ExampleAlias</code> </p> </li> <li>
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
* </p> </li> </ul> <p>AWS parses <code>KmsKeyId</code> asynchronously, meaning
* that the action you call may appear to complete even though you provided an
* invalid identifier. This action will eventually report failure. </p> <p>The
* specified CMK must exist in the Region that the snapshot is being copied to.
* </p> <p>Amazon EBS does not support asymmetric CMKs.</p>
*/
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
/**
* <p>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 <code>KmsKeyId</code> is
* specified, the <code>Encrypted</code> flag must also be set. </p> <p>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:</p> <ul> <li>
* <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li>
* <p>Key ARN:
* <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
* </p> </li> <li> <p>Alias name: <code>alias/ExampleAlias</code> </p> </li> <li>
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
* </p> </li> </ul> <p>AWS parses <code>KmsKeyId</code> asynchronously, meaning
* that the action you call may appear to complete even though you provided an
* invalid identifier. This action will eventually report failure. </p> <p>The
* specified CMK must exist in the Region that the snapshot is being copied to.
* </p> <p>Amazon EBS does not support asymmetric CMKs.</p>
*/
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
/**
* <p>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 <code>KmsKeyId</code> is
* specified, the <code>Encrypted</code> flag must also be set. </p> <p>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:</p> <ul> <li>
* <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li>
* <p>Key ARN:
* <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
* </p> </li> <li> <p>Alias name: <code>alias/ExampleAlias</code> </p> </li> <li>
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
* </p> </li> </ul> <p>AWS parses <code>KmsKeyId</code> asynchronously, meaning
* that the action you call may appear to complete even though you provided an
* invalid identifier. This action will eventually report failure. </p> <p>The
* specified CMK must exist in the Region that the snapshot is being copied to.
* </p> <p>Amazon EBS does not support asymmetric CMKs.</p>
*/
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
/**
* <p>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 <code>KmsKeyId</code> is
* specified, the <code>Encrypted</code> flag must also be set. </p> <p>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:</p> <ul> <li>
* <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li>
* <p>Key ARN:
* <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
* </p> </li> <li> <p>Alias name: <code>alias/ExampleAlias</code> </p> </li> <li>
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
* </p> </li> </ul> <p>AWS parses <code>KmsKeyId</code> asynchronously, meaning
* that the action you call may appear to complete even though you provided an
* invalid identifier. This action will eventually report failure. </p> <p>The
* specified CMK must exist in the Region that the snapshot is being copied to.
* </p> <p>Amazon EBS does not support asymmetric CMKs.</p>
*/
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
/**
* <p>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 <code>KmsKeyId</code> is
* specified, the <code>Encrypted</code> flag must also be set. </p> <p>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:</p> <ul> <li>
* <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li>
* <p>Key ARN:
* <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
* </p> </li> <li> <p>Alias name: <code>alias/ExampleAlias</code> </p> </li> <li>
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
* </p> </li> </ul> <p>AWS parses <code>KmsKeyId</code> asynchronously, meaning
* that the action you call may appear to complete even though you provided an
* invalid identifier. This action will eventually report failure. </p> <p>The
* specified CMK must exist in the Region that the snapshot is being copied to.
* </p> <p>Amazon EBS does not support asymmetric CMKs.</p>
*/
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
/**
* <p>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 <code>KmsKeyId</code> is
* specified, the <code>Encrypted</code> flag must also be set. </p> <p>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:</p> <ul> <li>
* <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li>
* <p>Key ARN:
* <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
* </p> </li> <li> <p>Alias name: <code>alias/ExampleAlias</code> </p> </li> <li>
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
* </p> </li> </ul> <p>AWS parses <code>KmsKeyId</code> asynchronously, meaning
* that the action you call may appear to complete even though you provided an
* invalid identifier. This action will eventually report failure. </p> <p>The
* specified CMK must exist in the Region that the snapshot is being copied to.
* </p> <p>Amazon EBS does not support asymmetric CMKs.</p>
*/
inline CopyImageRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
/**
* <p>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 <code>KmsKeyId</code> is
* specified, the <code>Encrypted</code> flag must also be set. </p> <p>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:</p> <ul> <li>
* <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li>
* <p>Key ARN:
* <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
* </p> </li> <li> <p>Alias name: <code>alias/ExampleAlias</code> </p> </li> <li>
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
* </p> </li> </ul> <p>AWS parses <code>KmsKeyId</code> asynchronously, meaning
* that the action you call may appear to complete even though you provided an
* invalid identifier. This action will eventually report failure. </p> <p>The
* specified CMK must exist in the Region that the snapshot is being copied to.
* </p> <p>Amazon EBS does not support asymmetric CMKs.</p>
*/
inline CopyImageRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
/**
* <p>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 <code>KmsKeyId</code> is
* specified, the <code>Encrypted</code> flag must also be set. </p> <p>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:</p> <ul> <li>
* <p>Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code> </p> </li> <li>
* <p>Key ARN:
* <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
* </p> </li> <li> <p>Alias name: <code>alias/ExampleAlias</code> </p> </li> <li>
* <p>Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
* </p> </li> </ul> <p>AWS parses <code>KmsKeyId</code> asynchronously, meaning
* that the action you call may appear to complete even though you provided an
* invalid identifier. This action will eventually report failure. </p> <p>The
* specified CMK must exist in the Region that the snapshot is being copied to.
* </p> <p>Amazon EBS does not support asymmetric CMKs.</p>
*/
inline CopyImageRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
/**
* <p>The name of the new AMI in the destination Region.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the new AMI in the destination Region.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the new AMI in the destination Region.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the new AMI in the destination Region.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the new AMI in the destination Region.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the new AMI in the destination Region.</p>
*/
inline CopyImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the new AMI in the destination Region.</p>
*/
inline CopyImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the new AMI in the destination Region.</p>
*/
inline CopyImageRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The ID of the AMI to copy.</p>
*/
inline const Aws::String& GetSourceImageId() const{ return m_sourceImageId; }
/**
* <p>The ID of the AMI to copy.</p>
*/
inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
/**
* <p>The ID of the AMI to copy.</p>
*/
inline void SetSourceImageId(const Aws::String& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = value; }
/**
* <p>The ID of the AMI to copy.</p>
*/
inline void SetSourceImageId(Aws::String&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::move(value); }
/**
* <p>The ID of the AMI to copy.</p>
*/
inline void SetSourceImageId(const char* value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId.assign(value); }
/**
* <p>The ID of the AMI to copy.</p>
*/
inline CopyImageRequest& WithSourceImageId(const Aws::String& value) { SetSourceImageId(value); return *this;}
/**
* <p>The ID of the AMI to copy.</p>
*/
inline CopyImageRequest& WithSourceImageId(Aws::String&& value) { SetSourceImageId(std::move(value)); return *this;}
/**
* <p>The ID of the AMI to copy.</p>
*/
inline CopyImageRequest& WithSourceImageId(const char* value) { SetSourceImageId(value); return *this;}
/**
* <p>The name of the Region that contains the AMI to copy.</p>
*/
inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
/**
* <p>The name of the Region that contains the AMI to copy.</p>
*/
inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
/**
* <p>The name of the Region that contains the AMI to copy.</p>
*/
inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
/**
* <p>The name of the Region that contains the AMI to copy.</p>
*/
inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
/**
* <p>The name of the Region that contains the AMI to copy.</p>
*/
inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
/**
* <p>The name of the Region that contains the AMI to copy.</p>
*/
inline CopyImageRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
/**
* <p>The name of the Region that contains the AMI to copy.</p>
*/
inline CopyImageRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
/**
* <p>The name of the Region that contains the AMI to copy.</p>
*/
inline CopyImageRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
/**
* <p>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 <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline bool GetDryRun() const{ return m_dryRun; }
/**
* <p>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 <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
/**
* <p>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 <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
/**
* <p>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 <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline CopyImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
private:
Aws::String m_clientToken;
bool m_clientTokenHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
bool m_encrypted;
bool m_encryptedHasBeenSet;
Aws::String m_kmsKeyId;
bool m_kmsKeyIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_sourceImageId;
bool m_sourceImageIdHasBeenSet;
Aws::String m_sourceRegion;
bool m_sourceRegionHasBeenSet;
bool m_dryRun;
bool m_dryRunHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws