AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
14namespace Aws
15{
16namespace EC2
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_EC2_API CopyImageRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CopyImage"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
51 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
52 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
53 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
54 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
55 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
56 inline CopyImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
57 inline CopyImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
58 inline CopyImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
60
62
65 inline const Aws::String& GetDescription() const{ return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
68 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
69 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
70 inline CopyImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
71 inline CopyImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
72 inline CopyImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
74
76
85 inline bool GetEncrypted() const{ return m_encrypted; }
86 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
87 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
88 inline CopyImageRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
90
92
108 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
109 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
110 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
111 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
112 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
113 inline CopyImageRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
114 inline CopyImageRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
115 inline CopyImageRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
117
119
122 inline const Aws::String& GetName() const{ return m_name; }
123 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
124 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
125 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
126 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
127 inline CopyImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
128 inline CopyImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
129 inline CopyImageRequest& WithName(const char* value) { SetName(value); return *this;}
131
133
136 inline const Aws::String& GetSourceImageId() const{ return m_sourceImageId; }
137 inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
138 inline void SetSourceImageId(const Aws::String& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = value; }
139 inline void SetSourceImageId(Aws::String&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::move(value); }
140 inline void SetSourceImageId(const char* value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId.assign(value); }
141 inline CopyImageRequest& WithSourceImageId(const Aws::String& value) { SetSourceImageId(value); return *this;}
142 inline CopyImageRequest& WithSourceImageId(Aws::String&& value) { SetSourceImageId(std::move(value)); return *this;}
143 inline CopyImageRequest& WithSourceImageId(const char* value) { SetSourceImageId(value); return *this;}
145
147
150 inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
151 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
152 inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
153 inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
154 inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
155 inline CopyImageRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
156 inline CopyImageRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
157 inline CopyImageRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
159
161
171 inline const Aws::String& GetDestinationOutpostArn() const{ return m_destinationOutpostArn; }
172 inline bool DestinationOutpostArnHasBeenSet() const { return m_destinationOutpostArnHasBeenSet; }
173 inline void SetDestinationOutpostArn(const Aws::String& value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn = value; }
174 inline void SetDestinationOutpostArn(Aws::String&& value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn = std::move(value); }
175 inline void SetDestinationOutpostArn(const char* value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn.assign(value); }
177 inline CopyImageRequest& WithDestinationOutpostArn(Aws::String&& value) { SetDestinationOutpostArn(std::move(value)); return *this;}
178 inline CopyImageRequest& WithDestinationOutpostArn(const char* value) { SetDestinationOutpostArn(value); return *this;}
180
182
189 inline bool GetCopyImageTags() const{ return m_copyImageTags; }
190 inline bool CopyImageTagsHasBeenSet() const { return m_copyImageTagsHasBeenSet; }
191 inline void SetCopyImageTags(bool value) { m_copyImageTagsHasBeenSet = true; m_copyImageTags = value; }
192 inline CopyImageRequest& WithCopyImageTags(bool value) { SetCopyImageTags(value); return *this;}
194
196
207 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
208 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
209 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
210 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
213 inline CopyImageRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
214 inline CopyImageRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
216
218
224 inline bool GetDryRun() const{ return m_dryRun; }
225 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
226 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
227 inline CopyImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
229 private:
230
231 Aws::String m_clientToken;
232 bool m_clientTokenHasBeenSet = false;
233
234 Aws::String m_description;
235 bool m_descriptionHasBeenSet = false;
236
237 bool m_encrypted;
238 bool m_encryptedHasBeenSet = false;
239
240 Aws::String m_kmsKeyId;
241 bool m_kmsKeyIdHasBeenSet = false;
242
243 Aws::String m_name;
244 bool m_nameHasBeenSet = false;
245
246 Aws::String m_sourceImageId;
247 bool m_sourceImageIdHasBeenSet = false;
248
249 Aws::String m_sourceRegion;
250 bool m_sourceRegionHasBeenSet = false;
251
252 Aws::String m_destinationOutpostArn;
253 bool m_destinationOutpostArnHasBeenSet = false;
254
255 bool m_copyImageTags;
256 bool m_copyImageTagsHasBeenSet = false;
257
258 Aws::Vector<TagSpecification> m_tagSpecifications;
259 bool m_tagSpecificationsHasBeenSet = false;
260
261 bool m_dryRun;
262 bool m_dryRunHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace EC2
267} // namespace Aws
void SetDescription(const char *value)
CopyImageRequest & WithDryRun(bool value)
const Aws::String & GetKmsKeyId() const
void SetSourceRegion(const Aws::String &value)
CopyImageRequest & WithSourceImageId(const Aws::String &value)
CopyImageRequest & WithEncrypted(bool value)
CopyImageRequest & WithSourceRegion(const char *value)
CopyImageRequest & WithSourceRegion(const Aws::String &value)
void SetClientToken(const char *value)
void SetSourceImageId(const char *value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetDescription(Aws::String &&value)
void SetDestinationOutpostArn(const Aws::String &value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CopyImageRequest & WithClientToken(Aws::String &&value)
CopyImageRequest & WithName(Aws::String &&value)
void SetDestinationOutpostArn(Aws::String &&value)
CopyImageRequest & WithCopyImageTags(bool value)
CopyImageRequest & WithClientToken(const char *value)
CopyImageRequest & AddTagSpecifications(TagSpecification &&value)
CopyImageRequest & WithDestinationOutpostArn(Aws::String &&value)
void SetClientToken(const Aws::String &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CopyImageRequest & WithName(const Aws::String &value)
void SetName(Aws::String &&value)
const Aws::String & GetSourceRegion() const
void SetSourceRegion(const char *value)
CopyImageRequest & WithSourceImageId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CopyImageRequest & WithName(const char *value)
const Aws::String & GetClientToken() const
void SetSourceImageId(Aws::String &&value)
CopyImageRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
const Aws::String & GetSourceImageId() const
void SetKmsKeyId(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetClientToken(Aws::String &&value)
CopyImageRequest & WithDestinationOutpostArn(const char *value)
void SetDestinationOutpostArn(const char *value)
CopyImageRequest & WithSourceImageId(const char *value)
void SetDescription(const Aws::String &value)
CopyImageRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CopyImageRequest & WithDestinationOutpostArn(const Aws::String &value)
CopyImageRequest & WithClientToken(const Aws::String &value)
void SetKmsKeyId(Aws::String &&value)
void SetName(const Aws::String &value)
CopyImageRequest & WithSourceRegion(Aws::String &&value)
void SetSourceImageId(const Aws::String &value)
CopyImageRequest & WithKmsKeyId(const Aws::String &value)
const Aws::String & GetDescription() const
void SetKmsKeyId(const char *value)
CopyImageRequest & WithDescription(Aws::String &&value)
CopyImageRequest & WithKmsKeyId(const char *value)
CopyImageRequest & WithDescription(const Aws::String &value)
const Aws::String & GetName() const
const Aws::String & GetDestinationOutpostArn() const
void SetSourceRegion(Aws::String &&value)
CopyImageRequest & WithDescription(const char *value)
CopyImageRequest & WithKmsKeyId(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CopyImageRequest & AddTagSpecifications(const TagSpecification &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector