AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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/docdb/DocDB_EXPORTS.h>
11#include <aws/docdb/model/Subnet.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace DocDB {
22namespace Model {
23
30 public:
31 AWS_DOCDB_API DBSubnetGroup() = default;
32 AWS_DOCDB_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_DOCDB_API DBSubnetGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetDBSubnetGroupName() const { return m_dBSubnetGroupName; }
43 inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
44 template <typename DBSubnetGroupNameT = Aws::String>
45 void SetDBSubnetGroupName(DBSubnetGroupNameT&& value) {
46 m_dBSubnetGroupNameHasBeenSet = true;
47 m_dBSubnetGroupName = std::forward<DBSubnetGroupNameT>(value);
48 }
49 template <typename DBSubnetGroupNameT = Aws::String>
50 DBSubnetGroup& WithDBSubnetGroupName(DBSubnetGroupNameT&& value) {
51 SetDBSubnetGroupName(std::forward<DBSubnetGroupNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDBSubnetGroupDescription() const { return m_dBSubnetGroupDescription; }
61 inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
62 template <typename DBSubnetGroupDescriptionT = Aws::String>
63 void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) {
64 m_dBSubnetGroupDescriptionHasBeenSet = true;
65 m_dBSubnetGroupDescription = std::forward<DBSubnetGroupDescriptionT>(value);
66 }
67 template <typename DBSubnetGroupDescriptionT = Aws::String>
68 DBSubnetGroup& WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) {
69 SetDBSubnetGroupDescription(std::forward<DBSubnetGroupDescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetVpcId() const { return m_vpcId; }
79 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
80 template <typename VpcIdT = Aws::String>
81 void SetVpcId(VpcIdT&& value) {
82 m_vpcIdHasBeenSet = true;
83 m_vpcId = std::forward<VpcIdT>(value);
84 }
85 template <typename VpcIdT = Aws::String>
86 DBSubnetGroup& WithVpcId(VpcIdT&& value) {
87 SetVpcId(std::forward<VpcIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetSubnetGroupStatus() const { return m_subnetGroupStatus; }
97 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
98 template <typename SubnetGroupStatusT = Aws::String>
99 void SetSubnetGroupStatus(SubnetGroupStatusT&& value) {
100 m_subnetGroupStatusHasBeenSet = true;
101 m_subnetGroupStatus = std::forward<SubnetGroupStatusT>(value);
102 }
103 template <typename SubnetGroupStatusT = Aws::String>
104 DBSubnetGroup& WithSubnetGroupStatus(SubnetGroupStatusT&& value) {
105 SetSubnetGroupStatus(std::forward<SubnetGroupStatusT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
115 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
116 template <typename SubnetsT = Aws::Vector<Subnet>>
117 void SetSubnets(SubnetsT&& value) {
118 m_subnetsHasBeenSet = true;
119 m_subnets = std::forward<SubnetsT>(value);
120 }
121 template <typename SubnetsT = Aws::Vector<Subnet>>
122 DBSubnetGroup& WithSubnets(SubnetsT&& value) {
123 SetSubnets(std::forward<SubnetsT>(value));
124 return *this;
125 }
126 template <typename SubnetsT = Subnet>
127 DBSubnetGroup& AddSubnets(SubnetsT&& value) {
128 m_subnetsHasBeenSet = true;
129 m_subnets.emplace_back(std::forward<SubnetsT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetDBSubnetGroupArn() const { return m_dBSubnetGroupArn; }
139 inline bool DBSubnetGroupArnHasBeenSet() const { return m_dBSubnetGroupArnHasBeenSet; }
140 template <typename DBSubnetGroupArnT = Aws::String>
141 void SetDBSubnetGroupArn(DBSubnetGroupArnT&& value) {
142 m_dBSubnetGroupArnHasBeenSet = true;
143 m_dBSubnetGroupArn = std::forward<DBSubnetGroupArnT>(value);
144 }
145 template <typename DBSubnetGroupArnT = Aws::String>
146 DBSubnetGroup& WithDBSubnetGroupArn(DBSubnetGroupArnT&& value) {
147 SetDBSubnetGroupArn(std::forward<DBSubnetGroupArnT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::Vector<Aws::String>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
159 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
160 template <typename SupportedNetworkTypesT = Aws::Vector<Aws::String>>
161 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
162 m_supportedNetworkTypesHasBeenSet = true;
163 m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value);
164 }
165 template <typename SupportedNetworkTypesT = Aws::Vector<Aws::String>>
166 DBSubnetGroup& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
167 SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value));
168 return *this;
169 }
170 template <typename SupportedNetworkTypesT = Aws::String>
171 DBSubnetGroup& AddSupportedNetworkTypes(SupportedNetworkTypesT&& value) {
172 m_supportedNetworkTypesHasBeenSet = true;
173 m_supportedNetworkTypes.emplace_back(std::forward<SupportedNetworkTypesT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_dBSubnetGroupName;
179
180 Aws::String m_dBSubnetGroupDescription;
181
182 Aws::String m_vpcId;
183
184 Aws::String m_subnetGroupStatus;
185
186 Aws::Vector<Subnet> m_subnets;
187
188 Aws::String m_dBSubnetGroupArn;
189
190 Aws::Vector<Aws::String> m_supportedNetworkTypes;
191 bool m_dBSubnetGroupNameHasBeenSet = false;
192 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
193 bool m_vpcIdHasBeenSet = false;
194 bool m_subnetGroupStatusHasBeenSet = false;
195 bool m_subnetsHasBeenSet = false;
196 bool m_dBSubnetGroupArnHasBeenSet = false;
197 bool m_supportedNetworkTypesHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace DocDB
202} // namespace Aws
AWS_DOCDB_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_DOCDB_API DBSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDBSubnetGroupName(DBSubnetGroupNameT &&value)
AWS_DOCDB_API DBSubnetGroup()=default
const Aws::Vector< Aws::String > & GetSupportedNetworkTypes() const
bool DBSubnetGroupDescriptionHasBeenSet() const
DBSubnetGroup & WithSubnetGroupStatus(SubnetGroupStatusT &&value)
DBSubnetGroup & WithVpcId(VpcIdT &&value)
void SetSubnets(SubnetsT &&value)
const Aws::String & GetDBSubnetGroupArn() const
const Aws::String & GetDBSubnetGroupName() const
void SetSupportedNetworkTypes(SupportedNetworkTypesT &&value)
DBSubnetGroup & AddSubnets(SubnetsT &&value)
const Aws::String & GetVpcId() const
const Aws::String & GetDBSubnetGroupDescription() const
void SetSubnetGroupStatus(SubnetGroupStatusT &&value)
DBSubnetGroup & AddSupportedNetworkTypes(SupportedNetworkTypesT &&value)
DBSubnetGroup & WithDBSubnetGroupArn(DBSubnetGroupArnT &&value)
DBSubnetGroup & WithSubnets(SubnetsT &&value)
const Aws::String & GetSubnetGroupStatus() const
DBSubnetGroup & WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Subnet > & GetSubnets() const
void SetDBSubnetGroupArn(DBSubnetGroupArnT &&value)
DBSubnetGroup & WithSupportedNetworkTypes(SupportedNetworkTypesT &&value)
DBSubnetGroup & WithDBSubnetGroupName(DBSubnetGroupNameT &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
void SetVpcId(VpcIdT &&value)
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