AWS SDK for C++  1.9.110
AWS SDK for C++
Subnet.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace Redshift
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Subnet();
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetSubnetIdentifier() const{ return m_subnetIdentifier; }
47 
51  inline bool SubnetIdentifierHasBeenSet() const { return m_subnetIdentifierHasBeenSet; }
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 = std::move(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(std::move(value)); return *this;}
77 
81  inline Subnet& WithSubnetIdentifier(const char* value) { SetSubnetIdentifier(value); return *this;}
82 
83 
87  inline const AvailabilityZone& GetSubnetAvailabilityZone() const{ return m_subnetAvailabilityZone; }
88 
92  inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
93 
97  inline void SetSubnetAvailabilityZone(const AvailabilityZone& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
98 
102  inline void SetSubnetAvailabilityZone(AvailabilityZone&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = std::move(value); }
103 
107  inline Subnet& WithSubnetAvailabilityZone(const AvailabilityZone& value) { SetSubnetAvailabilityZone(value); return *this;}
108 
112  inline Subnet& WithSubnetAvailabilityZone(AvailabilityZone&& value) { SetSubnetAvailabilityZone(std::move(value)); return *this;}
113 
114 
118  inline const Aws::String& GetSubnetStatus() const{ return m_subnetStatus; }
119 
123  inline bool SubnetStatusHasBeenSet() const { return m_subnetStatusHasBeenSet; }
124 
128  inline void SetSubnetStatus(const Aws::String& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = value; }
129 
133  inline void SetSubnetStatus(Aws::String&& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = std::move(value); }
134 
138  inline void SetSubnetStatus(const char* value) { m_subnetStatusHasBeenSet = true; m_subnetStatus.assign(value); }
139 
143  inline Subnet& WithSubnetStatus(const Aws::String& value) { SetSubnetStatus(value); return *this;}
144 
148  inline Subnet& WithSubnetStatus(Aws::String&& value) { SetSubnetStatus(std::move(value)); return *this;}
149 
153  inline Subnet& WithSubnetStatus(const char* value) { SetSubnetStatus(value); return *this;}
154 
155  private:
156 
157  Aws::String m_subnetIdentifier;
158  bool m_subnetIdentifierHasBeenSet;
159 
160  AvailabilityZone m_subnetAvailabilityZone;
161  bool m_subnetAvailabilityZoneHasBeenSet;
162 
163  Aws::String m_subnetStatus;
164  bool m_subnetStatusHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace Redshift
169 } // namespace Aws
Aws::Redshift::Model::Subnet::SetSubnetIdentifier
void SetSubnetIdentifier(const Aws::String &value)
Definition: Subnet.h:56
Aws::Redshift::Model::Subnet::WithSubnetIdentifier
Subnet & WithSubnetIdentifier(Aws::String &&value)
Definition: Subnet.h:76
Aws::Redshift::Model::Subnet::WithSubnetAvailabilityZone
Subnet & WithSubnetAvailabilityZone(AvailabilityZone &&value)
Definition: Subnet.h:112
Aws::Redshift::Model::Subnet::SetSubnetIdentifier
void SetSubnetIdentifier(Aws::String &&value)
Definition: Subnet.h:61
Aws::Redshift::Model::Subnet::GetSubnetIdentifier
const Aws::String & GetSubnetIdentifier() const
Definition: Subnet.h:46
Aws::Redshift::Model::Subnet::operator=
Subnet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::Subnet::WithSubnetAvailabilityZone
Subnet & WithSubnetAvailabilityZone(const AvailabilityZone &value)
Definition: Subnet.h:107
Aws::Redshift::Model::Subnet::WithSubnetIdentifier
Subnet & WithSubnetIdentifier(const Aws::String &value)
Definition: Subnet.h:71
AWSStreamFwd.h
Aws::Redshift::Model::Subnet::SetSubnetStatus
void SetSubnetStatus(const Aws::String &value)
Definition: Subnet.h:128
Aws::Redshift::Model::Subnet::GetSubnetAvailabilityZone
const AvailabilityZone & GetSubnetAvailabilityZone() const
Definition: Subnet.h:87
Aws::Redshift::Model::Subnet::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::Subnet::SetSubnetIdentifier
void SetSubnetIdentifier(const char *value)
Definition: Subnet.h:66
Aws::Redshift::Model::AvailabilityZone
Definition: AvailabilityZone.h:34
Aws::Redshift::Model::Subnet::SubnetStatusHasBeenSet
bool SubnetStatusHasBeenSet() const
Definition: Subnet.h:123
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::Subnet::GetSubnetStatus
const Aws::String & GetSubnetStatus() const
Definition: Subnet.h:118
Aws::Redshift::Model::Subnet::WithSubnetStatus
Subnet & WithSubnetStatus(Aws::String &&value)
Definition: Subnet.h:148
Aws::Redshift::Model::Subnet::WithSubnetStatus
Subnet & WithSubnetStatus(const Aws::String &value)
Definition: Subnet.h:143
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::Subnet::SetSubnetAvailabilityZone
void SetSubnetAvailabilityZone(const AvailabilityZone &value)
Definition: Subnet.h:97
AWSString.h
Aws::Redshift::Model::Subnet::WithSubnetIdentifier
Subnet & WithSubnetIdentifier(const char *value)
Definition: Subnet.h:81
Aws::Redshift::Model::Subnet::SetSubnetStatus
void SetSubnetStatus(Aws::String &&value)
Definition: Subnet.h:133
Aws::Redshift::Model::Subnet::WithSubnetStatus
Subnet & WithSubnetStatus(const char *value)
Definition: Subnet.h:153
AvailabilityZone.h
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::Subnet::SetSubnetStatus
void SetSubnetStatus(const char *value)
Definition: Subnet.h:138
Redshift_EXPORTS.h
Aws::Redshift::Model::Subnet::Subnet
Subnet(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::Subnet::SubnetAvailabilityZoneHasBeenSet
bool SubnetAvailabilityZoneHasBeenSet() const
Definition: Subnet.h:92
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::Subnet
Definition: Subnet.h:33
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::Subnet::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::Subnet::SetSubnetAvailabilityZone
void SetSubnetAvailabilityZone(AvailabilityZone &&value)
Definition: Subnet.h:102
Aws::Redshift::Model::Subnet::SubnetIdentifierHasBeenSet
bool SubnetIdentifierHasBeenSet() const
Definition: Subnet.h:51
Aws::Redshift::Model::Subnet::Subnet
Subnet()