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/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();
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 inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
51 inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::move(value); }
52 inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); }
53 inline DBSubnetGroup& WithDBSubnetGroupName(const Aws::String& value) { SetDBSubnetGroupName(value); return *this;}
54 inline DBSubnetGroup& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(std::move(value)); return *this;}
55 inline DBSubnetGroup& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;}
57
59
62 inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; }
63 inline bool DBSubnetGroupDescriptionHasBeenSet() const { return m_dBSubnetGroupDescriptionHasBeenSet; }
64 inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
65 inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::move(value); }
66 inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); }
68 inline DBSubnetGroup& WithDBSubnetGroupDescription(Aws::String&& value) { SetDBSubnetGroupDescription(std::move(value)); return *this;}
69 inline DBSubnetGroup& WithDBSubnetGroupDescription(const char* value) { SetDBSubnetGroupDescription(value); return *this;}
71
73
76 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
77 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
78 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
79 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
80 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
81 inline DBSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
82 inline DBSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
83 inline DBSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
85
87
90 inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; }
91 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
92 inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
93 inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::move(value); }
94 inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); }
95 inline DBSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;}
96 inline DBSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(std::move(value)); return *this;}
97 inline DBSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;}
99
101
104 inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
105 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
106 inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
107 inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
108 inline DBSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
109 inline DBSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(std::move(value)); return *this;}
110 inline DBSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
111 inline DBSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
113
115
118 inline const Aws::String& GetDBSubnetGroupArn() const{ return m_dBSubnetGroupArn; }
119 inline bool DBSubnetGroupArnHasBeenSet() const { return m_dBSubnetGroupArnHasBeenSet; }
120 inline void SetDBSubnetGroupArn(const Aws::String& value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn = value; }
121 inline void SetDBSubnetGroupArn(Aws::String&& value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn = std::move(value); }
122 inline void SetDBSubnetGroupArn(const char* value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn.assign(value); }
123 inline DBSubnetGroup& WithDBSubnetGroupArn(const Aws::String& value) { SetDBSubnetGroupArn(value); return *this;}
124 inline DBSubnetGroup& WithDBSubnetGroupArn(Aws::String&& value) { SetDBSubnetGroupArn(std::move(value)); return *this;}
125 inline DBSubnetGroup& WithDBSubnetGroupArn(const char* value) { SetDBSubnetGroupArn(value); return *this;}
127 private:
128
129 Aws::String m_dBSubnetGroupName;
130 bool m_dBSubnetGroupNameHasBeenSet = false;
131
132 Aws::String m_dBSubnetGroupDescription;
133 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
134
135 Aws::String m_vpcId;
136 bool m_vpcIdHasBeenSet = false;
137
138 Aws::String m_subnetGroupStatus;
139 bool m_subnetGroupStatusHasBeenSet = false;
140
141 Aws::Vector<Subnet> m_subnets;
142 bool m_subnetsHasBeenSet = false;
143
144 Aws::String m_dBSubnetGroupArn;
145 bool m_dBSubnetGroupArnHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace DocDB
150} // namespace Aws
AWS_DOCDB_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
DBSubnetGroup & WithDBSubnetGroupDescription(Aws::String &&value)
AWS_DOCDB_API DBSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDBSubnetGroupName(Aws::String &&value)
DBSubnetGroup & WithDBSubnetGroupDescription(const char *value)
bool DBSubnetGroupDescriptionHasBeenSet() const
DBSubnetGroup & AddSubnets(Subnet &&value)
void SetDBSubnetGroupArn(const Aws::String &value)
DBSubnetGroup & WithSubnetGroupStatus(const char *value)
void SetVpcId(const char *value)
void SetSubnetGroupStatus(const Aws::String &value)
const Aws::String & GetDBSubnetGroupArn() const
const Aws::String & GetDBSubnetGroupName() const
DBSubnetGroup & AddSubnets(const Subnet &value)
DBSubnetGroup & WithVpcId(Aws::String &&value)
void SetDBSubnetGroupDescription(Aws::String &&value)
const Aws::String & GetVpcId() const
const Aws::String & GetDBSubnetGroupDescription() const
void SetDBSubnetGroupDescription(const Aws::String &value)
void SetVpcId(const Aws::String &value)
DBSubnetGroup & WithDBSubnetGroupArn(const Aws::String &value)
DBSubnetGroup & WithDBSubnetGroupName(const char *value)
void SetSubnetGroupStatus(Aws::String &&value)
DBSubnetGroup & WithDBSubnetGroupName(Aws::String &&value)
void SetDBSubnetGroupName(const Aws::String &value)
DBSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
DBSubnetGroup & WithVpcId(const Aws::String &value)
const Aws::String & GetSubnetGroupStatus() const
void SetDBSubnetGroupDescription(const char *value)
void SetSubnets(Aws::Vector< Subnet > &&value)
void SetSubnets(const Aws::Vector< Subnet > &value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetVpcId(Aws::String &&value)
DBSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
DBSubnetGroup & WithDBSubnetGroupName(const Aws::String &value)
DBSubnetGroup & WithVpcId(const char *value)
void SetDBSubnetGroupArn(Aws::String &&value)
DBSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
const Aws::Vector< Subnet > & GetSubnets() const
void SetDBSubnetGroupArn(const char *value)
void SetSubnetGroupStatus(const char *value)
DBSubnetGroup & WithDBSubnetGroupDescription(const Aws::String &value)
void SetDBSubnetGroupName(const char *value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DBSubnetGroup & WithDBSubnetGroupArn(const char *value)
DBSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
DBSubnetGroup & WithDBSubnetGroupArn(Aws::String &&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