AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Subnet.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rds/model/AvailabilityZone.h>
11#include <aws/rds/model/Outpost.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace RDS
24{
25namespace Model
26{
27
34 class Subnet
35 {
36 public:
37 AWS_RDS_API Subnet();
38 AWS_RDS_API Subnet(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_RDS_API Subnet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetSubnetIdentifier() const{ return m_subnetIdentifier; }
50 inline bool SubnetIdentifierHasBeenSet() const { return m_subnetIdentifierHasBeenSet; }
51 inline void SetSubnetIdentifier(const Aws::String& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
52 inline void SetSubnetIdentifier(Aws::String&& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = std::move(value); }
53 inline void SetSubnetIdentifier(const char* value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier.assign(value); }
54 inline Subnet& WithSubnetIdentifier(const Aws::String& value) { SetSubnetIdentifier(value); return *this;}
55 inline Subnet& WithSubnetIdentifier(Aws::String&& value) { SetSubnetIdentifier(std::move(value)); return *this;}
56 inline Subnet& WithSubnetIdentifier(const char* value) { SetSubnetIdentifier(value); return *this;}
58
60
61 inline const AvailabilityZone& GetSubnetAvailabilityZone() const{ return m_subnetAvailabilityZone; }
62 inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
63 inline void SetSubnetAvailabilityZone(const AvailabilityZone& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
64 inline void SetSubnetAvailabilityZone(AvailabilityZone&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = std::move(value); }
65 inline Subnet& WithSubnetAvailabilityZone(const AvailabilityZone& value) { SetSubnetAvailabilityZone(value); return *this;}
66 inline Subnet& WithSubnetAvailabilityZone(AvailabilityZone&& value) { SetSubnetAvailabilityZone(std::move(value)); return *this;}
68
70
77 inline const Outpost& GetSubnetOutpost() const{ return m_subnetOutpost; }
78 inline bool SubnetOutpostHasBeenSet() const { return m_subnetOutpostHasBeenSet; }
79 inline void SetSubnetOutpost(const Outpost& value) { m_subnetOutpostHasBeenSet = true; m_subnetOutpost = value; }
80 inline void SetSubnetOutpost(Outpost&& value) { m_subnetOutpostHasBeenSet = true; m_subnetOutpost = std::move(value); }
81 inline Subnet& WithSubnetOutpost(const Outpost& value) { SetSubnetOutpost(value); return *this;}
82 inline Subnet& WithSubnetOutpost(Outpost&& value) { SetSubnetOutpost(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetSubnetStatus() const{ return m_subnetStatus; }
90 inline bool SubnetStatusHasBeenSet() const { return m_subnetStatusHasBeenSet; }
91 inline void SetSubnetStatus(const Aws::String& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = value; }
92 inline void SetSubnetStatus(Aws::String&& value) { m_subnetStatusHasBeenSet = true; m_subnetStatus = std::move(value); }
93 inline void SetSubnetStatus(const char* value) { m_subnetStatusHasBeenSet = true; m_subnetStatus.assign(value); }
94 inline Subnet& WithSubnetStatus(const Aws::String& value) { SetSubnetStatus(value); return *this;}
95 inline Subnet& WithSubnetStatus(Aws::String&& value) { SetSubnetStatus(std::move(value)); return *this;}
96 inline Subnet& WithSubnetStatus(const char* value) { SetSubnetStatus(value); return *this;}
98 private:
99
100 Aws::String m_subnetIdentifier;
101 bool m_subnetIdentifierHasBeenSet = false;
102
103 AvailabilityZone m_subnetAvailabilityZone;
104 bool m_subnetAvailabilityZoneHasBeenSet = false;
105
106 Outpost m_subnetOutpost;
107 bool m_subnetOutpostHasBeenSet = false;
108
109 Aws::String m_subnetStatus;
110 bool m_subnetStatusHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace RDS
115} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSubnetAvailabilityZone(AvailabilityZone &&value)
Definition Subnet.h:64
Subnet & WithSubnetIdentifier(const Aws::String &value)
Definition Subnet.h:54
void SetSubnetIdentifier(const char *value)
Definition Subnet.h:53
void SetSubnetOutpost(const Outpost &value)
Definition Subnet.h:79
void SetSubnetStatus(const char *value)
Definition Subnet.h:93
const Aws::String & GetSubnetIdentifier() const
Definition Subnet.h:49
const AvailabilityZone & GetSubnetAvailabilityZone() const
Definition Subnet.h:61
Subnet & WithSubnetIdentifier(const char *value)
Definition Subnet.h:56
Subnet & WithSubnetOutpost(const Outpost &value)
Definition Subnet.h:81
const Outpost & GetSubnetOutpost() const
Definition Subnet.h:77
Subnet & WithSubnetStatus(const char *value)
Definition Subnet.h:96
const Aws::String & GetSubnetStatus() const
Definition Subnet.h:89
AWS_RDS_API Subnet(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Subnet & WithSubnetIdentifier(Aws::String &&value)
Definition Subnet.h:55
bool SubnetOutpostHasBeenSet() const
Definition Subnet.h:78
bool SubnetStatusHasBeenSet() const
Definition Subnet.h:90
void SetSubnetIdentifier(const Aws::String &value)
Definition Subnet.h:51
void SetSubnetStatus(const Aws::String &value)
Definition Subnet.h:91
AWS_RDS_API Subnet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Subnet & WithSubnetOutpost(Outpost &&value)
Definition Subnet.h:82
void SetSubnetOutpost(Outpost &&value)
Definition Subnet.h:80
void SetSubnetAvailabilityZone(const AvailabilityZone &value)
Definition Subnet.h:63
Subnet & WithSubnetStatus(Aws::String &&value)
Definition Subnet.h:95
bool SubnetIdentifierHasBeenSet() const
Definition Subnet.h:50
Subnet & WithSubnetAvailabilityZone(const AvailabilityZone &value)
Definition Subnet.h:65
Subnet & WithSubnetStatus(const Aws::String &value)
Definition Subnet.h:94
void SetSubnetIdentifier(Aws::String &&value)
Definition Subnet.h:52
bool SubnetAvailabilityZoneHasBeenSet() const
Definition Subnet.h:62
Subnet & WithSubnetAvailabilityZone(AvailabilityZone &&value)
Definition Subnet.h:66
void SetSubnetStatus(Aws::String &&value)
Definition Subnet.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream