AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterSubnetGroup.h
1
6#pragma once
7#include <aws/redshift/Redshift_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/redshift/model/Subnet.h>
12#include <aws/redshift/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_REDSHIFT_API ClusterSubnetGroup();
38 AWS_REDSHIFT_API ClusterSubnetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API ClusterSubnetGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; }
50 inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; }
51 inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
52 inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = std::move(value); }
53 inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); }
55 inline ClusterSubnetGroup& WithClusterSubnetGroupName(Aws::String&& value) { SetClusterSubnetGroupName(std::move(value)); return *this;}
56 inline ClusterSubnetGroup& WithClusterSubnetGroupName(const char* value) { SetClusterSubnetGroupName(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline ClusterSubnetGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline ClusterSubnetGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline ClusterSubnetGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
78 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
79 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
80 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
81 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
82 inline ClusterSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
83 inline ClusterSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
84 inline ClusterSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
86
88
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 ClusterSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;}
98 inline ClusterSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(std::move(value)); return *this;}
99 inline ClusterSubnetGroup& 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 ClusterSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
111 inline ClusterSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(std::move(value)); return *this;}
112 inline ClusterSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
113 inline ClusterSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
115
117
120 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
124 inline ClusterSubnetGroup& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
125 inline ClusterSubnetGroup& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
126 inline ClusterSubnetGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
127 inline ClusterSubnetGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
129
131
135 inline const Aws::Vector<Aws::String>& GetSupportedClusterIpAddressTypes() const{ return m_supportedClusterIpAddressTypes; }
136 inline bool SupportedClusterIpAddressTypesHasBeenSet() const { return m_supportedClusterIpAddressTypesHasBeenSet; }
137 inline void SetSupportedClusterIpAddressTypes(const Aws::Vector<Aws::String>& value) { m_supportedClusterIpAddressTypesHasBeenSet = true; m_supportedClusterIpAddressTypes = value; }
138 inline void SetSupportedClusterIpAddressTypes(Aws::Vector<Aws::String>&& value) { m_supportedClusterIpAddressTypesHasBeenSet = true; m_supportedClusterIpAddressTypes = std::move(value); }
141 inline ClusterSubnetGroup& AddSupportedClusterIpAddressTypes(const Aws::String& value) { m_supportedClusterIpAddressTypesHasBeenSet = true; m_supportedClusterIpAddressTypes.push_back(value); return *this; }
142 inline ClusterSubnetGroup& AddSupportedClusterIpAddressTypes(Aws::String&& value) { m_supportedClusterIpAddressTypesHasBeenSet = true; m_supportedClusterIpAddressTypes.push_back(std::move(value)); return *this; }
143 inline ClusterSubnetGroup& AddSupportedClusterIpAddressTypes(const char* value) { m_supportedClusterIpAddressTypesHasBeenSet = true; m_supportedClusterIpAddressTypes.push_back(value); return *this; }
145 private:
146
147 Aws::String m_clusterSubnetGroupName;
148 bool m_clusterSubnetGroupNameHasBeenSet = false;
149
150 Aws::String m_description;
151 bool m_descriptionHasBeenSet = false;
152
153 Aws::String m_vpcId;
154 bool m_vpcIdHasBeenSet = false;
155
156 Aws::String m_subnetGroupStatus;
157 bool m_subnetGroupStatusHasBeenSet = false;
158
159 Aws::Vector<Subnet> m_subnets;
160 bool m_subnetsHasBeenSet = false;
161
162 Aws::Vector<Tag> m_tags;
163 bool m_tagsHasBeenSet = false;
164
165 Aws::Vector<Aws::String> m_supportedClusterIpAddressTypes;
166 bool m_supportedClusterIpAddressTypesHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace Redshift
171} // namespace Aws
ClusterSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
ClusterSubnetGroup & WithTags(const Aws::Vector< Tag > &value)
void SetSubnets(const Aws::Vector< Subnet > &value)
ClusterSubnetGroup & WithVpcId(const Aws::String &value)
void SetVpcId(const Aws::String &value)
ClusterSubnetGroup & WithSupportedClusterIpAddressTypes(Aws::Vector< Aws::String > &&value)
void SetClusterSubnetGroupName(const char *value)
void SetSubnetGroupStatus(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSupportedClusterIpAddressTypes() const
ClusterSubnetGroup & AddTags(Tag &&value)
ClusterSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
ClusterSubnetGroup & WithDescription(Aws::String &&value)
const Aws::String & GetClusterSubnetGroupName() const
const Aws::Vector< Tag > & GetTags() const
ClusterSubnetGroup & WithVpcId(Aws::String &&value)
ClusterSubnetGroup & AddSupportedClusterIpAddressTypes(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
ClusterSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
ClusterSubnetGroup & WithClusterSubnetGroupName(Aws::String &&value)
void SetSupportedClusterIpAddressTypes(const Aws::Vector< Aws::String > &value)
void SetTags(Aws::Vector< Tag > &&value)
ClusterSubnetGroup & AddSupportedClusterIpAddressTypes(const Aws::String &value)
ClusterSubnetGroup & AddTags(const Tag &value)
ClusterSubnetGroup & WithSupportedClusterIpAddressTypes(const Aws::Vector< Aws::String > &value)
ClusterSubnetGroup & WithDescription(const char *value)
ClusterSubnetGroup & WithDescription(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSubnets(Aws::Vector< Subnet > &&value)
void SetSubnetGroupStatus(Aws::String &&value)
AWS_REDSHIFT_API ClusterSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClusterSubnetGroup & WithSubnetGroupStatus(const char *value)
void SetSupportedClusterIpAddressTypes(Aws::Vector< Aws::String > &&value)
ClusterSubnetGroup & WithVpcId(const char *value)
void SetClusterSubnetGroupName(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ClusterSubnetGroup & AddSupportedClusterIpAddressTypes(const char *value)
void SetDescription(const Aws::String &value)
AWS_REDSHIFT_API ClusterSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
ClusterSubnetGroup & WithClusterSubnetGroupName(const Aws::String &value)
ClusterSubnetGroup & WithClusterSubnetGroupName(const char *value)
void SetClusterSubnetGroupName(Aws::String &&value)
ClusterSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
ClusterSubnetGroup & AddSubnets(const Subnet &value)
ClusterSubnetGroup & AddSubnets(Subnet &&value)
ClusterSubnetGroup & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetDescription() const
const Aws::Vector< Subnet > & GetSubnets() const
const Aws::String & GetSubnetGroupStatus() const
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