AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
161 inline const Aws::String& GetDestinationOutpostArn() const { return m_destinationOutpostArn; }
162 inline bool DestinationOutpostArnHasBeenSet() const { return m_destinationOutpostArnHasBeenSet; }
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>
166 CopyImageRequest& WithDestinationOutpostArn(DestinationOutpostArnT&& value) { SetDestinationOutpostArn(std::forward<DestinationOutpostArnT>(value)); return *this;}
168
170
177 inline bool GetCopyImageTags() const { return m_copyImageTags; }
178 inline bool CopyImageTagsHasBeenSet() const { return m_copyImageTagsHasBeenSet; }
179 inline void SetCopyImageTags(bool value) { m_copyImageTagsHasBeenSet = true; m_copyImageTags = value; }
180 inline CopyImageRequest& WithCopyImageTags(bool value) { SetCopyImageTags(value); return *this;}
182
184
195 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
196 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
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>>
200 CopyImageRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
201 template<typename TagSpecificationsT = TagSpecification>
202 CopyImageRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
204
206
217 inline long long GetSnapshotCopyCompletionDurationMinutes() const { return m_snapshotCopyCompletionDurationMinutes; }
218 inline bool SnapshotCopyCompletionDurationMinutesHasBeenSet() const { return m_snapshotCopyCompletionDurationMinutesHasBeenSet; }
219 inline void SetSnapshotCopyCompletionDurationMinutes(long long value) { m_snapshotCopyCompletionDurationMinutesHasBeenSet = true; m_snapshotCopyCompletionDurationMinutes = value; }
222
224
230 inline bool GetDryRun() const { return m_dryRun; }
231 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
232 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
233 inline CopyImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
235 private:
236
238 bool m_clientTokenHasBeenSet = true;
239
240 Aws::String m_description;
241 bool m_descriptionHasBeenSet = false;
242
243 bool m_encrypted{false};
244 bool m_encryptedHasBeenSet = false;
245
246 Aws::String m_kmsKeyId;
247 bool m_kmsKeyIdHasBeenSet = false;
248
249 Aws::String m_name;
250 bool m_nameHasBeenSet = false;
251
252 Aws::String m_sourceImageId;
253 bool m_sourceImageIdHasBeenSet = false;
254
255 Aws::String m_sourceRegion;
256 bool m_sourceRegionHasBeenSet = false;
257
258 Aws::String m_destinationOutpostArn;
259 bool m_destinationOutpostArnHasBeenSet = false;
260
261 bool m_copyImageTags{false};
262 bool m_copyImageTagsHasBeenSet = false;
263
264 Aws::Vector<TagSpecification> m_tagSpecifications;
265 bool m_tagSpecificationsHasBeenSet = false;
266
267 long long m_snapshotCopyCompletionDurationMinutes{0};
268 bool m_snapshotCopyCompletionDurationMinutesHasBeenSet = false;
269
270 bool m_dryRun{false};
271 bool m_dryRunHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace EC2
276} // namespace Aws
CopyImageRequest & WithDryRun(bool value)
const Aws::String & GetKmsKeyId() const
CopyImageRequest & AddTagSpecifications(TagSpecificationsT &&value)
CopyImageRequest & WithEncrypted(bool value)
CopyImageRequest & WithName(NameT &&value)
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)
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 & 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