AWS SDK for C++  1.9.69
AWS SDK for C++
CopyImageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CopyImage"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
48  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
49 
56  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
57 
64  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
65 
72  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
73 
80  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
81 
88  inline CopyImageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
89 
96  inline CopyImageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
97 
104  inline CopyImageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
105 
106 
110  inline const Aws::String& GetDescription() const{ return m_description; }
111 
115  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 
120  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
121 
125  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
126 
130  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
131 
135  inline CopyImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
136 
140  inline CopyImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
141 
145  inline CopyImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
146 
147 
157  inline bool GetEncrypted() const{ return m_encrypted; }
158 
168  inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
169 
179  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
180 
190  inline CopyImageRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
191 
192 
209  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
210 
227  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
228 
245  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
246 
263  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
264 
281  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
282 
299  inline CopyImageRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
300 
317  inline CopyImageRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
318 
335  inline CopyImageRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
336 
337 
341  inline const Aws::String& GetName() const{ return m_name; }
342 
346  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
347 
351  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
352 
356  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
357 
361  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
362 
366  inline CopyImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
367 
371  inline CopyImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
372 
376  inline CopyImageRequest& WithName(const char* value) { SetName(value); return *this;}
377 
378 
382  inline const Aws::String& GetSourceImageId() const{ return m_sourceImageId; }
383 
387  inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
388 
392  inline void SetSourceImageId(const Aws::String& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = value; }
393 
397  inline void SetSourceImageId(Aws::String&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::move(value); }
398 
402  inline void SetSourceImageId(const char* value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId.assign(value); }
403 
407  inline CopyImageRequest& WithSourceImageId(const Aws::String& value) { SetSourceImageId(value); return *this;}
408 
412  inline CopyImageRequest& WithSourceImageId(Aws::String&& value) { SetSourceImageId(std::move(value)); return *this;}
413 
417  inline CopyImageRequest& WithSourceImageId(const char* value) { SetSourceImageId(value); return *this;}
418 
419 
423  inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
424 
428  inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
429 
433  inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
434 
438  inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
439 
443  inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
444 
448  inline CopyImageRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
449 
453  inline CopyImageRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
454 
458  inline CopyImageRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
459 
460 
471  inline const Aws::String& GetDestinationOutpostArn() const{ return m_destinationOutpostArn; }
472 
483  inline bool DestinationOutpostArnHasBeenSet() const { return m_destinationOutpostArnHasBeenSet; }
484 
495  inline void SetDestinationOutpostArn(const Aws::String& value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn = value; }
496 
507  inline void SetDestinationOutpostArn(Aws::String&& value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn = std::move(value); }
508 
519  inline void SetDestinationOutpostArn(const char* value) { m_destinationOutpostArnHasBeenSet = true; m_destinationOutpostArn.assign(value); }
520 
531  inline CopyImageRequest& WithDestinationOutpostArn(const Aws::String& value) { SetDestinationOutpostArn(value); return *this;}
532 
543  inline CopyImageRequest& WithDestinationOutpostArn(Aws::String&& value) { SetDestinationOutpostArn(std::move(value)); return *this;}
544 
555  inline CopyImageRequest& WithDestinationOutpostArn(const char* value) { SetDestinationOutpostArn(value); return *this;}
556 
557 
564  inline bool GetDryRun() const{ return m_dryRun; }
565 
572  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
573 
580  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
581 
588  inline CopyImageRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
589 
590  private:
591 
592  Aws::String m_clientToken;
593  bool m_clientTokenHasBeenSet;
594 
595  Aws::String m_description;
596  bool m_descriptionHasBeenSet;
597 
598  bool m_encrypted;
599  bool m_encryptedHasBeenSet;
600 
601  Aws::String m_kmsKeyId;
602  bool m_kmsKeyIdHasBeenSet;
603 
604  Aws::String m_name;
605  bool m_nameHasBeenSet;
606 
607  Aws::String m_sourceImageId;
608  bool m_sourceImageIdHasBeenSet;
609 
610  Aws::String m_sourceRegion;
611  bool m_sourceRegionHasBeenSet;
612 
613  Aws::String m_destinationOutpostArn;
614  bool m_destinationOutpostArnHasBeenSet;
615 
616  bool m_dryRun;
617  bool m_dryRunHasBeenSet;
618  };
619 
620 } // namespace Model
621 } // namespace EC2
622 } // namespace Aws
Aws::EC2::Model::CopyImageRequest::SetSourceRegion
void SetSourceRegion(Aws::String &&value)
Definition: CopyImageRequest.h:438
Aws::EC2::Model::CopyImageRequest::SetSourceImageId
void SetSourceImageId(Aws::String &&value)
Definition: CopyImageRequest.h:397
Aws::EC2::Model::CopyImageRequest::CopyImageRequest
CopyImageRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CopyImageRequest::GetSourceImageId
const Aws::String & GetSourceImageId() const
Definition: CopyImageRequest.h:382
Aws::EC2::Model::CopyImageRequest::SourceImageIdHasBeenSet
bool SourceImageIdHasBeenSet() const
Definition: CopyImageRequest.h:387
Aws::EC2::Model::CopyImageRequest::SetName
void SetName(Aws::String &&value)
Definition: CopyImageRequest.h:356
Aws::EC2::Model::CopyImageRequest::GetDryRun
bool GetDryRun() const
Definition: CopyImageRequest.h:564
Aws::EC2::Model::CopyImageRequest::WithSourceImageId
CopyImageRequest & WithSourceImageId(const char *value)
Definition: CopyImageRequest.h:417
Aws::EC2::Model::CopyImageRequest::WithDestinationOutpostArn
CopyImageRequest & WithDestinationOutpostArn(Aws::String &&value)
Definition: CopyImageRequest.h:543
Aws::EC2::Model::CopyImageRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: CopyImageRequest.h:227
Aws::EC2::Model::CopyImageRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CopyImageRequest.h:120
Aws::EC2::Model::CopyImageRequest::WithClientToken
CopyImageRequest & WithClientToken(Aws::String &&value)
Definition: CopyImageRequest.h:96
Aws::EC2::Model::CopyImageRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CopyImageRequest.h:572
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CopyImageRequest::DestinationOutpostArnHasBeenSet
bool DestinationOutpostArnHasBeenSet() const
Definition: CopyImageRequest.h:483
Aws::EC2::Model::CopyImageRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: CopyImageRequest.h:281
Aws::EC2::Model::CopyImageRequest::WithName
CopyImageRequest & WithName(Aws::String &&value)
Definition: CopyImageRequest.h:371
Aws::EC2::Model::CopyImageRequest
Definition: CopyImageRequest.h:25
Aws::EC2::Model::CopyImageRequest::WithSourceImageId
CopyImageRequest & WithSourceImageId(const Aws::String &value)
Definition: CopyImageRequest.h:407
Aws::EC2::Model::CopyImageRequest::SetDestinationOutpostArn
void SetDestinationOutpostArn(const char *value)
Definition: CopyImageRequest.h:519
Aws::EC2::Model::CopyImageRequest::WithDryRun
CopyImageRequest & WithDryRun(bool value)
Definition: CopyImageRequest.h:588
Aws::EC2::Model::CopyImageRequest::WithDescription
CopyImageRequest & WithDescription(const char *value)
Definition: CopyImageRequest.h:145
Aws::EC2::Model::CopyImageRequest::SetName
void SetName(const char *value)
Definition: CopyImageRequest.h:361
Aws::EC2::Model::CopyImageRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: CopyImageRequest.h:245
Aws::EC2::Model::CopyImageRequest::WithName
CopyImageRequest & WithName(const Aws::String &value)
Definition: CopyImageRequest.h:366
Aws::EC2::Model::CopyImageRequest::GetName
const Aws::String & GetName() const
Definition: CopyImageRequest.h:341
Aws::EC2::Model::CopyImageRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: CopyImageRequest.h:263
Aws::EC2::Model::CopyImageRequest::GetEncrypted
bool GetEncrypted() const
Definition: CopyImageRequest.h:157
Aws::EC2::Model::CopyImageRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CopyImageRequest.h:346
Aws::EC2::Model::CopyImageRequest::SetSourceImageId
void SetSourceImageId(const char *value)
Definition: CopyImageRequest.h:402
Aws::EC2::Model::CopyImageRequest::GetSourceRegion
const Aws::String & GetSourceRegion() const
Definition: CopyImageRequest.h:423
Aws::EC2::Model::CopyImageRequest::WithSourceRegion
CopyImageRequest & WithSourceRegion(Aws::String &&value)
Definition: CopyImageRequest.h:453
Aws::EC2::Model::CopyImageRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: CopyImageRequest.h:209
Aws::EC2::Model::CopyImageRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CopyImageRequest.h:125
EC2Request.h
Aws::EC2::Model::CopyImageRequest::WithEncrypted
CopyImageRequest & WithEncrypted(bool value)
Definition: CopyImageRequest.h:190
Aws::EC2::Model::CopyImageRequest::WithDestinationOutpostArn
CopyImageRequest & WithDestinationOutpostArn(const Aws::String &value)
Definition: CopyImageRequest.h:531
Aws::EC2::Model::CopyImageRequest::WithClientToken
CopyImageRequest & WithClientToken(const char *value)
Definition: CopyImageRequest.h:104
Aws::EC2::Model::CopyImageRequest::SetSourceRegion
void SetSourceRegion(const char *value)
Definition: CopyImageRequest.h:443
AWSString.h
Aws::EC2::Model::CopyImageRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CopyImageRequest.h:56
Aws::EC2::Model::CopyImageRequest::WithKmsKeyId
CopyImageRequest & WithKmsKeyId(Aws::String &&value)
Definition: CopyImageRequest.h:317
Aws::EC2::Model::CopyImageRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CopyImageRequest.h:110
Aws::EC2::Model::CopyImageRequest::WithKmsKeyId
CopyImageRequest & WithKmsKeyId(const char *value)
Definition: CopyImageRequest.h:335
Aws::EC2::Model::CopyImageRequest::WithClientToken
CopyImageRequest & WithClientToken(const Aws::String &value)
Definition: CopyImageRequest.h:88
Aws::EC2::Model::CopyImageRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CopyImageRequest.h:115
Aws::EC2::Model::CopyImageRequest::SetDescription
void SetDescription(const char *value)
Definition: CopyImageRequest.h:130
Aws::EC2::Model::CopyImageRequest::GetDestinationOutpostArn
const Aws::String & GetDestinationOutpostArn() const
Definition: CopyImageRequest.h:471
Aws::EC2::Model::CopyImageRequest::SetName
void SetName(const Aws::String &value)
Definition: CopyImageRequest.h:351
Aws::EC2::Model::CopyImageRequest::SetDestinationOutpostArn
void SetDestinationOutpostArn(Aws::String &&value)
Definition: CopyImageRequest.h:507
Aws::EC2::Model::CopyImageRequest::SetEncrypted
void SetEncrypted(bool value)
Definition: CopyImageRequest.h:179
Aws::EC2::Model::CopyImageRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CopyImageRequest.h:72
Aws::EC2::Model::CopyImageRequest::WithDestinationOutpostArn
CopyImageRequest & WithDestinationOutpostArn(const char *value)
Definition: CopyImageRequest.h:555
Aws::EC2::Model::CopyImageRequest::SourceRegionHasBeenSet
bool SourceRegionHasBeenSet() const
Definition: CopyImageRequest.h:428
Aws::EC2::Model::CopyImageRequest::WithSourceRegion
CopyImageRequest & WithSourceRegion(const Aws::String &value)
Definition: CopyImageRequest.h:448
Aws::EC2::Model::CopyImageRequest::WithName
CopyImageRequest & WithName(const char *value)
Definition: CopyImageRequest.h:376
Aws::EC2::Model::CopyImageRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CopyImageRequest.h:48
Aws::EC2::Model::CopyImageRequest::WithDescription
CopyImageRequest & WithDescription(const Aws::String &value)
Definition: CopyImageRequest.h:135
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CopyImageRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CopyImageRequest.h:80
Aws::EC2::Model::CopyImageRequest::SetSourceImageId
void SetSourceImageId(const Aws::String &value)
Definition: CopyImageRequest.h:392
Aws::EC2::Model::CopyImageRequest::WithDescription
CopyImageRequest & WithDescription(Aws::String &&value)
Definition: CopyImageRequest.h:140
Aws::EC2::Model::CopyImageRequest::SetDestinationOutpostArn
void SetDestinationOutpostArn(const Aws::String &value)
Definition: CopyImageRequest.h:495
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CopyImageRequest::EncryptedHasBeenSet
bool EncryptedHasBeenSet() const
Definition: CopyImageRequest.h:168
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CopyImageRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CopyImageRequest::SetSourceRegion
void SetSourceRegion(const Aws::String &value)
Definition: CopyImageRequest.h:433
Aws::EC2::Model::CopyImageRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CopyImageRequest.h:64
Aws::EC2::Model::CopyImageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CopyImageRequest.h:33
EC2_EXPORTS.h
Aws::EC2::Model::CopyImageRequest::WithKmsKeyId
CopyImageRequest & WithKmsKeyId(const Aws::String &value)
Definition: CopyImageRequest.h:299
Aws::EC2::Model::CopyImageRequest::SetDryRun
void SetDryRun(bool value)
Definition: CopyImageRequest.h:580
Aws::EC2::Model::CopyImageRequest::WithSourceImageId
CopyImageRequest & WithSourceImageId(Aws::String &&value)
Definition: CopyImageRequest.h:412
Aws::EC2::Model::CopyImageRequest::WithSourceRegion
CopyImageRequest & WithSourceRegion(const char *value)
Definition: CopyImageRequest.h:458
Aws::EC2::Model::CopyImageRequest::SerializePayload
Aws::String SerializePayload() const override