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/neptune/Neptune_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/neptune/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 Neptune
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_NEPTUNE_API DBSubnetGroup();
39 AWS_NEPTUNE_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_NEPTUNE_API DBSubnetGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_NEPTUNE_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 private:
130
131 Aws::String m_dBSubnetGroupName;
132 bool m_dBSubnetGroupNameHasBeenSet = false;
133
134 Aws::String m_dBSubnetGroupDescription;
135 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
136
137 Aws::String m_vpcId;
138 bool m_vpcIdHasBeenSet = false;
139
140 Aws::String m_subnetGroupStatus;
141 bool m_subnetGroupStatusHasBeenSet = false;
142
143 Aws::Vector<Subnet> m_subnets;
144 bool m_subnetsHasBeenSet = false;
145
146 Aws::String m_dBSubnetGroupArn;
147 bool m_dBSubnetGroupArnHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Neptune
152} // namespace Aws
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DBSubnetGroup & WithSubnetGroupStatus(const char *value)
AWS_NEPTUNE_API DBSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDBSubnetGroupName(const char *value)
DBSubnetGroup & WithDBSubnetGroupName(const Aws::String &value)
DBSubnetGroup & WithVpcId(const char *value)
void SetSubnets(const Aws::Vector< Subnet > &value)
void SetVpcId(const char *value)
const Aws::String & GetDBSubnetGroupName() const
void SetDBSubnetGroupName(Aws::String &&value)
DBSubnetGroup & WithDBSubnetGroupDescription(Aws::String &&value)
void SetDBSubnetGroupDescription(const char *value)
void SetVpcId(Aws::String &&value)
void SetSubnetGroupStatus(const char *value)
DBSubnetGroup & WithDBSubnetGroupArn(Aws::String &&value)
DBSubnetGroup & WithDBSubnetGroupArn(const char *value)
const Aws::String & GetSubnetGroupStatus() const
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DBSubnetGroup & WithDBSubnetGroupName(const char *value)
const Aws::String & GetDBSubnetGroupDescription() const
DBSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
DBSubnetGroup & WithDBSubnetGroupDescription(const Aws::String &value)
const Aws::String & GetDBSubnetGroupArn() const
void SetDBSubnetGroupDescription(const Aws::String &value)
void SetDBSubnetGroupArn(Aws::String &&value)
DBSubnetGroup & WithDBSubnetGroupName(Aws::String &&value)
DBSubnetGroup & WithVpcId(const Aws::String &value)
void SetDBSubnetGroupArn(const char *value)
DBSubnetGroup & AddSubnets(Subnet &&value)
void SetVpcId(const Aws::String &value)
void SetSubnetGroupStatus(const Aws::String &value)
const Aws::Vector< Subnet > & GetSubnets() const
DBSubnetGroup & WithDBSubnetGroupDescription(const char *value)
DBSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
const Aws::String & GetVpcId() const
void SetSubnets(Aws::Vector< Subnet > &&value)
DBSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
DBSubnetGroup & AddSubnets(const Subnet &value)
DBSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
DBSubnetGroup & WithDBSubnetGroupArn(const Aws::String &value)
DBSubnetGroup & WithVpcId(Aws::String &&value)
void SetDBSubnetGroupName(const Aws::String &value)
void SetDBSubnetGroupDescription(Aws::String &&value)
AWS_NEPTUNE_API DBSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubnetGroupStatus(Aws::String &&value)
void SetDBSubnetGroupArn(const 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