AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DBSubnetGroup.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/Subnet.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace RDS
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_RDS_API DBSubnetGroup() = default;
39 AWS_RDS_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_RDS_API DBSubnetGroup& 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
50 inline const Aws::String& GetDBSubnetGroupName() const { return m_dBSubnetGroupName; }
51 inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
52 template<typename DBSubnetGroupNameT = Aws::String>
53 void SetDBSubnetGroupName(DBSubnetGroupNameT&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::forward<DBSubnetGroupNameT>(value); }
54 template<typename DBSubnetGroupNameT = Aws::String>
55 DBSubnetGroup& WithDBSubnetGroupName(DBSubnetGroupNameT&& value) { SetDBSubnetGroupName(std::forward<DBSubnetGroupNameT>(value)); return *this;}
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) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::forward<DBSubnetGroupDescriptionT>(value); }
66 template<typename DBSubnetGroupDescriptionT = Aws::String>
67 DBSubnetGroup& WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { SetDBSubnetGroupDescription(std::forward<DBSubnetGroupDescriptionT>(value)); return *this;}
69
71
74 inline const Aws::String& GetVpcId() const { return m_vpcId; }
75 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
76 template<typename VpcIdT = Aws::String>
77 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
78 template<typename VpcIdT = Aws::String>
79 DBSubnetGroup& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetSubnetGroupStatus() const { return m_subnetGroupStatus; }
87 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
88 template<typename SubnetGroupStatusT = Aws::String>
89 void SetSubnetGroupStatus(SubnetGroupStatusT&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::forward<SubnetGroupStatusT>(value); }
90 template<typename SubnetGroupStatusT = Aws::String>
91 DBSubnetGroup& WithSubnetGroupStatus(SubnetGroupStatusT&& value) { SetSubnetGroupStatus(std::forward<SubnetGroupStatusT>(value)); return *this;}
93
95
100 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
101 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
102 template<typename SubnetsT = Aws::Vector<Subnet>>
103 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
104 template<typename SubnetsT = Aws::Vector<Subnet>>
105 DBSubnetGroup& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
106 template<typename SubnetsT = Subnet>
107 DBSubnetGroup& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
109
111
114 inline const Aws::String& GetDBSubnetGroupArn() const { return m_dBSubnetGroupArn; }
115 inline bool DBSubnetGroupArnHasBeenSet() const { return m_dBSubnetGroupArnHasBeenSet; }
116 template<typename DBSubnetGroupArnT = Aws::String>
117 void SetDBSubnetGroupArn(DBSubnetGroupArnT&& value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn = std::forward<DBSubnetGroupArnT>(value); }
118 template<typename DBSubnetGroupArnT = Aws::String>
119 DBSubnetGroup& WithDBSubnetGroupArn(DBSubnetGroupArnT&& value) { SetDBSubnetGroupArn(std::forward<DBSubnetGroupArnT>(value)); return *this;}
121
123
132 inline const Aws::Vector<Aws::String>& GetSupportedNetworkTypes() const { return m_supportedNetworkTypes; }
133 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
134 template<typename SupportedNetworkTypesT = Aws::Vector<Aws::String>>
135 void SetSupportedNetworkTypes(SupportedNetworkTypesT&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = std::forward<SupportedNetworkTypesT>(value); }
136 template<typename SupportedNetworkTypesT = Aws::Vector<Aws::String>>
137 DBSubnetGroup& WithSupportedNetworkTypes(SupportedNetworkTypesT&& value) { SetSupportedNetworkTypes(std::forward<SupportedNetworkTypesT>(value)); return *this;}
138 template<typename SupportedNetworkTypesT = Aws::String>
139 DBSubnetGroup& AddSupportedNetworkTypes(SupportedNetworkTypesT&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.emplace_back(std::forward<SupportedNetworkTypesT>(value)); return *this; }
141 private:
142
143 Aws::String m_dBSubnetGroupName;
144 bool m_dBSubnetGroupNameHasBeenSet = false;
145
146 Aws::String m_dBSubnetGroupDescription;
147 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
148
149 Aws::String m_vpcId;
150 bool m_vpcIdHasBeenSet = false;
151
152 Aws::String m_subnetGroupStatus;
153 bool m_subnetGroupStatusHasBeenSet = false;
154
155 Aws::Vector<Subnet> m_subnets;
156 bool m_subnetsHasBeenSet = false;
157
158 Aws::String m_dBSubnetGroupArn;
159 bool m_dBSubnetGroupArnHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_supportedNetworkTypes;
162 bool m_supportedNetworkTypesHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace RDS
167} // 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