7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/TagSpecification.h>
13#include <aws/core/utils/UUID.h>
55 template<
typename ClientTokenT = Aws::String>
56 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
57 template<
typename ClientTokenT = Aws::String>
67 template<
typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
69 template<
typename DescriptionT = Aws::String>
85 inline void SetEncrypted(
bool value) { m_encryptedHasBeenSet =
true; m_encrypted = value; }
108 template<
typename KmsKeyIdT = Aws::String>
109 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
110 template<
typename KmsKeyIdT = Aws::String>
120 template<
typename NameT = Aws::String>
121 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
122 template<
typename NameT = Aws::String>
132 template<
typename SourceImageIdT = Aws::String>
133 void SetSourceImageId(SourceImageIdT&& value) { m_sourceImageIdHasBeenSet =
true; m_sourceImageId = std::forward<SourceImageIdT>(value); }
134 template<
typename SourceImageIdT = Aws::String>
144 template<
typename SourceRegionT = Aws::String>
145 void SetSourceRegion(SourceRegionT&& value) { m_sourceRegionHasBeenSet =
true; m_sourceRegion = std::forward<SourceRegionT>(value); }
146 template<
typename SourceRegionT = Aws::String>
163 template<
typename DestinationOutpostArnT = Aws::String>
164 void SetDestinationOutpostArn(DestinationOutpostArnT&& value) { m_destinationOutpostArnHasBeenSet =
true; m_destinationOutpostArn = std::forward<DestinationOutpostArnT>(value); }
165 template<
typename DestinationOutpostArnT = Aws::String>
179 inline void SetCopyImageTags(
bool value) { m_copyImageTagsHasBeenSet =
true; m_copyImageTags = value; }
197 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
198 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
199 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
201 template<
typename TagSpecificationsT = TagSpecification>
202 CopyImageRequest&
AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
return *
this; }
232 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
238 bool m_clientTokenHasBeenSet =
true;
241 bool m_descriptionHasBeenSet =
false;
243 bool m_encrypted{
false};
244 bool m_encryptedHasBeenSet =
false;
247 bool m_kmsKeyIdHasBeenSet =
false;
250 bool m_nameHasBeenSet =
false;
253 bool m_sourceImageIdHasBeenSet =
false;
256 bool m_sourceRegionHasBeenSet =
false;
259 bool m_destinationOutpostArnHasBeenSet =
false;
261 bool m_copyImageTags{
false};
262 bool m_copyImageTagsHasBeenSet =
false;
265 bool m_tagSpecificationsHasBeenSet =
false;
267 long long m_snapshotCopyCompletionDurationMinutes{0};
268 bool m_snapshotCopyCompletionDurationMinutesHasBeenSet =
false;
270 bool m_dryRun{
false};
271 bool m_dryRunHasBeenSet =
false;
CopyImageRequest & WithDryRun(bool value)
const Aws::String & GetKmsKeyId() const
CopyImageRequest & AddTagSpecifications(TagSpecificationsT &&value)
CopyImageRequest & WithEncrypted(bool value)
bool DestinationOutpostArnHasBeenSet() const
bool EncryptedHasBeenSet() const
CopyImageRequest & WithName(NameT &&value)
bool DryRunHasBeenSet() const
bool SourceImageIdHasBeenSet() const
AWS_EC2_API CopyImageRequest()=default
bool TagSpecificationsHasBeenSet() const
CopyImageRequest & WithKmsKeyId(KmsKeyIdT &&value)
CopyImageRequest & WithSourceRegion(SourceRegionT &&value)
bool DescriptionHasBeenSet() const
CopyImageRequest & WithClientToken(ClientTokenT &&value)
void SetDescription(DescriptionT &&value)
CopyImageRequest & WithCopyImageTags(bool value)
bool NameHasBeenSet() const
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
bool GetEncrypted() const
const Aws::String & GetSourceRegion() const
virtual const char * GetServiceRequestName() const override
CopyImageRequest & WithSourceImageId(SourceImageIdT &&value)
void SetDestinationOutpostArn(DestinationOutpostArnT &&value)
const Aws::String & GetClientToken() const
CopyImageRequest & WithTagSpecifications(TagSpecificationsT &&value)
CopyImageRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetSourceImageId() const
bool ClientTokenHasBeenSet() const
void SetTagSpecifications(TagSpecificationsT &&value)
void SetSourceImageId(SourceImageIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetEncrypted(bool value)
bool KmsKeyIdHasBeenSet() const
void SetSourceRegion(SourceRegionT &&value)
void SetCopyImageTags(bool value)
void SetKmsKeyId(KmsKeyIdT &&value)
bool SourceRegionHasBeenSet() const
long long GetSnapshotCopyCompletionDurationMinutes() const
bool GetCopyImageTags() const
void SetClientToken(ClientTokenT &&value)
void SetDryRun(bool value)
void SetName(NameT &&value)
bool CopyImageTagsHasBeenSet() const
const Aws::String & GetDescription() const
void SetSnapshotCopyCompletionDurationMinutes(long long value)
CopyImageRequest & WithDestinationOutpostArn(DestinationOutpostArnT &&value)
bool SnapshotCopyCompletionDurationMinutesHasBeenSet() const
const Aws::String & GetName() const
const Aws::String & GetDestinationOutpostArn() const
AWS_EC2_API Aws::String SerializePayload() const override
CopyImageRequest & WithSnapshotCopyCompletionDurationMinutes(long long value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector