AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClusterSubnetGroupNameT = Aws::String>
52 void SetClusterSubnetGroupName(ClusterSubnetGroupNameT&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = std::forward<ClusterSubnetGroupNameT>(value); }
53 template<typename ClusterSubnetGroupNameT = Aws::String>
54 ClusterSubnetGroup& WithClusterSubnetGroupName(ClusterSubnetGroupNameT&& value) { SetClusterSubnetGroupName(std::forward<ClusterSubnetGroupNameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template<typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 ClusterSubnetGroup& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::String& GetVpcId() const { return m_vpcId; }
74 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
75 template<typename VpcIdT = Aws::String>
76 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
77 template<typename VpcIdT = Aws::String>
78 ClusterSubnetGroup& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
80
82
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 ClusterSubnetGroup& 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 ClusterSubnetGroup& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
104 template<typename SubnetsT = Subnet>
105 ClusterSubnetGroup& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
107
109
112 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template<typename TagsT = Aws::Vector<Tag>>
115 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
116 template<typename TagsT = Aws::Vector<Tag>>
117 ClusterSubnetGroup& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
118 template<typename TagsT = Tag>
119 ClusterSubnetGroup& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
121
123
127 inline const Aws::Vector<Aws::String>& GetSupportedClusterIpAddressTypes() const { return m_supportedClusterIpAddressTypes; }
128 inline bool SupportedClusterIpAddressTypesHasBeenSet() const { return m_supportedClusterIpAddressTypesHasBeenSet; }
129 template<typename SupportedClusterIpAddressTypesT = Aws::Vector<Aws::String>>
130 void SetSupportedClusterIpAddressTypes(SupportedClusterIpAddressTypesT&& value) { m_supportedClusterIpAddressTypesHasBeenSet = true; m_supportedClusterIpAddressTypes = std::forward<SupportedClusterIpAddressTypesT>(value); }
131 template<typename SupportedClusterIpAddressTypesT = Aws::Vector<Aws::String>>
132 ClusterSubnetGroup& WithSupportedClusterIpAddressTypes(SupportedClusterIpAddressTypesT&& value) { SetSupportedClusterIpAddressTypes(std::forward<SupportedClusterIpAddressTypesT>(value)); return *this;}
133 template<typename SupportedClusterIpAddressTypesT = Aws::String>
134 ClusterSubnetGroup& AddSupportedClusterIpAddressTypes(SupportedClusterIpAddressTypesT&& value) { m_supportedClusterIpAddressTypesHasBeenSet = true; m_supportedClusterIpAddressTypes.emplace_back(std::forward<SupportedClusterIpAddressTypesT>(value)); return *this; }
136 private:
137
138 Aws::String m_clusterSubnetGroupName;
139 bool m_clusterSubnetGroupNameHasBeenSet = false;
140
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143
144 Aws::String m_vpcId;
145 bool m_vpcIdHasBeenSet = false;
146
147 Aws::String m_subnetGroupStatus;
148 bool m_subnetGroupStatusHasBeenSet = false;
149
150 Aws::Vector<Subnet> m_subnets;
151 bool m_subnetsHasBeenSet = false;
152
153 Aws::Vector<Tag> m_tags;
154 bool m_tagsHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_supportedClusterIpAddressTypes;
157 bool m_supportedClusterIpAddressTypesHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Redshift
162} // namespace Aws
void SetSupportedClusterIpAddressTypes(SupportedClusterIpAddressTypesT &&value)
AWS_REDSHIFT_API ClusterSubnetGroup()=default
const Aws::Vector< Aws::String > & GetSupportedClusterIpAddressTypes() const
const Aws::String & GetClusterSubnetGroupName() const
const Aws::Vector< Tag > & GetTags() const
void SetClusterSubnetGroupName(ClusterSubnetGroupNameT &&value)
ClusterSubnetGroup & WithSubnetGroupStatus(SubnetGroupStatusT &&value)
void SetSubnetGroupStatus(SubnetGroupStatusT &&value)
ClusterSubnetGroup & WithClusterSubnetGroupName(ClusterSubnetGroupNameT &&value)
ClusterSubnetGroup & WithVpcId(VpcIdT &&value)
ClusterSubnetGroup & AddSubnets(SubnetsT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API ClusterSubnetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClusterSubnetGroup & WithSupportedClusterIpAddressTypes(SupportedClusterIpAddressTypesT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API ClusterSubnetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
ClusterSubnetGroup & WithSubnets(SubnetsT &&value)
ClusterSubnetGroup & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
ClusterSubnetGroup & AddTags(TagsT &&value)
ClusterSubnetGroup & AddSupportedClusterIpAddressTypes(SupportedClusterIpAddressTypesT &&value)
const Aws::Vector< Subnet > & GetSubnets() const
ClusterSubnetGroup & WithTags(TagsT &&value)
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