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/docdb/DocDB_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/docdb/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 DocDB
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_DOCDB_API DBSubnetGroup() = default;
37 AWS_DOCDB_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_DOCDB_API DBSubnetGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetDBSubnetGroupName() const { return m_dBSubnetGroupName; }
49 inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; }
50 template<typename DBSubnetGroupNameT = Aws::String>
51 void SetDBSubnetGroupName(DBSubnetGroupNameT&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::forward<DBSubnetGroupNameT>(value); }
52 template<typename DBSubnetGroupNameT = Aws::String>
53 DBSubnetGroup& WithDBSubnetGroupName(DBSubnetGroupNameT&& value) { SetDBSubnetGroupName(std::forward<DBSubnetGroupNameT>(value)); return *this;}
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) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::forward<DBSubnetGroupDescriptionT>(value); }
64 template<typename DBSubnetGroupDescriptionT = Aws::String>
65 DBSubnetGroup& WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { SetDBSubnetGroupDescription(std::forward<DBSubnetGroupDescriptionT>(value)); return *this;}
67
69
72 inline const Aws::String& GetVpcId() const { return m_vpcId; }
73 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
74 template<typename VpcIdT = Aws::String>
75 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
76 template<typename VpcIdT = Aws::String>
77 DBSubnetGroup& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetSubnetGroupStatus() const { return m_subnetGroupStatus; }
85 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
86 template<typename SubnetGroupStatusT = Aws::String>
87 void SetSubnetGroupStatus(SubnetGroupStatusT&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::forward<SubnetGroupStatusT>(value); }
88 template<typename SubnetGroupStatusT = Aws::String>
89 DBSubnetGroup& WithSubnetGroupStatus(SubnetGroupStatusT&& value) { SetSubnetGroupStatus(std::forward<SubnetGroupStatusT>(value)); return *this;}
91
93
96 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
97 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
98 template<typename SubnetsT = Aws::Vector<Subnet>>
99 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
100 template<typename SubnetsT = Aws::Vector<Subnet>>
101 DBSubnetGroup& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
102 template<typename SubnetsT = Subnet>
103 DBSubnetGroup& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
105
107
110 inline const Aws::String& GetDBSubnetGroupArn() const { return m_dBSubnetGroupArn; }
111 inline bool DBSubnetGroupArnHasBeenSet() const { return m_dBSubnetGroupArnHasBeenSet; }
112 template<typename DBSubnetGroupArnT = Aws::String>
113 void SetDBSubnetGroupArn(DBSubnetGroupArnT&& value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn = std::forward<DBSubnetGroupArnT>(value); }
114 template<typename DBSubnetGroupArnT = Aws::String>
115 DBSubnetGroup& WithDBSubnetGroupArn(DBSubnetGroupArnT&& value) { SetDBSubnetGroupArn(std::forward<DBSubnetGroupArnT>(value)); return *this;}
117 private:
118
119 Aws::String m_dBSubnetGroupName;
120 bool m_dBSubnetGroupNameHasBeenSet = false;
121
122 Aws::String m_dBSubnetGroupDescription;
123 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
124
125 Aws::String m_vpcId;
126 bool m_vpcIdHasBeenSet = false;
127
128 Aws::String m_subnetGroupStatus;
129 bool m_subnetGroupStatusHasBeenSet = false;
130
131 Aws::Vector<Subnet> m_subnets;
132 bool m_subnetsHasBeenSet = false;
133
134 Aws::String m_dBSubnetGroupArn;
135 bool m_dBSubnetGroupArnHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace DocDB
140} // 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
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
DBSubnetGroup & AddSubnets(SubnetsT &&value)
const Aws::String & GetVpcId() const
const Aws::String & GetDBSubnetGroupDescription() const
void SetSubnetGroupStatus(SubnetGroupStatusT &&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 & 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