AWS SDK for C++

AWS SDK for C++ Version 1.11.643

Loading...
Searching...
No Matches
CopyImageRequest.h
1
6#pragma once
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>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_EC2_API CopyImageRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CopyImage"; }
37
38 AWS_EC2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
53 inline const Aws::String& GetClientToken() const { return m_clientToken; }
54 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
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>
58 CopyImageRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
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>
70 CopyImageRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
83 inline bool GetEncrypted() const { return m_encrypted; }
84 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
85 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
86 inline CopyImageRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
88
90
106 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
107 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
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>
111 CopyImageRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
113
115
118 inline const Aws::String& GetName() const { return m_name; }
119 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
123 CopyImageRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
125
127
130 inline const Aws::String& GetSourceImageId() const { return m_sourceImageId; }
131 inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
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>
135 CopyImageRequest& WithSourceImageId(SourceImageIdT&& value) { SetSourceImageId(std::forward<SourceImageIdT>(value)); return *this;}
137
139
142 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
143 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
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>
147 CopyImageRequest& WithSourceRegion(SourceRegionT&& value) { SetSourceRegion(std::forward<SourceRegionT>(value)); return *this;}
149
151
163 inline const Aws::String& GetDestinationOutpostArn() const { return m_destinationOutpostArn; }
164 inline bool DestinationOutpostArnHasBeenSet() const { return m_destinationOutpostArnHasBeenSet; }
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>
168 CopyImageRequest& WithDestinationOutpostArn(DestinationOutpostArnT&& value) { SetDestinationOutpostArn(std::forward<DestinationOutpostArnT>(value)); return *this;}
170
172
179 inline bool GetCopyImageTags() const { return m_copyImageTags; }
180 inline bool CopyImageTagsHasBeenSet() const { return m_copyImageTagsHasBeenSet; }
181 inline void SetCopyImageTags(bool value) { m_copyImageTagsHasBeenSet = true; m_copyImageTags = value; }
182 inline CopyImageRequest& WithCopyImageTags(bool value) { SetCopyImageTags(value); return *this;}
184
186
197 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
198 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
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>>
202 CopyImageRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
203 template<typename TagSpecificationsT = TagSpecification>
204 CopyImageRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
206
208
221 inline long long GetSnapshotCopyCompletionDurationMinutes() const { return m_snapshotCopyCompletionDurationMinutes; }
222 inline bool SnapshotCopyCompletionDurationMinutesHasBeenSet() const { return m_snapshotCopyCompletionDurationMinutesHasBeenSet; }
223 inline void SetSnapshotCopyCompletionDurationMinutes(long long value) { m_snapshotCopyCompletionDurationMinutesHasBeenSet = true; m_snapshotCopyCompletionDurationMinutes = value; }
226
228
235 inline const Aws::String& GetDestinationAvailabilityZone() const { return m_destinationAvailabilityZone; }
236 inline bool DestinationAvailabilityZoneHasBeenSet() const { return m_destinationAvailabilityZoneHasBeenSet; }
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>
240 CopyImageRequest& WithDestinationAvailabilityZone(DestinationAvailabilityZoneT&& value) { SetDestinationAvailabilityZone(std::forward<DestinationAvailabilityZoneT>(value)); return *this;}
242
244
251 inline const Aws::String& GetDestinationAvailabilityZoneId() const { return m_destinationAvailabilityZoneId; }
252 inline bool DestinationAvailabilityZoneIdHasBeenSet() const { return m_destinationAvailabilityZoneIdHasBeenSet; }
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>
256 CopyImageRequest& WithDestinationAvailabilityZoneId(DestinationAvailabilityZoneIdT&& value) { SetDestinationAvailabilityZoneId(std::forward<DestinationAvailabilityZoneIdT>(value)); return *this;}
258
260
266 inline bool GetDryRun() const { return m_dryRun; }
267 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
268 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
269 inline CopyImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
271 private:
272
274 bool m_clientTokenHasBeenSet = true;
275
276 Aws::String m_description;
277 bool m_descriptionHasBeenSet = false;
278
279 bool m_encrypted{false};
280 bool m_encryptedHasBeenSet = false;
281
282 Aws::String m_kmsKeyId;
283 bool m_kmsKeyIdHasBeenSet = false;
284
285 Aws::String m_name;
286 bool m_nameHasBeenSet = false;
287
288 Aws::String m_sourceImageId;
289 bool m_sourceImageIdHasBeenSet = false;
290
291 Aws::String m_sourceRegion;
292 bool m_sourceRegionHasBeenSet = false;
293
294 Aws::String m_destinationOutpostArn;
295 bool m_destinationOutpostArnHasBeenSet = false;
296
297 bool m_copyImageTags{false};
298 bool m_copyImageTagsHasBeenSet = false;
299
300 Aws::Vector<TagSpecification> m_tagSpecifications;
301 bool m_tagSpecificationsHasBeenSet = false;
302
303 long long m_snapshotCopyCompletionDurationMinutes{0};
304 bool m_snapshotCopyCompletionDurationMinutesHasBeenSet = false;
305
306 Aws::String m_destinationAvailabilityZone;
307 bool m_destinationAvailabilityZoneHasBeenSet = false;
308
309 Aws::String m_destinationAvailabilityZoneId;
310 bool m_destinationAvailabilityZoneIdHasBeenSet = false;
311
312 bool m_dryRun{false};
313 bool m_dryRunHasBeenSet = false;
314 };
315
316} // namespace Model
317} // namespace EC2
318} // namespace Aws
CopyImageRequest & WithDryRun(bool value)
const Aws::String & GetKmsKeyId() const
CopyImageRequest & AddTagSpecifications(TagSpecificationsT &&value)
CopyImageRequest & WithEncrypted(bool value)
CopyImageRequest & WithName(NameT &&value)
const Aws::String & GetDestinationAvailabilityZone() const
AWS_EC2_API CopyImageRequest()=default
CopyImageRequest & WithKmsKeyId(KmsKeyIdT &&value)
CopyImageRequest & WithSourceRegion(SourceRegionT &&value)
CopyImageRequest & WithClientToken(ClientTokenT &&value)
void SetDescription(DescriptionT &&value)
CopyImageRequest & WithCopyImageTags(bool value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() 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
void SetTagSpecifications(TagSpecificationsT &&value)
void SetSourceImageId(SourceImageIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSourceRegion(SourceRegionT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
long long GetSnapshotCopyCompletionDurationMinutes() const
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetDestinationAvailabilityZoneId() const
const Aws::String & GetDescription() 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