AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RouteTableAssociation.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/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/RouteTableAssociationState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API RouteTableAssociation() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline bool GetMain() const { return m_main; }
43 inline bool MainHasBeenSet() const { return m_mainHasBeenSet; }
44 inline void SetMain(bool value) {
45 m_mainHasBeenSet = true;
46 m_main = value;
47 }
48 inline RouteTableAssociation& WithMain(bool value) {
49 SetMain(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRouteTableAssociationId() const { return m_routeTableAssociationId; }
59 inline bool RouteTableAssociationIdHasBeenSet() const { return m_routeTableAssociationIdHasBeenSet; }
60 template <typename RouteTableAssociationIdT = Aws::String>
61 void SetRouteTableAssociationId(RouteTableAssociationIdT&& value) {
62 m_routeTableAssociationIdHasBeenSet = true;
63 m_routeTableAssociationId = std::forward<RouteTableAssociationIdT>(value);
64 }
65 template <typename RouteTableAssociationIdT = Aws::String>
66 RouteTableAssociation& WithRouteTableAssociationId(RouteTableAssociationIdT&& value) {
67 SetRouteTableAssociationId(std::forward<RouteTableAssociationIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
77 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
78 template <typename RouteTableIdT = Aws::String>
79 void SetRouteTableId(RouteTableIdT&& value) {
80 m_routeTableIdHasBeenSet = true;
81 m_routeTableId = std::forward<RouteTableIdT>(value);
82 }
83 template <typename RouteTableIdT = Aws::String>
84 RouteTableAssociation& WithRouteTableId(RouteTableIdT&& value) {
85 SetRouteTableId(std::forward<RouteTableIdT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
96 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
97 template <typename SubnetIdT = Aws::String>
98 void SetSubnetId(SubnetIdT&& value) {
99 m_subnetIdHasBeenSet = true;
100 m_subnetId = std::forward<SubnetIdT>(value);
101 }
102 template <typename SubnetIdT = Aws::String>
104 SetSubnetId(std::forward<SubnetIdT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
114 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
115 template <typename GatewayIdT = Aws::String>
116 void SetGatewayId(GatewayIdT&& value) {
117 m_gatewayIdHasBeenSet = true;
118 m_gatewayId = std::forward<GatewayIdT>(value);
119 }
120 template <typename GatewayIdT = Aws::String>
122 SetGatewayId(std::forward<GatewayIdT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetPublicIpv4Pool() const { return m_publicIpv4Pool; }
133 inline bool PublicIpv4PoolHasBeenSet() const { return m_publicIpv4PoolHasBeenSet; }
134 template <typename PublicIpv4PoolT = Aws::String>
135 void SetPublicIpv4Pool(PublicIpv4PoolT&& value) {
136 m_publicIpv4PoolHasBeenSet = true;
137 m_publicIpv4Pool = std::forward<PublicIpv4PoolT>(value);
138 }
139 template <typename PublicIpv4PoolT = Aws::String>
140 RouteTableAssociation& WithPublicIpv4Pool(PublicIpv4PoolT&& value) {
141 SetPublicIpv4Pool(std::forward<PublicIpv4PoolT>(value));
142 return *this;
143 }
145
147
150 inline const RouteTableAssociationState& GetAssociationState() const { return m_associationState; }
151 inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; }
152 template <typename AssociationStateT = RouteTableAssociationState>
153 void SetAssociationState(AssociationStateT&& value) {
154 m_associationStateHasBeenSet = true;
155 m_associationState = std::forward<AssociationStateT>(value);
156 }
157 template <typename AssociationStateT = RouteTableAssociationState>
158 RouteTableAssociation& WithAssociationState(AssociationStateT&& value) {
159 SetAssociationState(std::forward<AssociationStateT>(value));
160 return *this;
161 }
163 private:
164 bool m_main{false};
165
166 Aws::String m_routeTableAssociationId;
167
168 Aws::String m_routeTableId;
169
170 Aws::String m_subnetId;
171
172 Aws::String m_gatewayId;
173
174 Aws::String m_publicIpv4Pool;
175
176 RouteTableAssociationState m_associationState;
177 bool m_mainHasBeenSet = false;
178 bool m_routeTableAssociationIdHasBeenSet = false;
179 bool m_routeTableIdHasBeenSet = false;
180 bool m_subnetIdHasBeenSet = false;
181 bool m_gatewayIdHasBeenSet = false;
182 bool m_publicIpv4PoolHasBeenSet = false;
183 bool m_associationStateHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace EC2
188} // namespace Aws
RouteTableAssociation & WithRouteTableAssociationId(RouteTableAssociationIdT &&value)
AWS_EC2_API RouteTableAssociation()=default
AWS_EC2_API RouteTableAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API RouteTableAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
RouteTableAssociation & WithMain(bool value)
RouteTableAssociation & WithGatewayId(GatewayIdT &&value)
RouteTableAssociation & WithRouteTableId(RouteTableIdT &&value)
RouteTableAssociation & WithSubnetId(SubnetIdT &&value)
const Aws::String & GetPublicIpv4Pool() const
const Aws::String & GetRouteTableAssociationId() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RouteTableAssociation & WithAssociationState(AssociationStateT &&value)
RouteTableAssociation & WithPublicIpv4Pool(PublicIpv4PoolT &&value)
void SetRouteTableId(RouteTableIdT &&value)
const Aws::String & GetRouteTableId() const
const RouteTableAssociationState & GetAssociationState() const
void SetPublicIpv4Pool(PublicIpv4PoolT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetRouteTableAssociationId(RouteTableAssociationIdT &&value)
void SetAssociationState(AssociationStateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream