AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DBShardGroup.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/ResponseMetadata.h>
12#include <aws/rds/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_RDS_API DBShardGroup() = default;
39 AWS_RDS_API DBShardGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_RDS_API DBShardGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline const Aws::String& GetDBShardGroupResourceId() const { return m_dBShardGroupResourceId; }
52 inline bool DBShardGroupResourceIdHasBeenSet() const { return m_dBShardGroupResourceIdHasBeenSet; }
53 template<typename DBShardGroupResourceIdT = Aws::String>
54 void SetDBShardGroupResourceId(DBShardGroupResourceIdT&& value) { m_dBShardGroupResourceIdHasBeenSet = true; m_dBShardGroupResourceId = std::forward<DBShardGroupResourceIdT>(value); }
55 template<typename DBShardGroupResourceIdT = Aws::String>
56 DBShardGroup& WithDBShardGroupResourceId(DBShardGroupResourceIdT&& value) { SetDBShardGroupResourceId(std::forward<DBShardGroupResourceIdT>(value)); return *this;}
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) { m_dBShardGroupIdentifierHasBeenSet = true; m_dBShardGroupIdentifier = std::forward<DBShardGroupIdentifierT>(value); }
67 template<typename DBShardGroupIdentifierT = Aws::String>
68 DBShardGroup& WithDBShardGroupIdentifier(DBShardGroupIdentifierT&& value) { SetDBShardGroupIdentifier(std::forward<DBShardGroupIdentifierT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
76 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
77 template<typename DBClusterIdentifierT = Aws::String>
78 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value); }
79 template<typename DBClusterIdentifierT = Aws::String>
80 DBShardGroup& WithDBClusterIdentifier(DBClusterIdentifierT&& value) { SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value)); return *this;}
82
84
88 inline double GetMaxACU() const { return m_maxACU; }
89 inline bool MaxACUHasBeenSet() const { return m_maxACUHasBeenSet; }
90 inline void SetMaxACU(double value) { m_maxACUHasBeenSet = true; m_maxACU = value; }
91 inline DBShardGroup& WithMaxACU(double value) { SetMaxACU(value); return *this;}
93
95
99 inline double GetMinACU() const { return m_minACU; }
100 inline bool MinACUHasBeenSet() const { return m_minACUHasBeenSet; }
101 inline void SetMinACU(double value) { m_minACUHasBeenSet = true; m_minACU = value; }
102 inline DBShardGroup& WithMinACU(double value) { SetMinACU(value); return *this;}
104
106
114 inline int GetComputeRedundancy() const { return m_computeRedundancy; }
115 inline bool ComputeRedundancyHasBeenSet() const { return m_computeRedundancyHasBeenSet; }
116 inline void SetComputeRedundancy(int value) { m_computeRedundancyHasBeenSet = true; m_computeRedundancy = value; }
117 inline DBShardGroup& WithComputeRedundancy(int value) { SetComputeRedundancy(value); return *this;}
119
121
124 inline const Aws::String& GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 template<typename StatusT = Aws::String>
127 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
128 template<typename StatusT = Aws::String>
129 DBShardGroup& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
131
133
146 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
147 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
148 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
149 inline DBShardGroup& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
151
153
156 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
157 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
158 template<typename EndpointT = Aws::String>
159 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
160 template<typename EndpointT = Aws::String>
161 DBShardGroup& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
163
165
168 inline const Aws::String& GetDBShardGroupArn() const { return m_dBShardGroupArn; }
169 inline bool DBShardGroupArnHasBeenSet() const { return m_dBShardGroupArnHasBeenSet; }
170 template<typename DBShardGroupArnT = Aws::String>
171 void SetDBShardGroupArn(DBShardGroupArnT&& value) { m_dBShardGroupArnHasBeenSet = true; m_dBShardGroupArn = std::forward<DBShardGroupArnT>(value); }
172 template<typename DBShardGroupArnT = Aws::String>
173 DBShardGroup& WithDBShardGroupArn(DBShardGroupArnT&& value) { SetDBShardGroupArn(std::forward<DBShardGroupArnT>(value)); return *this;}
175
177
178 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
179 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
180 template<typename TagListT = Aws::Vector<Tag>>
181 void SetTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList = std::forward<TagListT>(value); }
182 template<typename TagListT = Aws::Vector<Tag>>
183 DBShardGroup& WithTagList(TagListT&& value) { SetTagList(std::forward<TagListT>(value)); return *this;}
184 template<typename TagListT = Tag>
185 DBShardGroup& AddTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList.emplace_back(std::forward<TagListT>(value)); return *this; }
187
189
190 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
191 template<typename ResponseMetadataT = ResponseMetadata>
192 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
193 template<typename ResponseMetadataT = ResponseMetadata>
194 DBShardGroup& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
196 private:
197
198 Aws::String m_dBShardGroupResourceId;
199 bool m_dBShardGroupResourceIdHasBeenSet = false;
200
201 Aws::String m_dBShardGroupIdentifier;
202 bool m_dBShardGroupIdentifierHasBeenSet = false;
203
204 Aws::String m_dBClusterIdentifier;
205 bool m_dBClusterIdentifierHasBeenSet = false;
206
207 double m_maxACU{0.0};
208 bool m_maxACUHasBeenSet = false;
209
210 double m_minACU{0.0};
211 bool m_minACUHasBeenSet = false;
212
213 int m_computeRedundancy{0};
214 bool m_computeRedundancyHasBeenSet = false;
215
216 Aws::String m_status;
217 bool m_statusHasBeenSet = false;
218
219 bool m_publiclyAccessible{false};
220 bool m_publiclyAccessibleHasBeenSet = false;
221
222 Aws::String m_endpoint;
223 bool m_endpointHasBeenSet = false;
224
225 Aws::String m_dBShardGroupArn;
226 bool m_dBShardGroupArnHasBeenSet = false;
227
228 Aws::Vector<Tag> m_tagList;
229 bool m_tagListHasBeenSet = false;
230
231 ResponseMetadata m_responseMetadata;
232 bool m_responseMetadataHasBeenSet = true;
233 };
234
235} // namespace Model
236} // namespace RDS
237} // 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