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>
165 template<
typename DestinationOutpostArnT = Aws::String>
166 void SetDestinationOutpostArn(DestinationOutpostArnT&& value) { m_destinationOutpostArnHasBeenSet =
true; m_destinationOutpostArn = std::forward<DestinationOutpostArnT>(value); }
167 template<
typename DestinationOutpostArnT = Aws::String>
181 inline void SetCopyImageTags(
bool value) { m_copyImageTagsHasBeenSet =
true; m_copyImageTags = value; }
199 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
200 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
201 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
203 template<
typename TagSpecificationsT = TagSpecification>
204 CopyImageRequest&
AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
return *
this; }
237 template<
typename DestinationAvailabilityZoneT = Aws::String>
238 void SetDestinationAvailabilityZone(DestinationAvailabilityZoneT&& value) { m_destinationAvailabilityZoneHasBeenSet =
true; m_destinationAvailabilityZone = std::forward<DestinationAvailabilityZoneT>(value); }
239 template<
typename DestinationAvailabilityZoneT = Aws::String>
253 template<
typename DestinationAvailabilityZoneIdT = Aws::String>
254 void SetDestinationAvailabilityZoneId(DestinationAvailabilityZoneIdT&& value) { m_destinationAvailabilityZoneIdHasBeenSet =
true; m_destinationAvailabilityZoneId = std::forward<DestinationAvailabilityZoneIdT>(value); }
255 template<
typename DestinationAvailabilityZoneIdT = Aws::String>
268 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
274 bool m_clientTokenHasBeenSet =
true;
277 bool m_descriptionHasBeenSet =
false;
279 bool m_encrypted{
false};
280 bool m_encryptedHasBeenSet =
false;
283 bool m_kmsKeyIdHasBeenSet =
false;
286 bool m_nameHasBeenSet =
false;
289 bool m_sourceImageIdHasBeenSet =
false;
292 bool m_sourceRegionHasBeenSet =
false;
295 bool m_destinationOutpostArnHasBeenSet =
false;
297 bool m_copyImageTags{
false};
298 bool m_copyImageTagsHasBeenSet =
false;
301 bool m_tagSpecificationsHasBeenSet =
false;
303 long long m_snapshotCopyCompletionDurationMinutes{0};
304 bool m_snapshotCopyCompletionDurationMinutesHasBeenSet =
false;
307 bool m_destinationAvailabilityZoneHasBeenSet =
false;
310 bool m_destinationAvailabilityZoneIdHasBeenSet =
false;
312 bool m_dryRun{
false};
313 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)
const Aws::String & GetDestinationAvailabilityZone() const
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)
void SetDestinationAvailabilityZoneId(DestinationAvailabilityZoneIdT &&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 & GetDestinationAvailabilityZoneId() const
const Aws::String & GetDescription() const
bool DestinationAvailabilityZoneHasBeenSet() const
bool DestinationAvailabilityZoneIdHasBeenSet() const
void SetDestinationAvailabilityZone(DestinationAvailabilityZoneT &&value)
void SetSnapshotCopyCompletionDurationMinutes(long long value)
CopyImageRequest & WithDestinationOutpostArn(DestinationOutpostArnT &&value)
bool SnapshotCopyCompletionDurationMinutesHasBeenSet() const
CopyImageRequest & WithDestinationAvailabilityZoneId(DestinationAvailabilityZoneIdT &&value)
const Aws::String & GetName() const
const Aws::String & GetDestinationOutpostArn() const
CopyImageRequest & WithDestinationAvailabilityZone(DestinationAvailabilityZoneT &&value)
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