AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AdminUserNameT = Aws::String>
51 void SetAdminUserName(AdminUserNameT&& value) { m_adminUserNameHasBeenSet = true; m_adminUserName = std::forward<AdminUserNameT>(value); }
52 template<typename AdminUserNameT = Aws::String>
53 ClusterSnapshot& WithAdminUserName(AdminUserNameT&& value) { SetAdminUserName(std::forward<AdminUserNameT>(value)); return *this;}
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) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
64 template<typename ClusterArnT = Aws::String>
65 ClusterSnapshot& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
67
69
73 inline const Aws::String& GetClusterCreationTime() const { return m_clusterCreationTime; }
74 inline bool ClusterCreationTimeHasBeenSet() const { return m_clusterCreationTimeHasBeenSet; }
75 template<typename ClusterCreationTimeT = Aws::String>
76 void SetClusterCreationTime(ClusterCreationTimeT&& value) { m_clusterCreationTimeHasBeenSet = true; m_clusterCreationTime = std::forward<ClusterCreationTimeT>(value); }
77 template<typename ClusterCreationTimeT = Aws::String>
78 ClusterSnapshot& WithClusterCreationTime(ClusterCreationTimeT&& value) { SetClusterCreationTime(std::forward<ClusterCreationTimeT>(value)); return *this;}
80
82
90 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
91 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
92 template<typename KmsKeyIdT = Aws::String>
93 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
94 template<typename KmsKeyIdT = Aws::String>
95 ClusterSnapshot& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
97
99
102 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
103 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
104 template<typename SnapshotArnT = Aws::String>
105 void SetSnapshotArn(SnapshotArnT&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::forward<SnapshotArnT>(value); }
106 template<typename SnapshotArnT = Aws::String>
107 ClusterSnapshot& WithSnapshotArn(SnapshotArnT&& value) { SetSnapshotArn(std::forward<SnapshotArnT>(value)); return *this;}
109
111
115 inline const Aws::String& GetSnapshotCreationTime() const { return m_snapshotCreationTime; }
116 inline bool SnapshotCreationTimeHasBeenSet() const { return m_snapshotCreationTimeHasBeenSet; }
117 template<typename SnapshotCreationTimeT = Aws::String>
118 void SetSnapshotCreationTime(SnapshotCreationTimeT&& value) { m_snapshotCreationTimeHasBeenSet = true; m_snapshotCreationTime = std::forward<SnapshotCreationTimeT>(value); }
119 template<typename SnapshotCreationTimeT = Aws::String>
120 ClusterSnapshot& WithSnapshotCreationTime(SnapshotCreationTimeT&& value) { SetSnapshotCreationTime(std::forward<SnapshotCreationTimeT>(value)); return *this;}
122
124
127 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
128 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
129 template<typename SnapshotNameT = Aws::String>
130 void SetSnapshotName(SnapshotNameT&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::forward<SnapshotNameT>(value); }
131 template<typename SnapshotNameT = Aws::String>
132 ClusterSnapshot& WithSnapshotName(SnapshotNameT&& value) { SetSnapshotName(std::forward<SnapshotNameT>(value)); return *this;}
134
136
144 inline SnapshotType GetSnapshotType() const { return m_snapshotType; }
145 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
146 inline void SetSnapshotType(SnapshotType value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = value; }
147 inline ClusterSnapshot& WithSnapshotType(SnapshotType value) { SetSnapshotType(value); return *this;}
149
151
154 inline Status GetStatus() const { return m_status; }
155 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
156 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
157 inline ClusterSnapshot& WithStatus(Status value) { SetStatus(value); return *this;}
159
161
164 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
165 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
166 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
167 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
168 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
169 ClusterSnapshot& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
170 template<typename SubnetIdsT = Aws::String>
171 ClusterSnapshot& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
173
175
178 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
179 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
180 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
181 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
182 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
183 ClusterSnapshot& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
184 template<typename VpcSecurityGroupIdsT = Aws::String>
185 ClusterSnapshot& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
187 private:
188
189 Aws::String m_adminUserName;
190 bool m_adminUserNameHasBeenSet = false;
191
192 Aws::String m_clusterArn;
193 bool m_clusterArnHasBeenSet = false;
194
195 Aws::String m_clusterCreationTime;
196 bool m_clusterCreationTimeHasBeenSet = false;
197
198 Aws::String m_kmsKeyId;
199 bool m_kmsKeyIdHasBeenSet = false;
200
201 Aws::String m_snapshotArn;
202 bool m_snapshotArnHasBeenSet = false;
203
204 Aws::String m_snapshotCreationTime;
205 bool m_snapshotCreationTimeHasBeenSet = false;
206
207 Aws::String m_snapshotName;
208 bool m_snapshotNameHasBeenSet = false;
209
210 SnapshotType m_snapshotType{SnapshotType::NOT_SET};
211 bool m_snapshotTypeHasBeenSet = false;
212
213 Status m_status{Status::NOT_SET};
214 bool m_statusHasBeenSet = false;
215
216 Aws::Vector<Aws::String> m_subnetIds;
217 bool m_subnetIdsHasBeenSet = false;
218
219 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
220 bool m_vpcSecurityGroupIdsHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace DocDBElastic
225} // 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