AWS SDK for C++  0.14.3
AWS SDK for C++
DBSubnetGroup.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
16 #include <aws/rds/RDS_EXPORTS.h>
20 #include <aws/rds/model/Subnet.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace RDS
32 {
33 namespace Model
34 {
35 
45  {
46  public:
47  DBSubnetGroup();
49  DBSubnetGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
50 
51  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52  void OutputToStream(Aws::OStream& oStream, const char* location) const;
53 
57  inline const Aws::String& GetDBSubnetGroupName() const{ return m_dBSubnetGroupName; }
58 
62  inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
63 
67  inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; }
68 
72  inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); }
73 
77  inline DBSubnetGroup& WithDBSubnetGroupName(const Aws::String& value) { SetDBSubnetGroupName(value); return *this;}
78 
82  inline DBSubnetGroup& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(value); return *this;}
83 
87  inline DBSubnetGroup& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;}
88 
92  inline const Aws::String& GetDBSubnetGroupDescription() const{ return m_dBSubnetGroupDescription; }
93 
97  inline void SetDBSubnetGroupDescription(const Aws::String& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
98 
102  inline void SetDBSubnetGroupDescription(Aws::String&& value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription = value; }
103 
107  inline void SetDBSubnetGroupDescription(const char* value) { m_dBSubnetGroupDescriptionHasBeenSet = true; m_dBSubnetGroupDescription.assign(value); }
108 
112  inline DBSubnetGroup& WithDBSubnetGroupDescription(const Aws::String& value) { SetDBSubnetGroupDescription(value); return *this;}
113 
117  inline DBSubnetGroup& WithDBSubnetGroupDescription(Aws::String&& value) { SetDBSubnetGroupDescription(value); return *this;}
118 
122  inline DBSubnetGroup& WithDBSubnetGroupDescription(const char* value) { SetDBSubnetGroupDescription(value); return *this;}
123 
127  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
128 
132  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
133 
137  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
138 
142  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
143 
147  inline DBSubnetGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
148 
152  inline DBSubnetGroup& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
153 
157  inline DBSubnetGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
158 
162  inline const Aws::String& GetSubnetGroupStatus() const{ return m_subnetGroupStatus; }
163 
167  inline void SetSubnetGroupStatus(const Aws::String& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
168 
172  inline void SetSubnetGroupStatus(Aws::String&& value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus = value; }
173 
177  inline void SetSubnetGroupStatus(const char* value) { m_subnetGroupStatusHasBeenSet = true; m_subnetGroupStatus.assign(value); }
178 
182  inline DBSubnetGroup& WithSubnetGroupStatus(const Aws::String& value) { SetSubnetGroupStatus(value); return *this;}
183 
187  inline DBSubnetGroup& WithSubnetGroupStatus(Aws::String&& value) { SetSubnetGroupStatus(value); return *this;}
188 
192  inline DBSubnetGroup& WithSubnetGroupStatus(const char* value) { SetSubnetGroupStatus(value); return *this;}
193 
197  inline const Aws::Vector<Subnet>& GetSubnets() const{ return m_subnets; }
198 
202  inline void SetSubnets(const Aws::Vector<Subnet>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
203 
207  inline void SetSubnets(Aws::Vector<Subnet>&& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
208 
212  inline DBSubnetGroup& WithSubnets(const Aws::Vector<Subnet>& value) { SetSubnets(value); return *this;}
213 
217  inline DBSubnetGroup& WithSubnets(Aws::Vector<Subnet>&& value) { SetSubnets(value); return *this;}
218 
222  inline DBSubnetGroup& AddSubnets(const Subnet& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
223 
227  inline DBSubnetGroup& AddSubnets(Subnet&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
228 
229  private:
230  Aws::String m_dBSubnetGroupName;
231  bool m_dBSubnetGroupNameHasBeenSet;
232  Aws::String m_dBSubnetGroupDescription;
233  bool m_dBSubnetGroupDescriptionHasBeenSet;
234  Aws::String m_vpcId;
235  bool m_vpcIdHasBeenSet;
236  Aws::String m_subnetGroupStatus;
237  bool m_subnetGroupStatusHasBeenSet;
238  Aws::Vector<Subnet> m_subnets;
239  bool m_subnetsHasBeenSet;
240  };
241 
242 } // namespace Model
243 } // namespace RDS
244 } // namespace Aws
void SetVpcId(const char *value)
void SetDBSubnetGroupDescription(Aws::String &&value)
DBSubnetGroup & AddSubnets(Subnet &&value)
void SetVpcId(Aws::String &&value)
DBSubnetGroup & WithDBSubnetGroupDescription(const Aws::String &value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
void SetDBSubnetGroupName(const Aws::String &value)
Definition: DBSubnetGroup.h:62
void SetSubnets(Aws::Vector< Subnet > &&value)
void SetDBSubnetGroupDescription(const Aws::String &value)
Definition: DBSubnetGroup.h:97
DBSubnetGroup & WithSubnetGroupStatus(const char *value)
DBSubnetGroup & WithSubnetGroupStatus(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DBSubnetGroup & WithVpcId(Aws::String &&value)
void SetDBSubnetGroupName(Aws::String &&value)
Definition: DBSubnetGroup.h:67
const Aws::String & GetDBSubnetGroupDescription() const
Definition: DBSubnetGroup.h:92
void SetDBSubnetGroupName(const char *value)
Definition: DBSubnetGroup.h:72
DBSubnetGroup & WithDBSubnetGroupName(Aws::String &&value)
Definition: DBSubnetGroup.h:82
void SetSubnets(const Aws::Vector< Subnet > &value)
DBSubnetGroup & WithDBSubnetGroupName(const char *value)
Definition: DBSubnetGroup.h:87
DBSubnetGroup & AddSubnets(const Subnet &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetVpcId() const
DBSubnetGroup & WithDBSubnetGroupName(const Aws::String &value)
Definition: DBSubnetGroup.h:77
DBSubnetGroup & WithSubnetGroupStatus(Aws::String &&value)
const Aws::String & GetDBSubnetGroupName() const
Definition: DBSubnetGroup.h:57
void SetSubnetGroupStatus(Aws::String &&value)
void SetVpcId(const Aws::String &value)
DBSubnetGroup & WithSubnets(Aws::Vector< Subnet > &&value)
const Aws::Vector< Subnet > & GetSubnets() const
void SetSubnetGroupStatus(const Aws::String &value)
DBSubnetGroup & WithVpcId(const Aws::String &value)
DBSubnetGroup & WithSubnets(const Aws::Vector< Subnet > &value)
const Aws::String & GetSubnetGroupStatus() const
void SetDBSubnetGroupDescription(const char *value)
DBSubnetGroup & WithDBSubnetGroupDescription(Aws::String &&value)
void SetSubnetGroupStatus(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DBSubnetGroup & WithDBSubnetGroupDescription(const char *value)
DBSubnetGroup & WithVpcId(const char *value)
JSON (JavaScript Object Notation).