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/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() = default;
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 template<typename DBSubnetGroupNameT = Aws::String>
53 void SetDBSubnetGroupName(DBSubnetGroupNameT&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::forward<DBSubnetGroupNameT>(value); }
54 template<typename DBSubnetGroupNameT = Aws::String>
55 DBSubnetGroup& WithDBSubnetGroupName(DBSubnetGroupNameT&& value) { SetDBSubnetGroupName(std::forward<DBSubnetGroupNameT>(value)); return *this;}
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) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = std::forward<DBSubnetGroupDescriptionT>(value); }
66 template<typename DBSubnetGroupDescriptionT = Aws::String>
67 DBSubnetGroup& WithDBSubnetGroupDescription(DBSubnetGroupDescriptionT&& value) { SetDBSubnetGroupDescription(std::forward<DBSubnetGroupDescriptionT>(value)); return *this;}
69
71
74 inline const Aws::String& GetVpcId() const { return m_vpcId; }
75 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
76 template<typename VpcIdT = Aws::String>
77 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
78 template<typename VpcIdT = Aws::String>
79 DBSubnetGroup& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetSubnetGroupStatus() const { return m_subnetGroupStatus; }
87 inline bool SubnetGroupStatusHasBeenSet() const { return m_subnetGroupStatusHasBeenSet; }
88 template<typename SubnetGroupStatusT = Aws::String>
89 void SetSubnetGroupStatus(SubnetGroupStatusT&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = std::forward<SubnetGroupStatusT>(value); }
90 template<typename SubnetGroupStatusT = Aws::String>
91 DBSubnetGroup& WithSubnetGroupStatus(SubnetGroupStatusT&& value) { SetSubnetGroupStatus(std::forward<SubnetGroupStatusT>(value)); return *this;}
93
95
98 inline const Aws::Vector<Subnet>& GetSubnets() const { return m_subnets; }
99 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
100 template<typename SubnetsT = Aws::Vector<Subnet>>
101 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
102 template<typename SubnetsT = Aws::Vector<Subnet>>
103 DBSubnetGroup& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
104 template<typename SubnetsT = Subnet>
105 DBSubnetGroup& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
107
109
112 inline const Aws::String& GetDBSubnetGroupArn() const { return m_dBSubnetGroupArn; }
113 inline bool DBSubnetGroupArnHasBeenSet() const { return m_dBSubnetGroupArnHasBeenSet; }
114 template<typename DBSubnetGroupArnT = Aws::String>
115 void SetDBSubnetGroupArn(DBSubnetGroupArnT&& value) { m_dBSubnetGroupArnHasBeenSet = true; m_dBSubnetGroupArn = std::forward<DBSubnetGroupArnT>(value); }
116 template<typename DBSubnetGroupArnT = Aws::String>
117 DBSubnetGroup& WithDBSubnetGroupArn(DBSubnetGroupArnT&& value) { SetDBSubnetGroupArn(std::forward<DBSubnetGroupArnT>(value)); return *this;}
119 private:
120
121 Aws::String m_dBSubnetGroupName;
122 bool m_dBSubnetGroupNameHasBeenSet = false;
123
124 Aws::String m_dBSubnetGroupDescription;
125 bool m_dBSubnetGroupDescriptionHasBeenSet = false;
126
127 Aws::String m_vpcId;
128 bool m_vpcIdHasBeenSet = false;
129
130 Aws::String m_subnetGroupStatus;
131 bool m_subnetGroupStatusHasBeenSet = false;
132
133 Aws::Vector<Subnet> m_subnets;
134 bool m_subnetsHasBeenSet = false;
135
136 Aws::String m_dBSubnetGroupArn;
137 bool m_dBSubnetGroupArnHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace Neptune
142} // 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