AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StartSnapshotResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ebs/EBS_EXPORTS.h>
11#include <aws/ebs/model/SSEType.h>
12#include <aws/ebs/model/Status.h>
13#include <aws/ebs/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace EBS {
27namespace Model {
29 public:
30 AWS_EBS_API StartSnapshotResult() = default;
33
35
38 inline const Aws::String& GetDescription() const { return m_description; }
39 template <typename DescriptionT = Aws::String>
40 void SetDescription(DescriptionT&& value) {
41 m_descriptionHasBeenSet = true;
42 m_description = std::forward<DescriptionT>(value);
43 }
44 template <typename DescriptionT = Aws::String>
45 StartSnapshotResult& WithDescription(DescriptionT&& value) {
46 SetDescription(std::forward<DescriptionT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
56 template <typename SnapshotIdT = Aws::String>
57 void SetSnapshotId(SnapshotIdT&& value) {
58 m_snapshotIdHasBeenSet = true;
59 m_snapshotId = std::forward<SnapshotIdT>(value);
60 }
61 template <typename SnapshotIdT = Aws::String>
62 StartSnapshotResult& WithSnapshotId(SnapshotIdT&& value) {
63 SetSnapshotId(std::forward<SnapshotIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
73 template <typename OwnerIdT = Aws::String>
74 void SetOwnerId(OwnerIdT&& value) {
75 m_ownerIdHasBeenSet = true;
76 m_ownerId = std::forward<OwnerIdT>(value);
77 }
78 template <typename OwnerIdT = Aws::String>
79 StartSnapshotResult& WithOwnerId(OwnerIdT&& value) {
80 SetOwnerId(std::forward<OwnerIdT>(value));
81 return *this;
82 }
84
86
89 inline Status GetStatus() const { return m_status; }
90 inline void SetStatus(Status value) {
91 m_statusHasBeenSet = true;
92 m_status = value;
93 }
95 SetStatus(value);
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
105 template <typename StartTimeT = Aws::Utils::DateTime>
106 void SetStartTime(StartTimeT&& value) {
107 m_startTimeHasBeenSet = true;
108 m_startTime = std::forward<StartTimeT>(value);
109 }
110 template <typename StartTimeT = Aws::Utils::DateTime>
111 StartSnapshotResult& WithStartTime(StartTimeT&& value) {
112 SetStartTime(std::forward<StartTimeT>(value));
113 return *this;
114 }
116
118
121 inline long long GetVolumeSize() const { return m_volumeSize; }
122 inline void SetVolumeSize(long long value) {
123 m_volumeSizeHasBeenSet = true;
124 m_volumeSize = value;
125 }
126 inline StartSnapshotResult& WithVolumeSize(long long value) {
127 SetVolumeSize(value);
128 return *this;
129 }
131
133
136 inline int GetBlockSize() const { return m_blockSize; }
137 inline void SetBlockSize(int value) {
138 m_blockSizeHasBeenSet = true;
139 m_blockSize = value;
140 }
142 SetBlockSize(value);
143 return *this;
144 }
146
148
155 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
156 template <typename TagsT = Aws::Vector<Tag>>
157 void SetTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags = std::forward<TagsT>(value);
160 }
161 template <typename TagsT = Aws::Vector<Tag>>
163 SetTags(std::forward<TagsT>(value));
164 return *this;
165 }
166 template <typename TagsT = Tag>
167 StartSnapshotResult& AddTags(TagsT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags.emplace_back(std::forward<TagsT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetParentSnapshotId() const { return m_parentSnapshotId; }
179 template <typename ParentSnapshotIdT = Aws::String>
180 void SetParentSnapshotId(ParentSnapshotIdT&& value) {
181 m_parentSnapshotIdHasBeenSet = true;
182 m_parentSnapshotId = std::forward<ParentSnapshotIdT>(value);
183 }
184 template <typename ParentSnapshotIdT = Aws::String>
185 StartSnapshotResult& WithParentSnapshotId(ParentSnapshotIdT&& value) {
186 SetParentSnapshotId(std::forward<ParentSnapshotIdT>(value));
187 return *this;
188 }
190
192
196 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
197 template <typename KmsKeyArnT = Aws::String>
198 void SetKmsKeyArn(KmsKeyArnT&& value) {
199 m_kmsKeyArnHasBeenSet = true;
200 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
201 }
202 template <typename KmsKeyArnT = Aws::String>
203 StartSnapshotResult& WithKmsKeyArn(KmsKeyArnT&& value) {
204 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
205 return *this;
206 }
208
210
213 inline SSEType GetSseType() const { return m_sseType; }
214 inline void SetSseType(SSEType value) {
215 m_sseTypeHasBeenSet = true;
216 m_sseType = value;
217 }
219 SetSseType(value);
220 return *this;
221 }
223
225
226 inline const Aws::String& GetRequestId() const { return m_requestId; }
227 template <typename RequestIdT = Aws::String>
228 void SetRequestId(RequestIdT&& value) {
229 m_requestIdHasBeenSet = true;
230 m_requestId = std::forward<RequestIdT>(value);
231 }
232 template <typename RequestIdT = Aws::String>
233 StartSnapshotResult& WithRequestId(RequestIdT&& value) {
234 SetRequestId(std::forward<RequestIdT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_description;
240
241 Aws::String m_snapshotId;
242
243 Aws::String m_ownerId;
244
245 Status m_status{Status::NOT_SET};
246
247 Aws::Utils::DateTime m_startTime{};
248
249 long long m_volumeSize{0};
250
251 int m_blockSize{0};
252
253 Aws::Vector<Tag> m_tags;
254
255 Aws::String m_parentSnapshotId;
256
257 Aws::String m_kmsKeyArn;
258
259 SSEType m_sseType{SSEType::NOT_SET};
260
261 Aws::String m_requestId;
262 bool m_descriptionHasBeenSet = false;
263 bool m_snapshotIdHasBeenSet = false;
264 bool m_ownerIdHasBeenSet = false;
265 bool m_statusHasBeenSet = false;
266 bool m_startTimeHasBeenSet = false;
267 bool m_volumeSizeHasBeenSet = false;
268 bool m_blockSizeHasBeenSet = false;
269 bool m_tagsHasBeenSet = false;
270 bool m_parentSnapshotIdHasBeenSet = false;
271 bool m_kmsKeyArnHasBeenSet = false;
272 bool m_sseTypeHasBeenSet = false;
273 bool m_requestIdHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace EBS
278} // namespace Aws
StartSnapshotResult & WithRequestId(RequestIdT &&value)
void SetSnapshotId(SnapshotIdT &&value)
const Aws::String & GetKmsKeyArn() const
StartSnapshotResult & AddTags(TagsT &&value)
const Aws::String & GetSnapshotId() const
const Aws::String & GetOwnerId() const
AWS_EBS_API StartSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDescription(DescriptionT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetStartTime() const
StartSnapshotResult & WithSseType(SSEType value)
StartSnapshotResult & WithTags(TagsT &&value)
StartSnapshotResult & WithParentSnapshotId(ParentSnapshotIdT &&value)
StartSnapshotResult & WithBlockSize(int value)
const Aws::String & GetDescription() const
StartSnapshotResult & WithSnapshotId(SnapshotIdT &&value)
AWS_EBS_API StartSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetParentSnapshotId() const
StartSnapshotResult & WithStartTime(StartTimeT &&value)
void SetParentSnapshotId(ParentSnapshotIdT &&value)
StartSnapshotResult & WithOwnerId(OwnerIdT &&value)
StartSnapshotResult & WithStatus(Status value)
StartSnapshotResult & WithKmsKeyArn(KmsKeyArnT &&value)
StartSnapshotResult & WithDescription(DescriptionT &&value)
AWS_EBS_API StartSnapshotResult()=default
StartSnapshotResult & WithVolumeSize(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue