AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBSubnetGroup.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/Subnet.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS {
22namespace Model {
23
32 public:
33 AWS_RDS_API DBSubnetGroup() = default;
34 AWS_RDS_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_RDS_API DBSubnetGroup& 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
44 inline const Aws::String& GetDBSubnetGroupName() const { return m_dBSubnetGroupName; }
45 inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
46 template <typename DBSubnetGroupNameT = Aws::String>
47 void SetDBSubnetGroupName(DBSubnetGroupNameT&& value) {
48 m_dBSubnetGroupNameHasBeenSet = true;
49 m_dBSubnetGroupName = std::forward<DBSubnetGroupNameT>(value);
50 }
51 template <typename DBSubnetGroupNameT = Aws::String>
52 DBSubnetGroup& WithDBSubnetGroupName(DBSubnetGroupNameT&& value) {
53 SetDBSubnetGroupName(std::forward<DBSubnetGroupNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDBSubnetGroupDescription() const { return m_dBSubnetGroupDescription; }
63 inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
64 template <typename DBSubnetGroupDescriptionT = Aws::String>
65 void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) {
66 m_dBSubnetGroupDescriptionHasBeenSet = true;
67 m_dBSubnetGroupDescription = std::forward<DBSubnetGroupDescriptionT>(value);
68 }
69 template <typename DBSubnetGroupDescriptionT = Aws::String>
70 DBSubnetGroup& WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) {
71 SetDBSubnetGroupDescription(std::forward<DBSubnetGroupDescriptionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetVpcId() const { return m_vpcId; }
81 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
82 template <typename VpcIdT = Aws::String>
83 void SetVpcId(VpcIdT&& value) {
84 m_vpcIdHasBeenSet = true;
85 m_vpcId = std::forward<VpcIdT>(value);
86 }
87 template <typename VpcIdT = Aws::String>
88 DBSubnetGroup& WithVpcId(VpcIdT&& value) {
89 SetVpcId(std::forward<VpcIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetSubnetGroupStatus() const { return m_subnetGroupStatus; }
99 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
100 template <typename SubnetGroupStatusT = Aws::String>
101 void SetSubnetGroupStatus(SubnetGroupStatusT&& value) {
102 m_subnetGroupStatusHasBeenSet = true;
103 m_subnetGroupStatus = std::forward<SubnetGroupStatusT>(value);
104 }
105 template <typename SubnetGroupStatusT = Aws::String>
106 DBSubnetGroup& WithSubnetGroupStatus(SubnetGroupStatusT&& value) {
107 SetSubnetGroupStatus(std::forward<SubnetGroupStatusT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
119 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
120 template <typename SubnetsT = Aws::Vector<Subnet>>
121 void SetSubnets(SubnetsT&& value) {
122 m_subnetsHasBeenSet = true;
123 m_subnets = std::forward<SubnetsT>(value);
124 }
125 template <typename SubnetsT = Aws::Vector<Subnet>>
126 DBSubnetGroup& WithSubnets(SubnetsT&& value) {
127 SetSubnets(std::forward<SubnetsT>(value));
128 return *this;
129 }
130 template <typename SubnetsT = Subnet>
131 DBSubnetGroup& AddSubnets(SubnetsT&& value) {
132 m_subnetsHasBeenSet = true;
133 m_subnets.emplace_back(std::forward<SubnetsT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetDBSubnetGroupArn() const { return m_dBSubnetGroupArn; }
143 inline bool DBSubnetGroupArnHasBeenSet() const { return m_dBSubnetGroupArnHasBeenSet; }
144 template <typename DBSubnetGroupArnT = Aws::String>
145 void SetDBSubnetGroupArn(DBSubnetGroupArnT&& value) {
146 m_dBSubnetGroupArnHasBeenSet = true;
147 m_dBSubnetGroupArn = std::forward<DBSubnetGroupArnT>(value);
148 }
149 template <typename DBSubnetGroupArnT = Aws::String>
150 DBSubnetGroup& WithDBSubnetGroupArn(DBSubnetGroupArnT&& value) {
151 SetDBSubnetGroupArn(std::forward<DBSubnetGroupArnT>(value));
152 return *this;
153 }
155
157
166 inline const Aws::Vector<Aws::String>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
167 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
168 template <typename SupportedNetworkTypesT = Aws::Vector<Aws::String>>
169 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
170 m_supportedNetworkTypesHasBeenSet = true;
171 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
172 }
173 template <typename SupportedNetworkTypesT = Aws::Vector<Aws::String>>
174 DBSubnetGroup& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
175 SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value));
176 return *this;
177 }
178 template <typename SupportedNetworkTypesT = Aws::String>
179 DBSubnetGroup& AddSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
180 m_supportedNetworkTypesHasBeenSet = true;
181 m_supportedNetworkTypes.emplace_back(std::forward<SupportedNetworkTypesT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_dBSubnetGroupName;
187
188 Aws::String m_dBSubnetGroupDescription;
189
190 Aws::String m_vpcId;
191
192 Aws::String m_subnetGroupStatus;
193
194 Aws::Vector<Subnet> m_subnets;
195
196 Aws::String m_dBSubnetGroupArn;
197
198 Aws::Vector<Aws::String> m_supportedNetworkTypes;
199 bool m_dBSubnetGroupNameHasBeenSet = false;
200 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
201 bool m_vpcIdHasBeenSet = false;
202 bool m_subnetGroupStatusHasBeenSet = false;
203 bool m_subnetsHasBeenSet = false;
204 bool m_dBSubnetGroupArnHasBeenSet = false;
205 bool m_supportedNetworkTypesHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace RDS
210} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDBSubnetGroupArn(DBSubnetGroupArnT &&value)
const Aws::String & GetVpcId() const
void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
AWS_RDS_API DBSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubnetGroupStatus(SubnetGroupStatusT &&value)
DBSubnetGroup & WithVpcId(VpcIdT &&value)
bool SupportedNetworkTypesHasBeenSet() const
void SetDBSubnetGroupName(DBSubnetGroupNameT &&value)
const Aws::Vector< Aws::String > & GetSupportedNetworkTypes() const
const Aws::String & GetSubnetGroupStatus() const
const Aws::String & GetDBSubnetGroupName() const
DBSubnetGroup & WithDBSubnetGroupArn(DBSubnetGroupArnT &&value)
const Aws::Vector< Subnet > & GetSubnets() const
AWS_RDS_API DBSubnetGroup()=default
DBSubnetGroup & WithSubnets(SubnetsT &&value)
AWS_RDS_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
DBSubnetGroup & WithDBSubnetGroupName(DBSubnetGroupNameT &&value)
DBSubnetGroup & WithSubnetGroupStatus(SubnetGroupStatusT &&value)
DBSubnetGroup & AddSupportedNetworkTypes(SupportedNetworkTypesT &&value)
void SetVpcId(VpcIdT &&value)
const Aws::String & GetDBSubnetGroupArn() const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DBSubnetGroup & AddSubnets(SubnetsT &&value)
DBSubnetGroup & WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
void SetSubnets(SubnetsT &&value)
DBSubnetGroup & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
const Aws::String & GetDBSubnetGroupDescription() const
bool DBSubnetGroupDescriptionHasBeenSet() 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