AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBShardGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/ResponseMetadata.h>
12#include <aws/rds/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS {
23namespace Model {
24
32 public:
33 AWS_RDS_API DBShardGroup() = default;
34 AWS_RDS_API DBShardGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_RDS_API DBShardGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
45 inline const Aws::String& GetDBShardGroupResourceId() const { return m_dBShardGroupResourceId; }
46 inline bool DBShardGroupResourceIdHasBeenSet() const { return m_dBShardGroupResourceIdHasBeenSet; }
47 template <typename DBShardGroupResourceIdT = Aws::String>
48 void SetDBShardGroupResourceId(DBShardGroupResourceIdT&& value) {
49 m_dBShardGroupResourceIdHasBeenSet = true;
50 m_dBShardGroupResourceId = std::forward<DBShardGroupResourceIdT>(value);
51 }
52 template <typename DBShardGroupResourceIdT = Aws::String>
53 DBShardGroup& WithDBShardGroupResourceId(DBShardGroupResourceIdT&& value) {
54 SetDBShardGroupResourceId(std::forward<DBShardGroupResourceIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDBShardGroupIdentifier() const { return m_dBShardGroupIdentifier; }
64 inline bool DBShardGroupIdentifierHasBeenSet() const { return m_dBShardGroupIdentifierHasBeenSet; }
65 template <typename DBShardGroupIdentifierT = Aws::String>
66 void SetDBShardGroupIdentifier(DBShardGroupIdentifierT&& value) {
67 m_dBShardGroupIdentifierHasBeenSet = true;
68 m_dBShardGroupIdentifier = std::forward<DBShardGroupIdentifierT>(value);
69 }
70 template <typename DBShardGroupIdentifierT = Aws::String>
71 DBShardGroup& WithDBShardGroupIdentifier(DBShardGroupIdentifierT&& value) {
72 SetDBShardGroupIdentifier(std::forward<DBShardGroupIdentifierT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
82 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
83 template <typename DBClusterIdentifierT = Aws::String>
84 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) {
85 m_dBClusterIdentifierHasBeenSet = true;
86 m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value);
87 }
88 template <typename DBClusterIdentifierT = Aws::String>
89 DBShardGroup& WithDBClusterIdentifier(DBClusterIdentifierT&& value) {
90 SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value));
91 return *this;
92 }
94
96
100 inline double GetMaxACU() const { return m_maxACU; }
101 inline bool MaxACUHasBeenSet() const { return m_maxACUHasBeenSet; }
102 inline void SetMaxACU(double value) {
103 m_maxACUHasBeenSet = true;
104 m_maxACU = value;
105 }
106 inline DBShardGroup& WithMaxACU(double value) {
107 SetMaxACU(value);
108 return *this;
109 }
111
113
117 inline double GetMinACU() const { return m_minACU; }
118 inline bool MinACUHasBeenSet() const { return m_minACUHasBeenSet; }
119 inline void SetMinACU(double value) {
120 m_minACUHasBeenSet = true;
121 m_minACU = value;
122 }
123 inline DBShardGroup& WithMinACU(double value) {
124 SetMinACU(value);
125 return *this;
126 }
128
130
138 inline int GetComputeRedundancy() const { return m_computeRedundancy; }
139 inline bool ComputeRedundancyHasBeenSet() const { return m_computeRedundancyHasBeenSet; }
140 inline void SetComputeRedundancy(int value) {
141 m_computeRedundancyHasBeenSet = true;
142 m_computeRedundancy = value;
143 }
146 return *this;
147 }
149
151
154 inline const Aws::String& GetStatus() const { return m_status; }
155 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
156 template <typename StatusT = Aws::String>
157 void SetStatus(StatusT&& value) {
158 m_statusHasBeenSet = true;
159 m_status = std::forward<StatusT>(value);
160 }
161 template <typename StatusT = Aws::String>
162 DBShardGroup& WithStatus(StatusT&& value) {
163 SetStatus(std::forward<StatusT>(value));
164 return *this;
165 }
167
169
182 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
183 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
184 inline void SetPubliclyAccessible(bool value) {
185 m_publiclyAccessibleHasBeenSet = true;
186 m_publiclyAccessible = value;
187 }
190 return *this;
191 }
193
195
198 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
199 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
200 template <typename EndpointT = Aws::String>
201 void SetEndpoint(EndpointT&& value) {
202 m_endpointHasBeenSet = true;
203 m_endpoint = std::forward<EndpointT>(value);
204 }
205 template <typename EndpointT = Aws::String>
206 DBShardGroup& WithEndpoint(EndpointT&& value) {
207 SetEndpoint(std::forward<EndpointT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::String& GetDBShardGroupArn() const { return m_dBShardGroupArn; }
217 inline bool DBShardGroupArnHasBeenSet() const { return m_dBShardGroupArnHasBeenSet; }
218 template <typename DBShardGroupArnT = Aws::String>
219 void SetDBShardGroupArn(DBShardGroupArnT&& value) {
220 m_dBShardGroupArnHasBeenSet = true;
221 m_dBShardGroupArn = std::forward<DBShardGroupArnT>(value);
222 }
223 template <typename DBShardGroupArnT = Aws::String>
224 DBShardGroup& WithDBShardGroupArn(DBShardGroupArnT&& value) {
225 SetDBShardGroupArn(std::forward<DBShardGroupArnT>(value));
226 return *this;
227 }
229
231
232 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
233 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
234 template <typename TagListT = Aws::Vector<Tag>>
235 void SetTagList(TagListT&& value) {
236 m_tagListHasBeenSet = true;
237 m_tagList = std::forward<TagListT>(value);
238 }
239 template <typename TagListT = Aws::Vector<Tag>>
240 DBShardGroup& WithTagList(TagListT&& value) {
241 SetTagList(std::forward<TagListT>(value));
242 return *this;
243 }
244 template <typename TagListT = Tag>
245 DBShardGroup& AddTagList(TagListT&& value) {
246 m_tagListHasBeenSet = true;
247 m_tagList.emplace_back(std::forward<TagListT>(value));
248 return *this;
249 }
251
253
254 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
255 template <typename ResponseMetadataT = ResponseMetadata>
256 void SetResponseMetadata(ResponseMetadataT&& value) {
257 m_responseMetadataHasBeenSet = true;
258 m_responseMetadata = std::forward<ResponseMetadataT>(value);
259 }
260 template <typename ResponseMetadataT = ResponseMetadata>
261 DBShardGroup& WithResponseMetadata(ResponseMetadataT&& value) {
262 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
263 return *this;
264 }
266 private:
267 Aws::String m_dBShardGroupResourceId;
268
269 Aws::String m_dBShardGroupIdentifier;
270
271 Aws::String m_dBClusterIdentifier;
272
273 double m_maxACU{0.0};
274
275 double m_minACU{0.0};
276
277 int m_computeRedundancy{0};
278
279 Aws::String m_status;
280
281 bool m_publiclyAccessible{false};
282
283 Aws::String m_endpoint;
284
285 Aws::String m_dBShardGroupArn;
286
287 Aws::Vector<Tag> m_tagList;
288
289 ResponseMetadata m_responseMetadata;
290 bool m_dBShardGroupResourceIdHasBeenSet = false;
291 bool m_dBShardGroupIdentifierHasBeenSet = false;
292 bool m_dBClusterIdentifierHasBeenSet = false;
293 bool m_maxACUHasBeenSet = false;
294 bool m_minACUHasBeenSet = false;
295 bool m_computeRedundancyHasBeenSet = false;
296 bool m_statusHasBeenSet = false;
297 bool m_publiclyAccessibleHasBeenSet = false;
298 bool m_endpointHasBeenSet = false;
299 bool m_dBShardGroupArnHasBeenSet = false;
300 bool m_tagListHasBeenSet = false;
301 bool m_responseMetadataHasBeenSet = true;
302};
303
304} // namespace Model
305} // namespace RDS
306} // namespace Aws
void SetDBShardGroupIdentifier(DBShardGroupIdentifierT &&value)
DBShardGroup & WithMaxACU(double value)
void SetEndpoint(EndpointT &&value)
bool DBShardGroupResourceIdHasBeenSet() const
AWS_RDS_API DBShardGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool PubliclyAccessibleHasBeenSet() const
DBShardGroup & WithResponseMetadata(ResponseMetadataT &&value)
DBShardGroup & WithDBShardGroupArn(DBShardGroupArnT &&value)
const Aws::String & GetDBShardGroupIdentifier() const
bool ComputeRedundancyHasBeenSet() const
DBShardGroup & WithDBShardGroupIdentifier(DBShardGroupIdentifierT &&value)
DBShardGroup & WithPubliclyAccessible(bool value)
AWS_RDS_API DBShardGroup()=default
DBShardGroup & WithMinACU(double value)
bool DBShardGroupIdentifierHasBeenSet() const
void SetResponseMetadata(ResponseMetadataT &&value)
const ResponseMetadata & GetResponseMetadata() const
void SetPubliclyAccessible(bool value)
void SetStatus(StatusT &&value)
void SetMaxACU(double value)
const Aws::String & GetEndpoint() const
DBShardGroup & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
DBShardGroup & WithComputeRedundancy(int value)
DBShardGroup & AddTagList(TagListT &&value)
void SetDBShardGroupArn(DBShardGroupArnT &&value)
void SetTagList(TagListT &&value)
DBShardGroup & WithEndpoint(EndpointT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDBClusterIdentifier() const
DBShardGroup & WithStatus(StatusT &&value)
bool DBClusterIdentifierHasBeenSet() const
const Aws::String & GetDBShardGroupArn() const
DBShardGroup & WithDBShardGroupResourceId(DBShardGroupResourceIdT &&value)
DBShardGroup & WithTagList(TagListT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDBShardGroupResourceId(DBShardGroupResourceIdT &&value)
void SetDBClusterIdentifier(DBClusterIdentifierT &&value)
const Aws::String & GetStatus() const
const Aws::Vector< Tag > & GetTagList() const
AWS_RDS_API DBShardGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMinACU(double value)
void SetComputeRedundancy(int value)
const Aws::String & GetDBShardGroupResourceId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream