AWS SDK for C++  1.9.72
AWS SDK for C++
ImportSnapshotRequest.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>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace EC2
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ImportSnapshot"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const ClientData& GetClientData() const{ return m_clientData; }
47 
51  inline bool ClientDataHasBeenSet() const { return m_clientDataHasBeenSet; }
52 
56  inline void SetClientData(const ClientData& value) { m_clientDataHasBeenSet = true; m_clientData = value; }
57 
61  inline void SetClientData(ClientData&& value) { m_clientDataHasBeenSet = true; m_clientData = std::move(value); }
62 
66  inline ImportSnapshotRequest& WithClientData(const ClientData& value) { SetClientData(value); return *this;}
67 
71  inline ImportSnapshotRequest& WithClientData(ClientData&& value) { SetClientData(std::move(value)); return *this;}
72 
73 
77  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
78 
82  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
83 
87  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
88 
92  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
93 
97  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
98 
102  inline ImportSnapshotRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
103 
107  inline ImportSnapshotRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
108 
112  inline ImportSnapshotRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
113 
114 
118  inline const Aws::String& GetDescription() const{ return m_description; }
119 
123  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
124 
128  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
129 
133  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
134 
138  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
139 
143  inline ImportSnapshotRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
144 
148  inline ImportSnapshotRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
149 
153  inline ImportSnapshotRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
154 
155 
159  inline const SnapshotDiskContainer& GetDiskContainer() const{ return m_diskContainer; }
160 
164  inline bool DiskContainerHasBeenSet() const { return m_diskContainerHasBeenSet; }
165 
169  inline void SetDiskContainer(const SnapshotDiskContainer& value) { m_diskContainerHasBeenSet = true; m_diskContainer = value; }
170 
174  inline void SetDiskContainer(SnapshotDiskContainer&& value) { m_diskContainerHasBeenSet = true; m_diskContainer = std::move(value); }
175 
179  inline ImportSnapshotRequest& WithDiskContainer(const SnapshotDiskContainer& value) { SetDiskContainer(value); return *this;}
180 
184  inline ImportSnapshotRequest& WithDiskContainer(SnapshotDiskContainer&& value) { SetDiskContainer(std::move(value)); return *this;}
185 
186 
193  inline bool GetDryRun() const{ return m_dryRun; }
194 
201  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
202 
209  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
210 
217  inline ImportSnapshotRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
218 
219 
228  inline bool GetEncrypted() const{ return m_encrypted; }
229 
238  inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
239 
248  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
249 
258  inline ImportSnapshotRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
259 
260 
288  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
289 
317  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
318 
346  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
347 
375  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
376 
404  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
405 
433  inline ImportSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
434 
462  inline ImportSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
463 
491  inline ImportSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
492 
493 
497  inline const Aws::String& GetRoleName() const{ return m_roleName; }
498 
502  inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
503 
507  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
508 
512  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
513 
517  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
518 
522  inline ImportSnapshotRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
523 
527  inline ImportSnapshotRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
528 
532  inline ImportSnapshotRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
533 
534 
538  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
539 
543  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
544 
548  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
549 
553  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
554 
558  inline ImportSnapshotRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
559 
563  inline ImportSnapshotRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
564 
568  inline ImportSnapshotRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
569 
573  inline ImportSnapshotRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
574 
575  private:
576 
577  ClientData m_clientData;
578  bool m_clientDataHasBeenSet;
579 
580  Aws::String m_clientToken;
581  bool m_clientTokenHasBeenSet;
582 
583  Aws::String m_description;
584  bool m_descriptionHasBeenSet;
585 
586  SnapshotDiskContainer m_diskContainer;
587  bool m_diskContainerHasBeenSet;
588 
589  bool m_dryRun;
590  bool m_dryRunHasBeenSet;
591 
592  bool m_encrypted;
593  bool m_encryptedHasBeenSet;
594 
595  Aws::String m_kmsKeyId;
596  bool m_kmsKeyIdHasBeenSet;
597 
598  Aws::String m_roleName;
599  bool m_roleNameHasBeenSet;
600 
601  Aws::Vector<TagSpecification> m_tagSpecifications;
602  bool m_tagSpecificationsHasBeenSet;
603  };
604 
605 } // namespace Model
606 } // namespace EC2
607 } // namespace Aws
Aws::EC2::Model::ImportSnapshotRequest::WithKmsKeyId
ImportSnapshotRequest & WithKmsKeyId(const Aws::String &value)
Definition: ImportSnapshotRequest.h:433
TagSpecification.h
Aws::EC2::Model::ImportSnapshotRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: ImportSnapshotRequest.h:128
Aws::EC2::Model::ImportSnapshotRequest::GetDescription
const Aws::String & GetDescription() const
Definition: ImportSnapshotRequest.h:118
Aws::EC2::Model::ImportSnapshotRequest::GetClientData
const ClientData & GetClientData() const
Definition: ImportSnapshotRequest.h:46
Aws::EC2::Model::ImportSnapshotRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: ImportSnapshotRequest.h:548
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ImportSnapshotRequest::WithDescription
ImportSnapshotRequest & WithDescription(const Aws::String &value)
Definition: ImportSnapshotRequest.h:143
Aws::EC2::Model::ImportSnapshotRequest::GetDiskContainer
const SnapshotDiskContainer & GetDiskContainer() const
Definition: ImportSnapshotRequest.h:159
Aws::EC2::Model::ImportSnapshotRequest::WithDryRun
ImportSnapshotRequest & WithDryRun(bool value)
Definition: ImportSnapshotRequest.h:217
Aws::EC2::Model::ImportSnapshotRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: ImportSnapshotRequest.h:317
Aws::EC2::Model::ImportSnapshotRequest::SetDescription
void SetDescription(const char *value)
Definition: ImportSnapshotRequest.h:138
Aws::EC2::Model::ImportSnapshotRequest::WithClientData
ImportSnapshotRequest & WithClientData(ClientData &&value)
Definition: ImportSnapshotRequest.h:71
Aws::EC2::Model::ImportSnapshotRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ImportSnapshotRequest::ClientDataHasBeenSet
bool ClientDataHasBeenSet() const
Definition: ImportSnapshotRequest.h:51
Aws::EC2::Model::ImportSnapshotRequest::WithTagSpecifications
ImportSnapshotRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: ImportSnapshotRequest.h:563
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ImportSnapshotRequest::WithRoleName
ImportSnapshotRequest & WithRoleName(Aws::String &&value)
Definition: ImportSnapshotRequest.h:527
Aws::EC2::Model::ImportSnapshotRequest::SetRoleName
void SetRoleName(Aws::String &&value)
Definition: ImportSnapshotRequest.h:512
Aws::EC2::Model::ImportSnapshotRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: ImportSnapshotRequest.h:538
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ImportSnapshotRequest::WithDiskContainer
ImportSnapshotRequest & WithDiskContainer(SnapshotDiskContainer &&value)
Definition: ImportSnapshotRequest.h:184
Aws::EC2::Model::ImportSnapshotRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: ImportSnapshotRequest.h:87
ClientData.h
AWSVector.h
Aws::EC2::Model::ImportSnapshotRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: ImportSnapshotRequest.h:553
Aws::EC2::Model::ImportSnapshotRequest::AddTagSpecifications
ImportSnapshotRequest & AddTagSpecifications(const TagSpecification &value)
Definition: ImportSnapshotRequest.h:568
Aws::EC2::Model::ImportSnapshotRequest::WithTagSpecifications
ImportSnapshotRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: ImportSnapshotRequest.h:558
SnapshotDiskContainer.h
Aws::EC2::Model::ImportSnapshotRequest::WithClientToken
ImportSnapshotRequest & WithClientToken(Aws::String &&value)
Definition: ImportSnapshotRequest.h:107
Aws::EC2::Model::ImportSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ImportSnapshotRequest::SetDiskContainer
void SetDiskContainer(SnapshotDiskContainer &&value)
Definition: ImportSnapshotRequest.h:174
Aws::EC2::Model::ImportSnapshotRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: ImportSnapshotRequest.h:375
Aws::EC2::Model::ImportSnapshotRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: ImportSnapshotRequest.h:133
Aws::EC2::Model::ImportSnapshotRequest::SetDryRun
void SetDryRun(bool value)
Definition: ImportSnapshotRequest.h:209
Aws::EC2::Model::ImportSnapshotRequest::WithKmsKeyId
ImportSnapshotRequest & WithKmsKeyId(const char *value)
Definition: ImportSnapshotRequest.h:491
Aws::EC2::Model::ImportSnapshotRequest
Definition: ImportSnapshotRequest.h:26
Aws::EC2::Model::ImportSnapshotRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: ImportSnapshotRequest.h:92
Aws::EC2::Model::ImportSnapshotRequest::SetRoleName
void SetRoleName(const Aws::String &value)
Definition: ImportSnapshotRequest.h:507
Aws::EC2::Model::ImportSnapshotRequest::WithDiskContainer
ImportSnapshotRequest & WithDiskContainer(const SnapshotDiskContainer &value)
Definition: ImportSnapshotRequest.h:179
Aws::EC2::Model::ImportSnapshotRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: ImportSnapshotRequest.h:82
Aws::EC2::Model::ImportSnapshotRequest::GetEncrypted
bool GetEncrypted() const
Definition: ImportSnapshotRequest.h:228
Aws::EC2::Model::ImportSnapshotRequest::AddTagSpecifications
ImportSnapshotRequest & AddTagSpecifications(TagSpecification &&value)
Definition: ImportSnapshotRequest.h:573
EC2Request.h
Aws::EC2::Model::ImportSnapshotRequest::GetDryRun
bool GetDryRun() const
Definition: ImportSnapshotRequest.h:193
Aws::EC2::Model::ImportSnapshotRequest::WithClientData
ImportSnapshotRequest & WithClientData(const ClientData &value)
Definition: ImportSnapshotRequest.h:66
AWSString.h
Aws::EC2::Model::ImportSnapshotRequest::EncryptedHasBeenSet
bool EncryptedHasBeenSet() const
Definition: ImportSnapshotRequest.h:238
Aws::EC2::Model::ImportSnapshotRequest::GetRoleName
const Aws::String & GetRoleName() const
Definition: ImportSnapshotRequest.h:497
Aws::EC2::Model::ImportSnapshotRequest::SetClientToken
void SetClientToken(const char *value)
Definition: ImportSnapshotRequest.h:97
Aws::EC2::Model::ImportSnapshotRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: ImportSnapshotRequest.h:346
Aws::EC2::Model::ImportSnapshotRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ImportSnapshotRequest.h:123
Aws::EC2::Model::ImportSnapshotRequest::WithEncrypted
ImportSnapshotRequest & WithEncrypted(bool value)
Definition: ImportSnapshotRequest.h:258
Aws::EC2::Model::ImportSnapshotRequest::ImportSnapshotRequest
ImportSnapshotRequest()
Aws::EC2::Model::ImportSnapshotRequest::WithDescription
ImportSnapshotRequest & WithDescription(Aws::String &&value)
Definition: ImportSnapshotRequest.h:148
Aws::EC2::Model::ImportSnapshotRequest::SetClientData
void SetClientData(const ClientData &value)
Definition: ImportSnapshotRequest.h:56
Aws::EC2::Model::ImportSnapshotRequest::WithClientToken
ImportSnapshotRequest & WithClientToken(const Aws::String &value)
Definition: ImportSnapshotRequest.h:102
Aws::EC2::Model::ImportSnapshotRequest::RoleNameHasBeenSet
bool RoleNameHasBeenSet() const
Definition: ImportSnapshotRequest.h:502
Aws::EC2::Model::ImportSnapshotRequest::WithClientToken
ImportSnapshotRequest & WithClientToken(const char *value)
Definition: ImportSnapshotRequest.h:112
Aws::EC2::Model::ImportSnapshotRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: ImportSnapshotRequest.h:404
Aws::EC2::Model::ImportSnapshotRequest::DiskContainerHasBeenSet
bool DiskContainerHasBeenSet() const
Definition: ImportSnapshotRequest.h:164
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ClientData
Definition: ClientData.h:33
Aws::EC2::Model::ImportSnapshotRequest::WithDescription
ImportSnapshotRequest & WithDescription(const char *value)
Definition: ImportSnapshotRequest.h:153
Aws::EC2::Model::ImportSnapshotRequest::WithKmsKeyId
ImportSnapshotRequest & WithKmsKeyId(Aws::String &&value)
Definition: ImportSnapshotRequest.h:462
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ImportSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ImportSnapshotRequest.h:34
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ImportSnapshotRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ImportSnapshotRequest.h:201
Aws::EC2::Model::ImportSnapshotRequest::SetClientData
void SetClientData(ClientData &&value)
Definition: ImportSnapshotRequest.h:61
Aws::EC2::Model::ImportSnapshotRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: ImportSnapshotRequest.h:77
Aws::EC2::Model::ImportSnapshotRequest::SetEncrypted
void SetEncrypted(bool value)
Definition: ImportSnapshotRequest.h:248
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::ImportSnapshotRequest::SetRoleName
void SetRoleName(const char *value)
Definition: ImportSnapshotRequest.h:517
EC2_EXPORTS.h
Aws::EC2::Model::ImportSnapshotRequest::WithRoleName
ImportSnapshotRequest & WithRoleName(const char *value)
Definition: ImportSnapshotRequest.h:532
Aws::EC2::Model::ImportSnapshotRequest::SetDiskContainer
void SetDiskContainer(const SnapshotDiskContainer &value)
Definition: ImportSnapshotRequest.h:169
Aws::EC2::Model::SnapshotDiskContainer
Definition: SnapshotDiskContainer.h:34
Aws::EC2::Model::ImportSnapshotRequest::WithRoleName
ImportSnapshotRequest & WithRoleName(const Aws::String &value)
Definition: ImportSnapshotRequest.h:522
Aws::EC2::Model::ImportSnapshotRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: ImportSnapshotRequest.h:288
Aws::EC2::Model::ImportSnapshotRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: ImportSnapshotRequest.h:543