AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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/neptune/Neptune_EXPORTS.h>
11#include <aws/neptune/model/Subnet.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Neptune {
22namespace Model {
23
32 public:
33 AWS_NEPTUNE_API DBSubnetGroup() = default;
34 AWS_NEPTUNE_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_NEPTUNE_API DBSubnetGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_NEPTUNE_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
116 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
117 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
118 template <typename SubnetsT = Aws::Vector<Subnet>>
119 void SetSubnets(SubnetsT&& value) {
120 m_subnetsHasBeenSet = true;
121 m_subnets = std::forward<SubnetsT>(value);
122 }
123 template <typename SubnetsT = Aws::Vector<Subnet>>
124 DBSubnetGroup& WithSubnets(SubnetsT&& value) {
125 SetSubnets(std::forward<SubnetsT>(value));
126 return *this;
127 }
128 template <typename SubnetsT = Subnet>
129 DBSubnetGroup& AddSubnets(SubnetsT&& value) {
130 m_subnetsHasBeenSet = true;
131 m_subnets.emplace_back(std::forward<SubnetsT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetDBSubnetGroupArn() const { return m_dBSubnetGroupArn; }
141 inline bool DBSubnetGroupArnHasBeenSet() const { return m_dBSubnetGroupArnHasBeenSet; }
142 template <typename DBSubnetGroupArnT = Aws::String>
143 void SetDBSubnetGroupArn(DBSubnetGroupArnT&& value) {
144 m_dBSubnetGroupArnHasBeenSet = true;
145 m_dBSubnetGroupArn = std::forward<DBSubnetGroupArnT>(value);
146 }
147 template <typename DBSubnetGroupArnT = Aws::String>
148 DBSubnetGroup& WithDBSubnetGroupArn(DBSubnetGroupArnT&& value) {
149 SetDBSubnetGroupArn(std::forward<DBSubnetGroupArnT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_dBSubnetGroupName;
155
156 Aws::String m_dBSubnetGroupDescription;
157
158 Aws::String m_vpcId;
159
160 Aws::String m_subnetGroupStatus;
161
162 Aws::Vector<Subnet> m_subnets;
163
164 Aws::String m_dBSubnetGroupArn;
165 bool m_dBSubnetGroupNameHasBeenSet = false;
166 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
167 bool m_vpcIdHasBeenSet = false;
168 bool m_subnetGroupStatusHasBeenSet = false;
169 bool m_subnetsHasBeenSet = false;
170 bool m_dBSubnetGroupArnHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace Neptune
175} // namespace Aws
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_NEPTUNE_API DBSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDBSubnetGroupName() const
const Aws::String & GetSubnetGroupStatus() const
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DBSubnetGroup & WithDBSubnetGroupName(DBSubnetGroupNameT &&value)
DBSubnetGroup & WithSubnetGroupStatus(SubnetGroupStatusT &&value)
const Aws::String & GetDBSubnetGroupDescription() const
DBSubnetGroup & WithSubnets(SubnetsT &&value)
DBSubnetGroup & WithVpcId(VpcIdT &&value)
AWS_NEPTUNE_API DBSubnetGroup()=default
DBSubnetGroup & WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&value)
const Aws::String & GetDBSubnetGroupArn() const
DBSubnetGroup & AddSubnets(SubnetsT &&value)
void SetSubnets(SubnetsT &&value)
void SetDBSubnetGroupArn(DBSubnetGroupArnT &&value)
const Aws::Vector< Subnet > & GetSubnets() const
const Aws::String & GetVpcId() const
void SetDBSubnetGroupName(DBSubnetGroupNameT &&value)
DBSubnetGroup & WithDBSubnetGroupArn(DBSubnetGroupArnT &&value)
void SetSubnetGroupStatus(SubnetGroupStatusT &&value)
AWS_NEPTUNE_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDBSubnetGroupDescription(DBSubnetGroupDescriptionT &&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