AWS SDK for C++  0.14.3
AWS SDK for C++
Subnet.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 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace RDS
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  Subnet();
43  Subnet(const Aws::Utils::Xml::XmlNode& xmlNode);
44  Subnet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetSubnetIdentifier() const{ return m_subnetIdentifier; }
53 
57  inline void SetSubnetIdentifier(const Aws::String& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
58 
62  inline void SetSubnetIdentifier(Aws::String&& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
63 
67  inline void SetSubnetIdentifier(const char* value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier.assign(value); }
68 
72  inline Subnet& WithSubnetIdentifier(const Aws::String& value) { SetSubnetIdentifier(value); return *this;}
73 
77  inline Subnet& WithSubnetIdentifier(Aws::String&& value) { SetSubnetIdentifier(value); return *this;}
78 
82  inline Subnet& WithSubnetIdentifier(const char* value) { SetSubnetIdentifier(value); return *this;}
83 
84 
85  inline const AvailabilityZone& GetSubnetAvailabilityZone() const{ return m_subnetAvailabilityZone; }
86 
87 
88  inline void SetSubnetAvailabilityZone(const AvailabilityZone& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
89 
90 
91  inline void SetSubnetAvailabilityZone(AvailabilityZone&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
92 
93 
94  inline Subnet& WithSubnetAvailabilityZone(const AvailabilityZone& value) { SetSubnetAvailabilityZone(value); return *this;}
95 
96 
97  inline Subnet& WithSubnetAvailabilityZone(AvailabilityZone&& value) { SetSubnetAvailabilityZone(value); return *this;}
98 
102  inline const Aws::String& GetSubnetStatus() const{ return m_subnetStatus; }
103 
107  inline void SetSubnetStatus(const Aws::String& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = value; }
108 
112  inline void SetSubnetStatus(Aws::String&& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = value; }
113 
117  inline void SetSubnetStatus(const char* value) { m_subnetStatusHasBeenSet = true; m_subnetStatus.assign(value); }
118 
122  inline Subnet& WithSubnetStatus(const Aws::String& value) { SetSubnetStatus(value); return *this;}
123 
127  inline Subnet& WithSubnetStatus(Aws::String&& value) { SetSubnetStatus(value); return *this;}
128 
132  inline Subnet& WithSubnetStatus(const char* value) { SetSubnetStatus(value); return *this;}
133 
134  private:
135  Aws::String m_subnetIdentifier;
136  bool m_subnetIdentifierHasBeenSet;
137  AvailabilityZone m_subnetAvailabilityZone;
138  bool m_subnetAvailabilityZoneHasBeenSet;
139  Aws::String m_subnetStatus;
140  bool m_subnetStatusHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace RDS
145 } // namespace Aws
void SetSubnetIdentifier(const Aws::String &value)
Definition: Subnet.h:57
void SetSubnetStatus(Aws::String &&value)
Definition: Subnet.h:112
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
Subnet & WithSubnetIdentifier(const Aws::String &value)
Definition: Subnet.h:72
void SetSubnetStatus(const Aws::String &value)
Definition: Subnet.h:107
Subnet & WithSubnetAvailabilityZone(AvailabilityZone &&value)
Definition: Subnet.h:97
void SetSubnetIdentifier(const char *value)
Definition: Subnet.h:67
const AvailabilityZone & GetSubnetAvailabilityZone() const
Definition: Subnet.h:85
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
Subnet & WithSubnetStatus(const Aws::String &value)
Definition: Subnet.h:122
void SetSubnetAvailabilityZone(AvailabilityZone &&value)
Definition: Subnet.h:91
void SetSubnetIdentifier(Aws::String &&value)
Definition: Subnet.h:62
const Aws::String & GetSubnetStatus() const
Definition: Subnet.h:102
Subnet & WithSubnetStatus(const char *value)
Definition: Subnet.h:132
Subnet & WithSubnetStatus(Aws::String &&value)
Definition: Subnet.h:127
Subnet & WithSubnetIdentifier(const char *value)
Definition: Subnet.h:82
const Aws::String & GetSubnetIdentifier() const
Definition: Subnet.h:52
Subnet & WithSubnetAvailabilityZone(const AvailabilityZone &value)
Definition: Subnet.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Subnet & WithSubnetIdentifier(Aws::String &&value)
Definition: Subnet.h:77
void SetSubnetStatus(const char *value)
Definition: Subnet.h:117
void SetSubnetAvailabilityZone(const AvailabilityZone &value)
Definition: Subnet.h:88
JSON (JavaScript Object Notation).