AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterSnapshot.h
1
6#pragma once
7#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/docdb-elastic/model/SnapshotType.h>
10#include <aws/docdb-elastic/model/Status.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DocDBElastic
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_DOCDBELASTIC_API ClusterSnapshot();
39 AWS_DOCDBELASTIC_API ClusterSnapshot(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DOCDBELASTIC_API ClusterSnapshot& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAdminUserName() const{ return m_adminUserName; }
49 inline bool AdminUserNameHasBeenSet() const { return m_adminUserNameHasBeenSet; }
50 inline void SetAdminUserName(const Aws::String& value) { m_adminUserNameHasBeenSet = true; m_adminUserName = value; }
51 inline void SetAdminUserName(Aws::String&& value) { m_adminUserNameHasBeenSet = true; m_adminUserName = std::move(value); }
52 inline void SetAdminUserName(const char* value) { m_adminUserNameHasBeenSet = true; m_adminUserName.assign(value); }
53 inline ClusterSnapshot& WithAdminUserName(const Aws::String& value) { SetAdminUserName(value); return *this;}
54 inline ClusterSnapshot& WithAdminUserName(Aws::String&& value) { SetAdminUserName(std::move(value)); return *this;}
55 inline ClusterSnapshot& WithAdminUserName(const char* value) { SetAdminUserName(value); return *this;}
57
59
62 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
63 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
64 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
65 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
66 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
67 inline ClusterSnapshot& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
68 inline ClusterSnapshot& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
69 inline ClusterSnapshot& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
71
73
77 inline const Aws::String& GetClusterCreationTime() const{ return m_clusterCreationTime; }
78 inline bool ClusterCreationTimeHasBeenSet() const { return m_clusterCreationTimeHasBeenSet; }
79 inline void SetClusterCreationTime(const Aws::String& value) { m_clusterCreationTimeHasBeenSet = true; m_clusterCreationTime = value; }
80 inline void SetClusterCreationTime(Aws::String&& value) { m_clusterCreationTimeHasBeenSet = true; m_clusterCreationTime = std::move(value); }
81 inline void SetClusterCreationTime(const char* value) { m_clusterCreationTimeHasBeenSet = true; m_clusterCreationTime.assign(value); }
82 inline ClusterSnapshot& WithClusterCreationTime(const Aws::String& value) { SetClusterCreationTime(value); return *this;}
83 inline ClusterSnapshot& WithClusterCreationTime(Aws::String&& value) { SetClusterCreationTime(std::move(value)); return *this;}
84 inline ClusterSnapshot& WithClusterCreationTime(const char* value) { SetClusterCreationTime(value); return *this;}
86
88
96 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
97 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
98 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
99 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
100 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
101 inline ClusterSnapshot& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
102 inline ClusterSnapshot& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
103 inline ClusterSnapshot& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
105
107
110 inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; }
111 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
112 inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; }
113 inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); }
114 inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); }
115 inline ClusterSnapshot& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;}
116 inline ClusterSnapshot& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;}
117 inline ClusterSnapshot& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;}
119
121
125 inline const Aws::String& GetSnapshotCreationTime() const{ return m_snapshotCreationTime; }
126 inline bool SnapshotCreationTimeHasBeenSet() const { return m_snapshotCreationTimeHasBeenSet; }
127 inline void SetSnapshotCreationTime(const Aws::String& value) { m_snapshotCreationTimeHasBeenSet = true; m_snapshotCreationTime = value; }
128 inline void SetSnapshotCreationTime(Aws::String&& value) { m_snapshotCreationTimeHasBeenSet = true; m_snapshotCreationTime = std::move(value); }
129 inline void SetSnapshotCreationTime(const char* value) { m_snapshotCreationTimeHasBeenSet = true; m_snapshotCreationTime.assign(value); }
131 inline ClusterSnapshot& WithSnapshotCreationTime(Aws::String&& value) { SetSnapshotCreationTime(std::move(value)); return *this;}
132 inline ClusterSnapshot& WithSnapshotCreationTime(const char* value) { SetSnapshotCreationTime(value); return *this;}
134
136
139 inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
140 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
141 inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
142 inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
143 inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
144 inline ClusterSnapshot& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
145 inline ClusterSnapshot& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
146 inline ClusterSnapshot& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
148
150
158 inline const SnapshotType& GetSnapshotType() const{ return m_snapshotType; }
159 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
160 inline void SetSnapshotType(const SnapshotType& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = value; }
161 inline void SetSnapshotType(SnapshotType&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = std::move(value); }
162 inline ClusterSnapshot& WithSnapshotType(const SnapshotType& value) { SetSnapshotType(value); return *this;}
163 inline ClusterSnapshot& WithSnapshotType(SnapshotType&& value) { SetSnapshotType(std::move(value)); return *this;}
165
167
170 inline const Status& GetStatus() const{ return m_status; }
171 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
173 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
174 inline ClusterSnapshot& WithStatus(const Status& value) { SetStatus(value); return *this;}
175 inline ClusterSnapshot& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
177
179
182 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
183 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
184 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
185 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
186 inline ClusterSnapshot& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
187 inline ClusterSnapshot& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
188 inline ClusterSnapshot& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
189 inline ClusterSnapshot& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
190 inline ClusterSnapshot& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
192
194
197 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
198 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
199 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
200 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
203 inline ClusterSnapshot& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
204 inline ClusterSnapshot& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
205 inline ClusterSnapshot& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
207 private:
208
209 Aws::String m_adminUserName;
210 bool m_adminUserNameHasBeenSet = false;
211
212 Aws::String m_clusterArn;
213 bool m_clusterArnHasBeenSet = false;
214
215 Aws::String m_clusterCreationTime;
216 bool m_clusterCreationTimeHasBeenSet = false;
217
218 Aws::String m_kmsKeyId;
219 bool m_kmsKeyIdHasBeenSet = false;
220
221 Aws::String m_snapshotArn;
222 bool m_snapshotArnHasBeenSet = false;
223
224 Aws::String m_snapshotCreationTime;
225 bool m_snapshotCreationTimeHasBeenSet = false;
226
227 Aws::String m_snapshotName;
228 bool m_snapshotNameHasBeenSet = false;
229
230 SnapshotType m_snapshotType;
231 bool m_snapshotTypeHasBeenSet = false;
232
233 Status m_status;
234 bool m_statusHasBeenSet = false;
235
236 Aws::Vector<Aws::String> m_subnetIds;
237 bool m_subnetIdsHasBeenSet = false;
238
239 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
240 bool m_vpcSecurityGroupIdsHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace DocDBElastic
245} // namespace Aws
ClusterSnapshot & WithSnapshotName(const char *value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
ClusterSnapshot & WithSubnetIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetClusterCreationTime() const
const SnapshotType & GetSnapshotType() const
const Aws::String & GetAdminUserName() const
AWS_DOCDBELASTIC_API ClusterSnapshot(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClusterArn() const
ClusterSnapshot & AddSubnetIds(const char *value)
void SetClusterCreationTime(const char *value)
void SetSnapshotCreationTime(Aws::String &&value)
ClusterSnapshot & AddVpcSecurityGroupIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
ClusterSnapshot & WithSnapshotArn(const Aws::String &value)
void SetAdminUserName(Aws::String &&value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AWS_DOCDBELASTIC_API ClusterSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterSnapshot & WithSnapshotName(Aws::String &&value)
ClusterSnapshot & WithSubnetIds(const Aws::Vector< Aws::String > &value)
void SetSnapshotCreationTime(const char *value)
void SetSnapshotType(SnapshotType &&value)
const Aws::String & GetSnapshotName() const
ClusterSnapshot & WithSnapshotCreationTime(const char *value)
ClusterSnapshot & WithClusterCreationTime(const Aws::String &value)
ClusterSnapshot & WithAdminUserName(Aws::String &&value)
const Aws::String & GetSnapshotCreationTime() const
ClusterSnapshot & WithAdminUserName(const Aws::String &value)
void SetSnapshotName(const Aws::String &value)
const Aws::String & GetKmsKeyId() const
ClusterSnapshot & WithAdminUserName(const char *value)
const Aws::String & GetSnapshotArn() const
ClusterSnapshot & WithKmsKeyId(const char *value)
ClusterSnapshot & WithSnapshotArn(Aws::String &&value)
ClusterSnapshot & AddVpcSecurityGroupIds(const char *value)
ClusterSnapshot & AddVpcSecurityGroupIds(Aws::String &&value)
ClusterSnapshot & AddSubnetIds(const Aws::String &value)
ClusterSnapshot & WithSnapshotCreationTime(const Aws::String &value)
ClusterSnapshot & AddSubnetIds(Aws::String &&value)
ClusterSnapshot & WithClusterArn(const char *value)
void SetClusterCreationTime(Aws::String &&value)
AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterSnapshot & WithSnapshotName(const Aws::String &value)
ClusterSnapshot & WithStatus(Status &&value)
ClusterSnapshot & WithKmsKeyId(Aws::String &&value)
void SetSnapshotArn(const Aws::String &value)
ClusterSnapshot & WithSnapshotType(const SnapshotType &value)
void SetSnapshotType(const SnapshotType &value)
ClusterSnapshot & WithSnapshotArn(const char *value)
ClusterSnapshot & WithClusterArn(Aws::String &&value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
void SetClusterCreationTime(const Aws::String &value)
ClusterSnapshot & WithClusterArn(const Aws::String &value)
ClusterSnapshot & WithClusterCreationTime(const char *value)
void SetClusterArn(const Aws::String &value)
ClusterSnapshot & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetKmsKeyId(const Aws::String &value)
ClusterSnapshot & WithSnapshotCreationTime(Aws::String &&value)
void SetAdminUserName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
ClusterSnapshot & WithSnapshotType(SnapshotType &&value)
ClusterSnapshot & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetSnapshotCreationTime(const Aws::String &value)
ClusterSnapshot & WithStatus(const Status &value)
ClusterSnapshot & WithKmsKeyId(const Aws::String &value)
ClusterSnapshot & WithClusterCreationTime(Aws::String &&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