AWS SDK for C++  1.9.108
AWS SDK for C++
Subnet.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
11 #include <aws/rds/model/Outpost.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace RDS
24 {
25 namespace Model
26 {
27 
35  {
36  public:
37  Subnet();
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetSubnetIdentifier() const{ return m_subnetIdentifier; }
49 
53  inline bool SubnetIdentifierHasBeenSet() const { return m_subnetIdentifierHasBeenSet; }
54 
58  inline void SetSubnetIdentifier(const Aws::String& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
59 
63  inline void SetSubnetIdentifier(Aws::String&& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = std::move(value); }
64 
68  inline void SetSubnetIdentifier(const char* value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier.assign(value); }
69 
73  inline Subnet& WithSubnetIdentifier(const Aws::String& value) { SetSubnetIdentifier(value); return *this;}
74 
78  inline Subnet& WithSubnetIdentifier(Aws::String&& value) { SetSubnetIdentifier(std::move(value)); return *this;}
79 
83  inline Subnet& WithSubnetIdentifier(const char* value) { SetSubnetIdentifier(value); return *this;}
84 
85 
86 
87  inline const AvailabilityZone& GetSubnetAvailabilityZone() const{ return m_subnetAvailabilityZone; }
88 
89 
90  inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
91 
92 
93  inline void SetSubnetAvailabilityZone(const AvailabilityZone& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
94 
95 
96  inline void SetSubnetAvailabilityZone(AvailabilityZone&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = std::move(value); }
97 
98 
99  inline Subnet& WithSubnetAvailabilityZone(const AvailabilityZone& value) { SetSubnetAvailabilityZone(value); return *this;}
100 
101 
102  inline Subnet& WithSubnetAvailabilityZone(AvailabilityZone&& value) { SetSubnetAvailabilityZone(std::move(value)); return *this;}
103 
104 
112  inline const Outpost& GetSubnetOutpost() const{ return m_subnetOutpost; }
113 
121  inline bool SubnetOutpostHasBeenSet() const { return m_subnetOutpostHasBeenSet; }
122 
130  inline void SetSubnetOutpost(const Outpost& value) { m_subnetOutpostHasBeenSet = true; m_subnetOutpost = value; }
131 
139  inline void SetSubnetOutpost(Outpost&& value) { m_subnetOutpostHasBeenSet = true; m_subnetOutpost = std::move(value); }
140 
148  inline Subnet& WithSubnetOutpost(const Outpost& value) { SetSubnetOutpost(value); return *this;}
149 
157  inline Subnet& WithSubnetOutpost(Outpost&& value) { SetSubnetOutpost(std::move(value)); return *this;}
158 
159 
163  inline const Aws::String& GetSubnetStatus() const{ return m_subnetStatus; }
164 
168  inline bool SubnetStatusHasBeenSet() const { return m_subnetStatusHasBeenSet; }
169 
173  inline void SetSubnetStatus(const Aws::String& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = value; }
174 
178  inline void SetSubnetStatus(Aws::String&& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = std::move(value); }
179 
183  inline void SetSubnetStatus(const char* value) { m_subnetStatusHasBeenSet = true; m_subnetStatus.assign(value); }
184 
188  inline Subnet& WithSubnetStatus(const Aws::String& value) { SetSubnetStatus(value); return *this;}
189 
193  inline Subnet& WithSubnetStatus(Aws::String&& value) { SetSubnetStatus(std::move(value)); return *this;}
194 
198  inline Subnet& WithSubnetStatus(const char* value) { SetSubnetStatus(value); return *this;}
199 
200  private:
201 
202  Aws::String m_subnetIdentifier;
203  bool m_subnetIdentifierHasBeenSet;
204 
205  AvailabilityZone m_subnetAvailabilityZone;
206  bool m_subnetAvailabilityZoneHasBeenSet;
207 
208  Outpost m_subnetOutpost;
209  bool m_subnetOutpostHasBeenSet;
210 
211  Aws::String m_subnetStatus;
212  bool m_subnetStatusHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace RDS
217 } // namespace Aws
Aws::RDS::Model::Subnet::SetSubnetIdentifier
void SetSubnetIdentifier(const char *value)
Definition: Subnet.h:68
Aws::RDS::Model::Subnet::WithSubnetAvailabilityZone
Subnet & WithSubnetAvailabilityZone(const AvailabilityZone &value)
Definition: Subnet.h:99
Aws::RDS::Model::Subnet::SubnetIdentifierHasBeenSet
bool SubnetIdentifierHasBeenSet() const
Definition: Subnet.h:53
Aws::RDS::Model::Subnet::SubnetStatusHasBeenSet
bool SubnetStatusHasBeenSet() const
Definition: Subnet.h:168
Aws::RDS::Model::Subnet::GetSubnetStatus
const Aws::String & GetSubnetStatus() const
Definition: Subnet.h:163
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::Subnet::WithSubnetStatus
Subnet & WithSubnetStatus(const Aws::String &value)
Definition: Subnet.h:188
Aws::RDS::Model::Subnet::GetSubnetIdentifier
const Aws::String & GetSubnetIdentifier() const
Definition: Subnet.h:48
Aws::RDS::Model::AvailabilityZone
Definition: AvailabilityZone.h:34
Aws::RDS::Model::Subnet::WithSubnetIdentifier
Subnet & WithSubnetIdentifier(Aws::String &&value)
Definition: Subnet.h:78
Aws::RDS::Model::Subnet::GetSubnetOutpost
const Outpost & GetSubnetOutpost() const
Definition: Subnet.h:112
Aws::RDS::Model::Subnet::SetSubnetIdentifier
void SetSubnetIdentifier(const Aws::String &value)
Definition: Subnet.h:58
Aws::RDS::Model::Subnet::operator=
Subnet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::RDS::Model::Subnet::SetSubnetAvailabilityZone
void SetSubnetAvailabilityZone(AvailabilityZone &&value)
Definition: Subnet.h:96
Aws::RDS::Model::Subnet::SetSubnetIdentifier
void SetSubnetIdentifier(Aws::String &&value)
Definition: Subnet.h:63
Aws::RDS::Model::Subnet::SetSubnetOutpost
void SetSubnetOutpost(Outpost &&value)
Definition: Subnet.h:139
Aws::RDS::Model::Subnet::SetSubnetOutpost
void SetSubnetOutpost(const Outpost &value)
Definition: Subnet.h:130
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
RDS_EXPORTS.h
Aws::RDS::Model::Subnet::SetSubnetStatus
void SetSubnetStatus(const char *value)
Definition: Subnet.h:183
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::Subnet::Subnet
Subnet()
Aws::RDS::Model::Subnet::WithSubnetAvailabilityZone
Subnet & WithSubnetAvailabilityZone(AvailabilityZone &&value)
Definition: Subnet.h:102
AvailabilityZone.h
Aws::RDS::Model::Subnet::WithSubnetOutpost
Subnet & WithSubnetOutpost(const Outpost &value)
Definition: Subnet.h:148
Outpost.h
AWSString.h
Aws::RDS::Model::Subnet::WithSubnetIdentifier
Subnet & WithSubnetIdentifier(const Aws::String &value)
Definition: Subnet.h:73
Aws::RDS::Model::Subnet::GetSubnetAvailabilityZone
const AvailabilityZone & GetSubnetAvailabilityZone() const
Definition: Subnet.h:87
Aws::RDS::Model::Subnet::SetSubnetStatus
void SetSubnetStatus(const Aws::String &value)
Definition: Subnet.h:173
Aws::RDS::Model::Subnet::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::Subnet::Subnet
Subnet(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::Subnet::WithSubnetStatus
Subnet & WithSubnetStatus(const char *value)
Definition: Subnet.h:198
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::Subnet::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::Subnet::SubnetOutpostHasBeenSet
bool SubnetOutpostHasBeenSet() const
Definition: Subnet.h:121
Aws::RDS::Model::Outpost
Definition: Outpost.h:36
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::Subnet::SetSubnetAvailabilityZone
void SetSubnetAvailabilityZone(const AvailabilityZone &value)
Definition: Subnet.h:93
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::Subnet::SubnetAvailabilityZoneHasBeenSet
bool SubnetAvailabilityZoneHasBeenSet() const
Definition: Subnet.h:90
Aws::RDS::Model::Subnet::WithSubnetOutpost
Subnet & WithSubnetOutpost(Outpost &&value)
Definition: Subnet.h:157
Aws::RDS::Model::Subnet::SetSubnetStatus
void SetSubnetStatus(Aws::String &&value)
Definition: Subnet.h:178
Aws::RDS::Model::Subnet::WithSubnetIdentifier
Subnet & WithSubnetIdentifier(const char *value)
Definition: Subnet.h:83
Aws::RDS::Model::Subnet
Definition: Subnet.h:35
Aws::RDS::Model::Subnet::WithSubnetStatus
Subnet & WithSubnetStatus(Aws::String &&value)
Definition: Subnet.h:193