AWS SDK for C++  1.9.128
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 
227  inline bool GetEncrypted() const{ return m_encrypted; }
228 
236  inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
237 
245  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
246 
254  inline ImportSnapshotRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
255 
256 
284  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
285 
313  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
314 
342  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
343 
371  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
372 
400  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
401 
429  inline ImportSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
430 
458  inline ImportSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
459 
487  inline ImportSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
488 
489 
493  inline const Aws::String& GetRoleName() const{ return m_roleName; }
494 
498  inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
499 
503  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
504 
508  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
509 
513  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
514 
518  inline ImportSnapshotRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
519 
523  inline ImportSnapshotRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
524 
528  inline ImportSnapshotRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
529 
530 
534  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
535 
539  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
540 
544  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
545 
549  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
550 
554  inline ImportSnapshotRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
555 
559  inline ImportSnapshotRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
560 
564  inline ImportSnapshotRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
565 
569  inline ImportSnapshotRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
570 
571  private:
572 
573  ClientData m_clientData;
574  bool m_clientDataHasBeenSet;
575 
576  Aws::String m_clientToken;
577  bool m_clientTokenHasBeenSet;
578 
579  Aws::String m_description;
580  bool m_descriptionHasBeenSet;
581 
582  SnapshotDiskContainer m_diskContainer;
583  bool m_diskContainerHasBeenSet;
584 
585  bool m_dryRun;
586  bool m_dryRunHasBeenSet;
587 
588  bool m_encrypted;
589  bool m_encryptedHasBeenSet;
590 
591  Aws::String m_kmsKeyId;
592  bool m_kmsKeyIdHasBeenSet;
593 
594  Aws::String m_roleName;
595  bool m_roleNameHasBeenSet;
596 
597  Aws::Vector<TagSpecification> m_tagSpecifications;
598  bool m_tagSpecificationsHasBeenSet;
599  };
600 
601 } // namespace Model
602 } // namespace EC2
603 } // namespace Aws
Aws::EC2::Model::ImportSnapshotRequest::WithKmsKeyId
ImportSnapshotRequest & WithKmsKeyId(const Aws::String &value)
Definition: ImportSnapshotRequest.h:429
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:544
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:313
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:559
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:523
Aws::EC2::Model::ImportSnapshotRequest::SetRoleName
void SetRoleName(Aws::String &&value)
Definition: ImportSnapshotRequest.h:508
Aws::EC2::Model::ImportSnapshotRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: ImportSnapshotRequest.h:534
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:549
Aws::EC2::Model::ImportSnapshotRequest::AddTagSpecifications
ImportSnapshotRequest & AddTagSpecifications(const TagSpecification &value)
Definition: ImportSnapshotRequest.h:564
Aws::EC2::Model::ImportSnapshotRequest::WithTagSpecifications
ImportSnapshotRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: ImportSnapshotRequest.h:554
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:371
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:487
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:503
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:227
Aws::EC2::Model::ImportSnapshotRequest::AddTagSpecifications
ImportSnapshotRequest & AddTagSpecifications(TagSpecification &&value)
Definition: ImportSnapshotRequest.h:569
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:236
Aws::EC2::Model::ImportSnapshotRequest::GetRoleName
const Aws::String & GetRoleName() const
Definition: ImportSnapshotRequest.h:493
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:342
Aws::EC2::Model::ImportSnapshotRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ImportSnapshotRequest.h:123
Aws::EC2::Model::ImportSnapshotRequest::WithEncrypted
ImportSnapshotRequest & WithEncrypted(bool value)
Definition: ImportSnapshotRequest.h:254
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:498
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:400
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:458
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:245
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
Aws::EC2::Model::ImportSnapshotRequest::SetRoleName
void SetRoleName(const char *value)
Definition: ImportSnapshotRequest.h:513
EC2_EXPORTS.h
Aws::EC2::Model::ImportSnapshotRequest::WithRoleName
ImportSnapshotRequest & WithRoleName(const char *value)
Definition: ImportSnapshotRequest.h:528
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:518
Aws::EC2::Model::ImportSnapshotRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: ImportSnapshotRequest.h:284
Aws::EC2::Model::ImportSnapshotRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: ImportSnapshotRequest.h:539