AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ImportSnapshotRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ClientData.h>
12#include <aws/ec2/model/SnapshotDiskContainer.h>
13#include <aws/ec2/model/TagSpecification.h>
14
15#include <utility>
16
17namespace Aws {
18namespace EC2 {
19namespace Model {
20
24 public:
25 AWS_EC2_API ImportSnapshotRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ImportSnapshot"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
43 inline const ClientData& GetClientData() const { return m_clientData; }
44 inline bool ClientDataHasBeenSet() const { return m_clientDataHasBeenSet; }
45 template <typename ClientDataT = ClientData>
46 void SetClientData(ClientDataT&& value) {
47 m_clientDataHasBeenSet = true;
48 m_clientData = std::forward<ClientDataT>(value);
49 }
50 template <typename ClientDataT = ClientData>
51 ImportSnapshotRequest& WithClientData(ClientDataT&& value) {
52 SetClientData(std::forward<ClientDataT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetClientToken() const { return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 template <typename ClientTokenT = Aws::String>
64 void SetClientToken(ClientTokenT&& value) {
65 m_clientTokenHasBeenSet = true;
66 m_clientToken = std::forward<ClientTokenT>(value);
67 }
68 template <typename ClientTokenT = Aws::String>
69 ImportSnapshotRequest& WithClientToken(ClientTokenT&& value) {
70 SetClientToken(std::forward<ClientTokenT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 ImportSnapshotRequest& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const SnapshotDiskContainer& GetDiskContainer() const { return m_diskContainer; }
98 inline bool DiskContainerHasBeenSet() const { return m_diskContainerHasBeenSet; }
99 template <typename DiskContainerT = SnapshotDiskContainer>
100 void SetDiskContainer(DiskContainerT&& value) {
101 m_diskContainerHasBeenSet = true;
102 m_diskContainer = std::forward<DiskContainerT>(value);
103 }
104 template <typename DiskContainerT = SnapshotDiskContainer>
105 ImportSnapshotRequest& WithDiskContainer(DiskContainerT&& value) {
106 SetDiskContainer(std::forward<DiskContainerT>(value));
107 return *this;
108 }
110
112
118 inline bool GetDryRun() const { return m_dryRun; }
119 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
120 inline void SetDryRun(bool value) {
121 m_dryRunHasBeenSet = true;
122 m_dryRun = value;
123 }
124 inline ImportSnapshotRequest& WithDryRun(bool value) {
125 SetDryRun(value);
126 return *this;
127 }
129
131
138 inline bool GetEncrypted() const { return m_encrypted; }
139 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
140 inline void SetEncrypted(bool value) {
141 m_encryptedHasBeenSet = true;
142 m_encrypted = value;
143 }
145 SetEncrypted(value);
146 return *this;
147 }
149
151
173 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
174 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
175 template <typename KmsKeyIdT = Aws::String>
176 void SetKmsKeyId(KmsKeyIdT&& value) {
177 m_kmsKeyIdHasBeenSet = true;
178 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
179 }
180 template <typename KmsKeyIdT = Aws::String>
182 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetRoleName() const { return m_roleName; }
192 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
193 template <typename RoleNameT = Aws::String>
194 void SetRoleName(RoleNameT&& value) {
195 m_roleNameHasBeenSet = true;
196 m_roleName = std::forward<RoleNameT>(value);
197 }
198 template <typename RoleNameT = Aws::String>
200 SetRoleName(std::forward<RoleNameT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
210 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
211 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
212 void SetTagSpecifications(TagSpecificationsT&& value) {
213 m_tagSpecificationsHasBeenSet = true;
214 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
215 }
216 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
217 ImportSnapshotRequest& WithTagSpecifications(TagSpecificationsT&& value) {
218 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
219 return *this;
220 }
221 template <typename TagSpecificationsT = TagSpecification>
222 ImportSnapshotRequest& AddTagSpecifications(TagSpecificationsT&& value) {
223 m_tagSpecificationsHasBeenSet = true;
224 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
225 return *this;
226 }
228 private:
229 ClientData m_clientData;
230
231 Aws::String m_clientToken;
232
233 Aws::String m_description;
234
235 SnapshotDiskContainer m_diskContainer;
236
237 bool m_dryRun{false};
238
239 bool m_encrypted{false};
240
241 Aws::String m_kmsKeyId;
242
243 Aws::String m_roleName;
244
245 Aws::Vector<TagSpecification> m_tagSpecifications;
246 bool m_clientDataHasBeenSet = false;
247 bool m_clientTokenHasBeenSet = false;
248 bool m_descriptionHasBeenSet = false;
249 bool m_diskContainerHasBeenSet = false;
250 bool m_dryRunHasBeenSet = false;
251 bool m_encryptedHasBeenSet = false;
252 bool m_kmsKeyIdHasBeenSet = false;
253 bool m_roleNameHasBeenSet = false;
254 bool m_tagSpecificationsHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace EC2
259} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
const SnapshotDiskContainer & GetDiskContainer() const
ImportSnapshotRequest & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
void SetDiskContainer(DiskContainerT &&value)
ImportSnapshotRequest & WithRoleName(RoleNameT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API ImportSnapshotRequest()=default
ImportSnapshotRequest & WithDescription(DescriptionT &&value)
ImportSnapshotRequest & WithEncrypted(bool value)
void SetTagSpecifications(TagSpecificationsT &&value)
ImportSnapshotRequest & AddTagSpecifications(TagSpecificationsT &&value)
ImportSnapshotRequest & WithDryRun(bool value)
ImportSnapshotRequest & WithTagSpecifications(TagSpecificationsT &&value)
ImportSnapshotRequest & WithDiskContainer(DiskContainerT &&value)
virtual const char * GetServiceRequestName() const override
ImportSnapshotRequest & WithClientToken(ClientTokenT &&value)
ImportSnapshotRequest & WithClientData(ClientDataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector