AWS SDK for C++  0.12.9
AWS SDK for C++
ClusterSubnetGroup.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 #include <aws/redshift/model/Tag.h>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace Redshift
33 {
34 namespace Model
35 {
36 
41  {
42  public:
45  ClusterSubnetGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; }
54 
58  inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
59 
63  inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
64 
68  inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); }
69 
73  inline ClusterSubnetGroup& WithClusterSubnetGroupName(const Aws::String& value) { SetClusterSubnetGroupName(value); return *this;}
74 
78  inline ClusterSubnetGroup& WithClusterSubnetGroupName(Aws::String&& value) { SetClusterSubnetGroupName(value); return *this;}
79 
83  inline ClusterSubnetGroup& WithClusterSubnetGroupName(const char* value) { SetClusterSubnetGroupName(value); return *this;}
84 
88  inline const Aws::String& GetDescription() const{ return m_description; }
89 
93  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
98  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
99 
103  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 
108  inline ClusterSubnetGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 
113  inline ClusterSubnetGroup& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
114 
118  inline ClusterSubnetGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
119 
123  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
124 
128  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
129 
133  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
134 
138  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
139 
143  inline ClusterSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
144 
148  inline ClusterSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
149 
153  inline ClusterSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
154 
159  inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; }
160 
165  inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
166 
171  inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
172 
177  inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); }
178 
183  inline ClusterSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;}
184 
189  inline ClusterSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(value); return *this;}
190 
195  inline ClusterSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;}
196 
200  inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
201 
205  inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
206 
210  inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
211 
215  inline ClusterSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
216 
220  inline ClusterSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(value); return *this;}
221 
225  inline ClusterSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
226 
230  inline ClusterSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
231 
235  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
236 
240  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
241 
245  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
246 
250  inline ClusterSubnetGroup& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
251 
255  inline ClusterSubnetGroup& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
256 
260  inline ClusterSubnetGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
261 
265  inline ClusterSubnetGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
266 
267  private:
268  Aws::String m_clusterSubnetGroupName;
269  bool m_clusterSubnetGroupNameHasBeenSet;
270  Aws::String m_description;
271  bool m_descriptionHasBeenSet;
272  Aws::String m_vpcId;
273  bool m_vpcIdHasBeenSet;
274  Aws::String m_subnetGroupStatus;
275  bool m_subnetGroupStatusHasBeenSet;
276  Aws::Vector<Subnet> m_subnets;
277  bool m_subnetsHasBeenSet;
278  Aws::Vector<Tag> m_tags;
279  bool m_tagsHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace Redshift
284 } // namespace Aws
ClusterSubnetGroup & AddSubnets(Subnet &&value)
void SetClusterSubnetGroupName(const char *value)
void SetVpcId(const Aws::String &value)
ClusterSubnetGroup & WithVpcId(Aws::String &&value)
const Aws::String & GetDescription() const
void SetTags(const Aws::Vector< Tag > &value)
ClusterSubnetGroup & WithDescription(const Aws::String &value)
ClusterSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
void SetDescription(const Aws::String &value)
ClusterSubnetGroup & WithVpcId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ClusterSubnetGroup & AddTags(const Tag &value)
ClusterSubnetGroup & WithClusterSubnetGroupName(const char *value)
ClusterSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
ClusterSubnetGroup & WithTags(const Aws::Vector< Tag > &value)
ClusterSubnetGroup & AddTags(Tag &&value)
ClusterSubnetGroup & WithSubnetGroupStatus(const char *value)
ClusterSubnetGroup & AddSubnets(const Subnet &value)
ClusterSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
void SetSubnets(const Aws::Vector< Subnet > &value)
#define AWS_REDSHIFT_API
const Aws::Vector< Subnet > & GetSubnets() const
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetClusterSubnetGroupName() const
ClusterSubnetGroup & WithClusterSubnetGroupName(const Aws::String &value)
void SetSubnetGroupStatus(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetSubnets(Aws::Vector< Subnet > &&value)
ClusterSubnetGroup & WithClusterSubnetGroupName(Aws::String &&value)
ClusterSubnetGroup & WithDescription(const char *value)
const Aws::String & GetSubnetGroupStatus() const
void SetClusterSubnetGroupName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetClusterSubnetGroupName(Aws::String &&value)
ClusterSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
ClusterSubnetGroup & WithDescription(Aws::String &&value)
ClusterSubnetGroup & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
void SetSubnetGroupStatus(Aws::String &&value)
JSON (JavaScript Object Notation).
ClusterSubnetGroup & WithVpcId(const char *value)