AWS SDK for C++  1.9.65
AWS SDK for C++
RouteTableAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
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 EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline bool GetMain() const{ return m_main; }
48 
52  inline bool MainHasBeenSet() const { return m_mainHasBeenSet; }
53 
57  inline void SetMain(bool value) { m_mainHasBeenSet = true; m_main = value; }
58 
62  inline RouteTableAssociation& WithMain(bool value) { SetMain(value); return *this;}
63 
64 
68  inline const Aws::String& GetRouteTableAssociationId() const{ return m_routeTableAssociationId; }
69 
73  inline bool RouteTableAssociationIdHasBeenSet() const { return m_routeTableAssociationIdHasBeenSet; }
74 
78  inline void SetRouteTableAssociationId(const Aws::String& value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId = value; }
79 
83  inline void SetRouteTableAssociationId(Aws::String&& value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId = std::move(value); }
84 
88  inline void SetRouteTableAssociationId(const char* value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId.assign(value); }
89 
93  inline RouteTableAssociation& WithRouteTableAssociationId(const Aws::String& value) { SetRouteTableAssociationId(value); return *this;}
94 
98  inline RouteTableAssociation& WithRouteTableAssociationId(Aws::String&& value) { SetRouteTableAssociationId(std::move(value)); return *this;}
99 
103  inline RouteTableAssociation& WithRouteTableAssociationId(const char* value) { SetRouteTableAssociationId(value); return *this;}
104 
105 
109  inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; }
110 
114  inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
115 
119  inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
120 
124  inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::move(value); }
125 
129  inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); }
130 
134  inline RouteTableAssociation& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
135 
139  inline RouteTableAssociation& WithRouteTableId(Aws::String&& value) { SetRouteTableId(std::move(value)); return *this;}
140 
144  inline RouteTableAssociation& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;}
145 
146 
151  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
152 
157  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
158 
163  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
164 
169  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
170 
175  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
176 
181  inline RouteTableAssociation& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
182 
187  inline RouteTableAssociation& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
188 
193  inline RouteTableAssociation& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
194 
195 
199  inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
200 
204  inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
205 
209  inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
210 
214  inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::move(value); }
215 
219  inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
220 
224  inline RouteTableAssociation& WithGatewayId(const Aws::String& value) { SetGatewayId(value); return *this;}
225 
229  inline RouteTableAssociation& WithGatewayId(Aws::String&& value) { SetGatewayId(std::move(value)); return *this;}
230 
234  inline RouteTableAssociation& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
235 
236 
240  inline const RouteTableAssociationState& GetAssociationState() const{ return m_associationState; }
241 
245  inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; }
246 
250  inline void SetAssociationState(const RouteTableAssociationState& value) { m_associationStateHasBeenSet = true; m_associationState = value; }
251 
255  inline void SetAssociationState(RouteTableAssociationState&& value) { m_associationStateHasBeenSet = true; m_associationState = std::move(value); }
256 
260  inline RouteTableAssociation& WithAssociationState(const RouteTableAssociationState& value) { SetAssociationState(value); return *this;}
261 
265  inline RouteTableAssociation& WithAssociationState(RouteTableAssociationState&& value) { SetAssociationState(std::move(value)); return *this;}
266 
267  private:
268 
269  bool m_main;
270  bool m_mainHasBeenSet;
271 
272  Aws::String m_routeTableAssociationId;
273  bool m_routeTableAssociationIdHasBeenSet;
274 
275  Aws::String m_routeTableId;
276  bool m_routeTableIdHasBeenSet;
277 
278  Aws::String m_subnetId;
279  bool m_subnetIdHasBeenSet;
280 
281  Aws::String m_gatewayId;
282  bool m_gatewayIdHasBeenSet;
283 
284  RouteTableAssociationState m_associationState;
285  bool m_associationStateHasBeenSet;
286  };
287 
288 } // namespace Model
289 } // namespace EC2
290 } // namespace Aws
Aws::EC2::Model::RouteTableAssociation
Definition: RouteTableAssociation.h:34
Aws::EC2::Model::RouteTableAssociation::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: RouteTableAssociation.h:151
Aws::EC2::Model::RouteTableAssociation::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: RouteTableAssociation.h:157
Aws::EC2::Model::RouteTableAssociation::WithRouteTableAssociationId
RouteTableAssociation & WithRouteTableAssociationId(const Aws::String &value)
Definition: RouteTableAssociation.h:93
Aws::EC2::Model::RouteTableAssociation::SetRouteTableId
void SetRouteTableId(Aws::String &&value)
Definition: RouteTableAssociation.h:124
Aws::EC2::Model::RouteTableAssociation::RouteTableIdHasBeenSet
bool RouteTableIdHasBeenSet() const
Definition: RouteTableAssociation.h:114
Aws::EC2::Model::RouteTableAssociation::SetGatewayId
void SetGatewayId(const Aws::String &value)
Definition: RouteTableAssociation.h:209
Aws::EC2::Model::RouteTableAssociation::SetRouteTableAssociationId
void SetRouteTableAssociationId(const char *value)
Definition: RouteTableAssociation.h:88
Aws::EC2::Model::RouteTableAssociation::GetRouteTableId
const Aws::String & GetRouteTableId() const
Definition: RouteTableAssociation.h:109
Aws::EC2::Model::RouteTableAssociation::GatewayIdHasBeenSet
bool GatewayIdHasBeenSet() const
Definition: RouteTableAssociation.h:204
Aws::EC2::Model::RouteTableAssociation::WithRouteTableId
RouteTableAssociation & WithRouteTableId(const char *value)
Definition: RouteTableAssociation.h:144
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::RouteTableAssociation::SetSubnetId
void SetSubnetId(const char *value)
Definition: RouteTableAssociation.h:175
Aws::EC2::Model::RouteTableAssociation::WithGatewayId
RouteTableAssociation & WithGatewayId(const char *value)
Definition: RouteTableAssociation.h:234
AWSStreamFwd.h
Aws::EC2::Model::RouteTableAssociation::WithMain
RouteTableAssociation & WithMain(bool value)
Definition: RouteTableAssociation.h:62
Aws::EC2::Model::RouteTableAssociation::SetRouteTableAssociationId
void SetRouteTableAssociationId(Aws::String &&value)
Definition: RouteTableAssociation.h:83
Aws::EC2::Model::RouteTableAssociation::SetGatewayId
void SetGatewayId(const char *value)
Definition: RouteTableAssociation.h:219
Aws::EC2::Model::RouteTableAssociation::WithGatewayId
RouteTableAssociation & WithGatewayId(Aws::String &&value)
Definition: RouteTableAssociation.h:229
Aws::EC2::Model::RouteTableAssociation::WithRouteTableId
RouteTableAssociation & WithRouteTableId(Aws::String &&value)
Definition: RouteTableAssociation.h:139
Aws::EC2::Model::RouteTableAssociation::AssociationStateHasBeenSet
bool AssociationStateHasBeenSet() const
Definition: RouteTableAssociation.h:245
Aws::EC2::Model::RouteTableAssociation::SetRouteTableId
void SetRouteTableId(const char *value)
Definition: RouteTableAssociation.h:129
RouteTableAssociationState.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::RouteTableAssociation::WithRouteTableAssociationId
RouteTableAssociation & WithRouteTableAssociationId(const char *value)
Definition: RouteTableAssociation.h:103
Aws::EC2::Model::RouteTableAssociation::SetRouteTableId
void SetRouteTableId(const Aws::String &value)
Definition: RouteTableAssociation.h:119
Aws::EC2::Model::RouteTableAssociation::SetRouteTableAssociationId
void SetRouteTableAssociationId(const Aws::String &value)
Definition: RouteTableAssociation.h:78
Aws::EC2::Model::RouteTableAssociation::WithRouteTableAssociationId
RouteTableAssociation & WithRouteTableAssociationId(Aws::String &&value)
Definition: RouteTableAssociation.h:98
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::RouteTableAssociation::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: RouteTableAssociation.h:163
Aws::EC2::Model::RouteTableAssociation::MainHasBeenSet
bool MainHasBeenSet() const
Definition: RouteTableAssociation.h:52
Aws::EC2::Model::RouteTableAssociation::WithRouteTableId
RouteTableAssociation & WithRouteTableId(const Aws::String &value)
Definition: RouteTableAssociation.h:134
Aws::EC2::Model::RouteTableAssociation::GetGatewayId
const Aws::String & GetGatewayId() const
Definition: RouteTableAssociation.h:199
Aws::EC2::Model::RouteTableAssociation::WithAssociationState
RouteTableAssociation & WithAssociationState(RouteTableAssociationState &&value)
Definition: RouteTableAssociation.h:265
Aws::EC2::Model::RouteTableAssociation::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: RouteTableAssociation.h:169
Aws::EC2::Model::RouteTableAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::RouteTableAssociation::GetAssociationState
const RouteTableAssociationState & GetAssociationState() const
Definition: RouteTableAssociation.h:240
AWSString.h
Aws::EC2::Model::RouteTableAssociation::SetAssociationState
void SetAssociationState(const RouteTableAssociationState &value)
Definition: RouteTableAssociation.h:250
Aws::EC2::Model::RouteTableAssociation::RouteTableAssociation
RouteTableAssociation()
Aws::EC2::Model::RouteTableAssociation::WithSubnetId
RouteTableAssociation & WithSubnetId(Aws::String &&value)
Definition: RouteTableAssociation.h:187
Aws::EC2::Model::RouteTableAssociationState
Definition: RouteTableAssociationState.h:34
Aws::EC2::Model::RouteTableAssociation::WithSubnetId
RouteTableAssociation & WithSubnetId(const Aws::String &value)
Definition: RouteTableAssociation.h:181
Aws::EC2::Model::RouteTableAssociation::GetMain
bool GetMain() const
Definition: RouteTableAssociation.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RouteTableAssociation::GetRouteTableAssociationId
const Aws::String & GetRouteTableAssociationId() const
Definition: RouteTableAssociation.h:68
Aws::EC2::Model::RouteTableAssociation::SetAssociationState
void SetAssociationState(RouteTableAssociationState &&value)
Definition: RouteTableAssociation.h:255
Aws::EC2::Model::RouteTableAssociation::SetMain
void SetMain(bool value)
Definition: RouteTableAssociation.h:57
Aws::EC2::Model::RouteTableAssociation::RouteTableAssociation
RouteTableAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::RouteTableAssociation::operator=
RouteTableAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::RouteTableAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h
Aws::EC2::Model::RouteTableAssociation::WithSubnetId
RouteTableAssociation & WithSubnetId(const char *value)
Definition: RouteTableAssociation.h:193
Aws::EC2::Model::RouteTableAssociation::WithGatewayId
RouteTableAssociation & WithGatewayId(const Aws::String &value)
Definition: RouteTableAssociation.h:224
Aws::EC2::Model::RouteTableAssociation::RouteTableAssociationIdHasBeenSet
bool RouteTableAssociationIdHasBeenSet() const
Definition: RouteTableAssociation.h:73
Aws::EC2::Model::RouteTableAssociation::SetGatewayId
void SetGatewayId(Aws::String &&value)
Definition: RouteTableAssociation.h:214
Aws::EC2::Model::RouteTableAssociation::WithAssociationState
RouteTableAssociation & WithAssociationState(const RouteTableAssociationState &value)
Definition: RouteTableAssociation.h:260