AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Subnet.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds/RDS_EXPORTS.h>
10#include <aws/rds/model/AvailabilityZone.h>
11#include <aws/rds/model/Outpost.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS {
22namespace Model {
23
30class Subnet {
31 public:
32 AWS_RDS_API Subnet() = default;
33 AWS_RDS_API Subnet(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_RDS_API Subnet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetSubnetIdentifier() const { return m_subnetIdentifier; }
44 inline bool SubnetIdentifierHasBeenSet() const { return m_subnetIdentifierHasBeenSet; }
45 template <typename SubnetIdentifierT = Aws::String>
46 void SetSubnetIdentifier(SubnetIdentifierT&& value) {
47 m_subnetIdentifierHasBeenSet = true;
48 m_subnetIdentifier = std::forward<SubnetIdentifierT>(value);
49 }
50 template <typename SubnetIdentifierT = Aws::String>
51 Subnet& WithSubnetIdentifier(SubnetIdentifierT&& value) {
52 SetSubnetIdentifier(std::forward<SubnetIdentifierT>(value));
53 return *this;
54 }
56
58
59 inline const AvailabilityZone& GetSubnetAvailabilityZone() const { return m_subnetAvailabilityZone; }
60 inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
61 template <typename SubnetAvailabilityZoneT = AvailabilityZone>
62 void SetSubnetAvailabilityZone(SubnetAvailabilityZoneT&& value) {
63 m_subnetAvailabilityZoneHasBeenSet = true;
64 m_subnetAvailabilityZone = std::forward<SubnetAvailabilityZoneT>(value);
65 }
66 template <typename SubnetAvailabilityZoneT = AvailabilityZone>
67 Subnet& WithSubnetAvailabilityZone(SubnetAvailabilityZoneT&& value) {
68 SetSubnetAvailabilityZone(std::forward<SubnetAvailabilityZoneT>(value));
69 return *this;
70 }
72
74
81 inline const Outpost& GetSubnetOutpost() const { return m_subnetOutpost; }
82 inline bool SubnetOutpostHasBeenSet() const { return m_subnetOutpostHasBeenSet; }
83 template <typename SubnetOutpostT = Outpost>
84 void SetSubnetOutpost(SubnetOutpostT&& value) {
85 m_subnetOutpostHasBeenSet = true;
86 m_subnetOutpost = std::forward<SubnetOutpostT>(value);
87 }
88 template <typename SubnetOutpostT = Outpost>
89 Subnet& WithSubnetOutpost(SubnetOutpostT&& value) {
90 SetSubnetOutpost(std::forward<SubnetOutpostT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetSubnetStatus() const { return m_subnetStatus; }
100 inline bool SubnetStatusHasBeenSet() const { return m_subnetStatusHasBeenSet; }
101 template <typename SubnetStatusT = Aws::String>
102 void SetSubnetStatus(SubnetStatusT&& value) {
103 m_subnetStatusHasBeenSet = true;
104 m_subnetStatus = std::forward<SubnetStatusT>(value);
105 }
106 template <typename SubnetStatusT = Aws::String>
107 Subnet& WithSubnetStatus(SubnetStatusT&& value) {
108 SetSubnetStatus(std::forward<SubnetStatusT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_subnetIdentifier;
114
115 AvailabilityZone m_subnetAvailabilityZone;
116
117 Outpost m_subnetOutpost;
118
119 Aws::String m_subnetStatus;
120 bool m_subnetIdentifierHasBeenSet = false;
121 bool m_subnetAvailabilityZoneHasBeenSet = false;
122 bool m_subnetOutpostHasBeenSet = false;
123 bool m_subnetStatusHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace RDS
128} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSubnetIdentifier() const
Definition Subnet.h:43
void SetSubnetIdentifier(SubnetIdentifierT &&value)
Definition Subnet.h:46
const AvailabilityZone & GetSubnetAvailabilityZone() const
Definition Subnet.h:59
Subnet & WithSubnetAvailabilityZone(SubnetAvailabilityZoneT &&value)
Definition Subnet.h:67
const Outpost & GetSubnetOutpost() const
Definition Subnet.h:81
const Aws::String & GetSubnetStatus() const
Definition Subnet.h:99
Subnet & WithSubnetOutpost(SubnetOutpostT &&value)
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
bool SubnetOutpostHasBeenSet() const
Definition Subnet.h:82
bool SubnetStatusHasBeenSet() const
Definition Subnet.h:100
AWS_RDS_API Subnet & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Subnet & WithSubnetIdentifier(SubnetIdentifierT &&value)
Definition Subnet.h:51
AWS_RDS_API Subnet()=default
void SetSubnetOutpost(SubnetOutpostT &&value)
Definition Subnet.h:84
bool SubnetIdentifierHasBeenSet() const
Definition Subnet.h:44
Subnet & WithSubnetStatus(SubnetStatusT &&value)
Definition Subnet.h:107
void SetSubnetAvailabilityZone(SubnetAvailabilityZoneT &&value)
Definition Subnet.h:62
void SetSubnetStatus(SubnetStatusT &&value)
Definition Subnet.h:102
bool SubnetAvailabilityZoneHasBeenSet() const
Definition Subnet.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream