AWS SDK for C++

AWS SDK for C++ Version 1.11.928

Loading...
Searching...
No Matches
ClusterSnapshot.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/docdb-elastic/DocDBElastic_EXPORTS.h>
10#include <aws/docdb-elastic/model/SnapshotType.h>
11#include <aws/docdb-elastic/model/Status.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DocDBElastic {
23namespace Model {
24
32 public:
33 AWS_DOCDBELASTIC_API ClusterSnapshot() = default;
34 AWS_DOCDBELASTIC_API ClusterSnapshot(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DOCDBELASTIC_API ClusterSnapshot& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAdminUserName() const { return m_adminUserName; }
43 inline bool AdminUserNameHasBeenSet() const { return m_adminUserNameHasBeenSet; }
44 template <typename AdminUserNameT = Aws::String>
45 void SetAdminUserName(AdminUserNameT&& value) {
46 m_adminUserNameHasBeenSet = true;
47 m_adminUserName = std::forward<AdminUserNameT>(value);
48 }
49 template <typename AdminUserNameT = Aws::String>
50 ClusterSnapshot& WithAdminUserName(AdminUserNameT&& value) {
51 SetAdminUserName(std::forward<AdminUserNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
61 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
62 template <typename ClusterArnT = Aws::String>
63 void SetClusterArn(ClusterArnT&& value) {
64 m_clusterArnHasBeenSet = true;
65 m_clusterArn = std::forward<ClusterArnT>(value);
66 }
67 template <typename ClusterArnT = Aws::String>
68 ClusterSnapshot& WithClusterArn(ClusterArnT&& value) {
69 SetClusterArn(std::forward<ClusterArnT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetClusterCreationTime() const { return m_clusterCreationTime; }
80 inline bool ClusterCreationTimeHasBeenSet() const { return m_clusterCreationTimeHasBeenSet; }
81 template <typename ClusterCreationTimeT = Aws::String>
82 void SetClusterCreationTime(ClusterCreationTimeT&& value) {
83 m_clusterCreationTimeHasBeenSet = true;
84 m_clusterCreationTime = std::forward<ClusterCreationTimeT>(value);
85 }
86 template <typename ClusterCreationTimeT = Aws::String>
87 ClusterSnapshot& WithClusterCreationTime(ClusterCreationTimeT&& value) {
88 SetClusterCreationTime(std::forward<ClusterCreationTimeT>(value));
89 return *this;
90 }
92
94
102 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
103 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
104 template <typename KmsKeyIdT = Aws::String>
105 void SetKmsKeyId(KmsKeyIdT&& value) {
106 m_kmsKeyIdHasBeenSet = true;
107 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
108 }
109 template <typename KmsKeyIdT = Aws::String>
110 ClusterSnapshot& WithKmsKeyId(KmsKeyIdT&& value) {
111 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
121 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
122 template <typename SnapshotArnT = Aws::String>
123 void SetSnapshotArn(SnapshotArnT&& value) {
124 m_snapshotArnHasBeenSet = true;
125 m_snapshotArn = std::forward<SnapshotArnT>(value);
126 }
127 template <typename SnapshotArnT = Aws::String>
128 ClusterSnapshot& WithSnapshotArn(SnapshotArnT&& value) {
129 SetSnapshotArn(std::forward<SnapshotArnT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetSnapshotCreationTime() const { return m_snapshotCreationTime; }
140 inline bool SnapshotCreationTimeHasBeenSet() const { return m_snapshotCreationTimeHasBeenSet; }
141 template <typename SnapshotCreationTimeT = Aws::String>
142 void SetSnapshotCreationTime(SnapshotCreationTimeT&& value) {
143 m_snapshotCreationTimeHasBeenSet = true;
144 m_snapshotCreationTime = std::forward<SnapshotCreationTimeT>(value);
145 }
146 template <typename SnapshotCreationTimeT = Aws::String>
147 ClusterSnapshot& WithSnapshotCreationTime(SnapshotCreationTimeT&& value) {
148 SetSnapshotCreationTime(std::forward<SnapshotCreationTimeT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
158 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
159 template <typename SnapshotNameT = Aws::String>
160 void SetSnapshotName(SnapshotNameT&& value) {
161 m_snapshotNameHasBeenSet = true;
162 m_snapshotName = std::forward<SnapshotNameT>(value);
163 }
164 template <typename SnapshotNameT = Aws::String>
165 ClusterSnapshot& WithSnapshotName(SnapshotNameT&& value) {
166 SetSnapshotName(std::forward<SnapshotNameT>(value));
167 return *this;
168 }
170
172
180 inline SnapshotType GetSnapshotType() const { return m_snapshotType; }
181 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
182 inline void SetSnapshotType(SnapshotType value) {
183 m_snapshotTypeHasBeenSet = true;
184 m_snapshotType = value;
185 }
187 SetSnapshotType(value);
188 return *this;
189 }
191
193
196 inline Status GetStatus() const { return m_status; }
197 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
198 inline void SetStatus(Status value) {
199 m_statusHasBeenSet = true;
200 m_status = value;
201 }
203 SetStatus(value);
204 return *this;
205 }
207
209
212 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
213 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
214 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
215 void SetSubnetIds(SubnetIdsT&& value) {
216 m_subnetIdsHasBeenSet = true;
217 m_subnetIds = std::forward<SubnetIdsT>(value);
218 }
219 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
220 ClusterSnapshot& WithSubnetIds(SubnetIdsT&& value) {
221 SetSubnetIds(std::forward<SubnetIdsT>(value));
222 return *this;
223 }
224 template <typename SubnetIdsT = Aws::String>
225 ClusterSnapshot& AddSubnetIds(SubnetIdsT&& value) {
226 m_subnetIdsHasBeenSet = true;
227 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
237 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
238 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
239 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
240 m_vpcSecurityGroupIdsHasBeenSet = true;
241 m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value);
242 }
243 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
244 ClusterSnapshot& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
245 SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value));
246 return *this;
247 }
248 template <typename VpcSecurityGroupIdsT = Aws::String>
249 ClusterSnapshot& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
250 m_vpcSecurityGroupIdsHasBeenSet = true;
251 m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_adminUserName;
257
258 Aws::String m_clusterArn;
259
260 Aws::String m_clusterCreationTime;
261
262 Aws::String m_kmsKeyId;
263
264 Aws::String m_snapshotArn;
265
266 Aws::String m_snapshotCreationTime;
267
268 Aws::String m_snapshotName;
269
270 SnapshotType m_snapshotType{SnapshotType::NOT_SET};
271
272 Status m_status{Status::NOT_SET};
273
274 Aws::Vector<Aws::String> m_subnetIds;
275
276 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
277 bool m_adminUserNameHasBeenSet = false;
278 bool m_clusterArnHasBeenSet = false;
279 bool m_clusterCreationTimeHasBeenSet = false;
280 bool m_kmsKeyIdHasBeenSet = false;
281 bool m_snapshotArnHasBeenSet = false;
282 bool m_snapshotCreationTimeHasBeenSet = false;
283 bool m_snapshotNameHasBeenSet = false;
284 bool m_snapshotTypeHasBeenSet = false;
285 bool m_statusHasBeenSet = false;
286 bool m_subnetIdsHasBeenSet = false;
287 bool m_vpcSecurityGroupIdsHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace DocDBElastic
292} // namespace Aws
ClusterSnapshot & WithClusterCreationTime(ClusterCreationTimeT &&value)
const Aws::String & GetClusterCreationTime() const
ClusterSnapshot & WithSnapshotArn(SnapshotArnT &&value)
ClusterSnapshot & WithSnapshotName(SnapshotNameT &&value)
const Aws::String & GetAdminUserName() const
ClusterSnapshot & WithSnapshotType(SnapshotType value)
AWS_DOCDBELASTIC_API ClusterSnapshot(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClusterArn() const
ClusterSnapshot & WithSnapshotCreationTime(SnapshotCreationTimeT &&value)
void SetAdminUserName(AdminUserNameT &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
ClusterSnapshot & AddSubnetIds(SubnetIdsT &&value)
AWS_DOCDBELASTIC_API ClusterSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterSnapshot & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
const Aws::String & GetSnapshotName() const
void SetSnapshotCreationTime(SnapshotCreationTimeT &&value)
const Aws::String & GetSnapshotCreationTime() const
void SetSnapshotName(SnapshotNameT &&value)
ClusterSnapshot & WithSubnetIds(SubnetIdsT &&value)
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
const Aws::String & GetKmsKeyId() const
const Aws::String & GetSnapshotArn() const
void SetClusterCreationTime(ClusterCreationTimeT &&value)
ClusterSnapshot & WithStatus(Status value)
AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterSnapshot & WithKmsKeyId(KmsKeyIdT &&value)
ClusterSnapshot & WithClusterArn(ClusterArnT &&value)
void SetSnapshotArn(SnapshotArnT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
ClusterSnapshot & WithAdminUserName(AdminUserNameT &&value)
ClusterSnapshot & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
AWS_DOCDBELASTIC_API ClusterSnapshot()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue