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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace Redshift
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  Subnet();
42  Subnet(const Aws::Utils::Xml::XmlNode& xmlNode);
43  Subnet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetSubnetIdentifier() const{ return m_subnetIdentifier; }
52 
56  inline void SetSubnetIdentifier(const Aws::String& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
57 
61  inline void SetSubnetIdentifier(Aws::String&& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
62 
66  inline void SetSubnetIdentifier(const char* value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier.assign(value); }
67 
71  inline Subnet& WithSubnetIdentifier(const Aws::String& value) { SetSubnetIdentifier(value); return *this;}
72 
76  inline Subnet& WithSubnetIdentifier(Aws::String&& value) { SetSubnetIdentifier(value); return *this;}
77 
81  inline Subnet& WithSubnetIdentifier(const char* value) { SetSubnetIdentifier(value); return *this;}
82 
83 
84  inline const AvailabilityZone& GetSubnetAvailabilityZone() const{ return m_subnetAvailabilityZone; }
85 
86 
87  inline void SetSubnetAvailabilityZone(const AvailabilityZone& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
88 
89 
90  inline void SetSubnetAvailabilityZone(AvailabilityZone&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
91 
92 
93  inline Subnet& WithSubnetAvailabilityZone(const AvailabilityZone& value) { SetSubnetAvailabilityZone(value); return *this;}
94 
95 
96  inline Subnet& WithSubnetAvailabilityZone(AvailabilityZone&& value) { SetSubnetAvailabilityZone(value); return *this;}
97 
101  inline const Aws::String& GetSubnetStatus() const{ return m_subnetStatus; }
102 
106  inline void SetSubnetStatus(const Aws::String& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = value; }
107 
111  inline void SetSubnetStatus(Aws::String&& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = value; }
112 
116  inline void SetSubnetStatus(const char* value) { m_subnetStatusHasBeenSet = true; m_subnetStatus.assign(value); }
117 
121  inline Subnet& WithSubnetStatus(const Aws::String& value) { SetSubnetStatus(value); return *this;}
122 
126  inline Subnet& WithSubnetStatus(Aws::String&& value) { SetSubnetStatus(value); return *this;}
127 
131  inline Subnet& WithSubnetStatus(const char* value) { SetSubnetStatus(value); return *this;}
132 
133  private:
134  Aws::String m_subnetIdentifier;
135  bool m_subnetIdentifierHasBeenSet;
136  AvailabilityZone m_subnetAvailabilityZone;
137  bool m_subnetAvailabilityZoneHasBeenSet;
138  Aws::String m_subnetStatus;
139  bool m_subnetStatusHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace Redshift
144 } // namespace Aws
void SetSubnetStatus(const Aws::String &value)
Definition: Subnet.h:106
Subnet & WithSubnetIdentifier(const Aws::String &value)
Definition: Subnet.h:71
void SetSubnetIdentifier(Aws::String &&value)
Definition: Subnet.h:61
Subnet & WithSubnetAvailabilityZone(AvailabilityZone &&value)
Definition: Subnet.h:96
const Aws::String & GetSubnetStatus() const
Definition: Subnet.h:101
void SetSubnetAvailabilityZone(AvailabilityZone &&value)
Definition: Subnet.h:90
const Aws::String & GetSubnetIdentifier() const
Definition: Subnet.h:51
void SetSubnetAvailabilityZone(const AvailabilityZone &value)
Definition: Subnet.h:87
Subnet & WithSubnetIdentifier(Aws::String &&value)
Definition: Subnet.h:76
void SetSubnetIdentifier(const char *value)
Definition: Subnet.h:66
Subnet & WithSubnetStatus(Aws::String &&value)
Definition: Subnet.h:126
Subnet & WithSubnetStatus(const char *value)
Definition: Subnet.h:131
#define AWS_REDSHIFT_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
Subnet & WithSubnetStatus(const Aws::String &value)
Definition: Subnet.h:121
const AvailabilityZone & GetSubnetAvailabilityZone() const
Definition: Subnet.h:84
void SetSubnetIdentifier(const Aws::String &value)
Definition: Subnet.h:56
Subnet & WithSubnetIdentifier(const char *value)
Definition: Subnet.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Subnet & WithSubnetAvailabilityZone(const AvailabilityZone &value)
Definition: Subnet.h:93
void SetSubnetStatus(Aws::String &&value)
Definition: Subnet.h:111
void SetSubnetStatus(const char *value)
Definition: Subnet.h:116
JSON (JavaScript Object Notation).