AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportSnapshotRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/ClientData.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/SnapshotDiskContainer.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ec2/model/TagSpecification.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EC2_API ImportSnapshotRequest() = default;
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_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const ClientData& GetClientData() const { return m_clientData; }
48 inline bool ClientDataHasBeenSet() const { return m_clientDataHasBeenSet; }
49 template<typename ClientDataT = ClientData>
50 void SetClientData(ClientDataT&& value) { m_clientDataHasBeenSet = true; m_clientData = std::forward<ClientDataT>(value); }
51 template<typename ClientDataT = ClientData>
52 ImportSnapshotRequest& WithClientData(ClientDataT&& value) { SetClientData(std::forward<ClientDataT>(value)); return *this;}
54
56
59 inline const Aws::String& GetClientToken() const { return m_clientToken; }
60 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 template<typename ClientTokenT = Aws::String>
62 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
63 template<typename ClientTokenT = Aws::String>
64 ImportSnapshotRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 ImportSnapshotRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
83 inline const SnapshotDiskContainer& GetDiskContainer() const { return m_diskContainer; }
84 inline bool DiskContainerHasBeenSet() const { return m_diskContainerHasBeenSet; }
85 template<typename DiskContainerT = SnapshotDiskContainer>
86 void SetDiskContainer(DiskContainerT&& value) { m_diskContainerHasBeenSet = true; m_diskContainer = std::forward<DiskContainerT>(value); }
87 template<typename DiskContainerT = SnapshotDiskContainer>
88 ImportSnapshotRequest& WithDiskContainer(DiskContainerT&& value) { SetDiskContainer(std::forward<DiskContainerT>(value)); return *this;}
90
92
98 inline bool GetDryRun() const { return m_dryRun; }
99 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
100 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
101 inline ImportSnapshotRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
103
105
112 inline bool GetEncrypted() const { return m_encrypted; }
113 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
114 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
115 inline ImportSnapshotRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
117
119
141 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
142 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
143 template<typename KmsKeyIdT = Aws::String>
144 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
145 template<typename KmsKeyIdT = Aws::String>
146 ImportSnapshotRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
148
150
153 inline const Aws::String& GetRoleName() const { return m_roleName; }
154 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
155 template<typename RoleNameT = Aws::String>
156 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
157 template<typename RoleNameT = Aws::String>
158 ImportSnapshotRequest& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
160
162
165 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
166 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
167 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
168 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
169 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
170 ImportSnapshotRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
171 template<typename TagSpecificationsT = TagSpecification>
172 ImportSnapshotRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
174 private:
175
176 ClientData m_clientData;
177 bool m_clientDataHasBeenSet = false;
178
179 Aws::String m_clientToken;
180 bool m_clientTokenHasBeenSet = false;
181
182 Aws::String m_description;
183 bool m_descriptionHasBeenSet = false;
184
185 SnapshotDiskContainer m_diskContainer;
186 bool m_diskContainerHasBeenSet = false;
187
188 bool m_dryRun{false};
189 bool m_dryRunHasBeenSet = false;
190
191 bool m_encrypted{false};
192 bool m_encryptedHasBeenSet = false;
193
194 Aws::String m_kmsKeyId;
195 bool m_kmsKeyIdHasBeenSet = false;
196
197 Aws::String m_roleName;
198 bool m_roleNameHasBeenSet = false;
199
200 Aws::Vector<TagSpecification> m_tagSpecifications;
201 bool m_tagSpecificationsHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace EC2
206} // 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