AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
53 inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::move(value); }
54 inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); }
55 inline DBSubnetGroup& WithDBSubnetGroupName(const Aws::String& value) { SetDBSubnetGroupName(value); return *this;}
56 inline DBSubnetGroup& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(std::move(value)); return *this;}
57 inline DBSubnetGroup& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;}
59
61
64 inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; }
65 inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
66 inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
67 inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::move(value); }
68 inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); }
70 inline DBSubnetGroup& WithDBSubnetGroupDescription(Aws::String&& value) { SetDBSubnetGroupDescription(std::move(value)); return *this;}
71 inline DBSubnetGroup& WithDBSubnetGroupDescription(const char* value) { SetDBSubnetGroupDescription(value); return *this;}
73
75
78 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
79 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
80 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
81 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
82 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
83 inline DBSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
84 inline DBSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
85 inline DBSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
87
89
92 inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; }
93 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
94 inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
95 inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::move(value); }
96 inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); }
97 inline DBSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;}
98 inline DBSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(std::move(value)); return *this;}
99 inline DBSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;}
101
103
106 inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
107 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
108 inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
109 inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
110 inline DBSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
111 inline DBSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(std::move(value)); return *this;}
112 inline DBSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
113 inline DBSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
115
117
120 inline const Aws::String& GetDBSubnetGroupArn() const{ return m_dBSubnetGroupArn; }
121 inline bool DBSubnetGroupArnHasBeenSet() const { return m_dBSubnetGroupArnHasBeenSet; }
122 inline void SetDBSubnetGroupArn(const Aws::String& value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn = value; }
123 inline void SetDBSubnetGroupArn(Aws::String&& value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn = std::move(value); }
124 inline void SetDBSubnetGroupArn(const char* value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn.assign(value); }
125 inline DBSubnetGroup& WithDBSubnetGroupArn(const Aws::String& value) { SetDBSubnetGroupArn(value); return *this;}
126 inline DBSubnetGroup& WithDBSubnetGroupArn(Aws::String&& value) { SetDBSubnetGroupArn(std::move(value)); return *this;}
127 inline DBSubnetGroup& WithDBSubnetGroupArn(const char* value) { SetDBSubnetGroupArn(value); return *this;}
129
131
140 inline const Aws::Vector<Aws::String>& GetSupportedNetworkTypes() const{ return m_supportedNetworkTypes; }
141 inline bool SupportedNetworkTypesHasBeenSet() const { return m_supportedNetworkTypesHasBeenSet; }
142 inline void SetSupportedNetworkTypes(const Aws::Vector<Aws::String>& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = value; }
143 inline void SetSupportedNetworkTypes(Aws::Vector<Aws::String>&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes = std::move(value); }
146 inline DBSubnetGroup& AddSupportedNetworkTypes(const Aws::String& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(value); return *this; }
147 inline DBSubnetGroup& AddSupportedNetworkTypes(Aws::String&& value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(std::move(value)); return *this; }
148 inline DBSubnetGroup& AddSupportedNetworkTypes(const char* value) { m_supportedNetworkTypesHasBeenSet = true; m_supportedNetworkTypes.push_back(value); return *this; }
150 private:
151
152 Aws::String m_dBSubnetGroupName;
153 bool m_dBSubnetGroupNameHasBeenSet = false;
154
155 Aws::String m_dBSubnetGroupDescription;
156 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
157
158 Aws::String m_vpcId;
159 bool m_vpcIdHasBeenSet = false;
160
161 Aws::String m_subnetGroupStatus;
162 bool m_subnetGroupStatusHasBeenSet = false;
163
164 Aws::Vector<Subnet> m_subnets;
165 bool m_subnetsHasBeenSet = false;
166
167 Aws::String m_dBSubnetGroupArn;
168 bool m_dBSubnetGroupArnHasBeenSet = false;
169
170 Aws::Vector<Aws::String> m_supportedNetworkTypes;
171 bool m_supportedNetworkTypesHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace RDS
176} // namespace Aws
DBSubnetGroup & WithDBSubnetGroupName(const Aws::String &value)
DBSubnetGroup & WithDBSubnetGroupDescription(const char *value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDBSubnetGroupArn(const char *value)
DBSubnetGroup & AddSubnets(Subnet &&value)
DBSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
const Aws::String & GetVpcId() const
DBSubnetGroup & WithDBSubnetGroupDescription(Aws::String &&value)
void SetDBSubnetGroupName(const char *value)
DBSubnetGroup & WithDBSubnetGroupName(Aws::String &&value)
AWS_RDS_API DBSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DBSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
DBSubnetGroup & WithDBSubnetGroupArn(const char *value)
void SetSubnets(const Aws::Vector< Subnet > &value)
DBSubnetGroup & AddSupportedNetworkTypes(const char *value)
DBSubnetGroup & WithSupportedNetworkTypes(Aws::Vector< Aws::String > &&value)
DBSubnetGroup & WithVpcId(const Aws::String &value)
DBSubnetGroup & AddSupportedNetworkTypes(Aws::String &&value)
void SetDBSubnetGroupArn(Aws::String &&value)
bool SupportedNetworkTypesHasBeenSet() const
const Aws::Vector< Aws::String > & GetSupportedNetworkTypes() const
const Aws::String & GetSubnetGroupStatus() const
void SetDBSubnetGroupDescription(Aws::String &&value)
const Aws::String & GetDBSubnetGroupName() const
DBSubnetGroup & AddSupportedNetworkTypes(const Aws::String &value)
void SetDBSubnetGroupDescription(const Aws::String &value)
DBSubnetGroup & WithSupportedNetworkTypes(const Aws::Vector< Aws::String > &value)
void SetSupportedNetworkTypes(const Aws::Vector< Aws::String > &value)
void SetVpcId(Aws::String &&value)
void SetSubnetGroupStatus(Aws::String &&value)
const Aws::Vector< Subnet > & GetSubnets() const
void SetSubnetGroupStatus(const Aws::String &value)
AWS_RDS_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVpcId(const char *value)
void SetDBSubnetGroupDescription(const char *value)
const Aws::String & GetDBSubnetGroupArn() const
DBSubnetGroup & WithVpcId(const char *value)
DBSubnetGroup & WithVpcId(Aws::String &&value)
void SetDBSubnetGroupName(Aws::String &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSubnets(Aws::Vector< Subnet > &&value)
DBSubnetGroup & WithDBSubnetGroupArn(Aws::String &&value)
void SetSupportedNetworkTypes(Aws::Vector< Aws::String > &&value)
void SetDBSubnetGroupArn(const Aws::String &value)
DBSubnetGroup & WithSubnetGroupStatus(const char *value)
DBSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
void SetSubnetGroupStatus(const char *value)
DBSubnetGroup & WithDBSubnetGroupArn(const Aws::String &value)
DBSubnetGroup & WithDBSubnetGroupName(const char *value)
DBSubnetGroup & AddSubnets(const Subnet &value)
const Aws::String & GetDBSubnetGroupDescription() const
DBSubnetGroup & WithDBSubnetGroupDescription(const Aws::String &value)
void SetVpcId(const Aws::String &value)
DBSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
void SetDBSubnetGroupName(const Aws::String &value)
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