AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteTableAssociation.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/RouteTableAssociationState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API RouteTableAssociation();
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline bool GetMain() const{ return m_main; }
49 inline bool MainHasBeenSet() const { return m_mainHasBeenSet; }
50 inline void SetMain(bool value) { m_mainHasBeenSet = true; m_main = value; }
51 inline RouteTableAssociation& WithMain(bool value) { SetMain(value); return *this;}
53
55
58 inline const Aws::String& GetRouteTableAssociationId() const{ return m_routeTableAssociationId; }
59 inline bool RouteTableAssociationIdHasBeenSet() const { return m_routeTableAssociationIdHasBeenSet; }
60 inline void SetRouteTableAssociationId(const Aws::String& value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId = value; }
61 inline void SetRouteTableAssociationId(Aws::String&& value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId = std::move(value); }
62 inline void SetRouteTableAssociationId(const char* value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId.assign(value); }
65 inline RouteTableAssociation& WithRouteTableAssociationId(const char* value) { SetRouteTableAssociationId(value); return *this;}
67
69
72 inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; }
73 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
74 inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
75 inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::move(value); }
76 inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); }
77 inline RouteTableAssociation& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
78 inline RouteTableAssociation& WithRouteTableId(Aws::String&& value) { SetRouteTableId(std::move(value)); return *this;}
79 inline RouteTableAssociation& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;}
81
83
87 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
88 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
89 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
90 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
91 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
92 inline RouteTableAssociation& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
93 inline RouteTableAssociation& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
94 inline RouteTableAssociation& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
96
98
101 inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
102 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
103 inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
104 inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::move(value); }
105 inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
106 inline RouteTableAssociation& WithGatewayId(const Aws::String& value) { SetGatewayId(value); return *this;}
107 inline RouteTableAssociation& WithGatewayId(Aws::String&& value) { SetGatewayId(std::move(value)); return *this;}
108 inline RouteTableAssociation& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
110
112
115 inline const RouteTableAssociationState& GetAssociationState() const{ return m_associationState; }
116 inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; }
117 inline void SetAssociationState(const RouteTableAssociationState& value) { m_associationStateHasBeenSet = true; m_associationState = value; }
118 inline void SetAssociationState(RouteTableAssociationState&& value) { m_associationStateHasBeenSet = true; m_associationState = std::move(value); }
122 private:
123
124 bool m_main;
125 bool m_mainHasBeenSet = false;
126
127 Aws::String m_routeTableAssociationId;
128 bool m_routeTableAssociationIdHasBeenSet = false;
129
130 Aws::String m_routeTableId;
131 bool m_routeTableIdHasBeenSet = false;
132
133 Aws::String m_subnetId;
134 bool m_subnetIdHasBeenSet = false;
135
136 Aws::String m_gatewayId;
137 bool m_gatewayIdHasBeenSet = false;
138
139 RouteTableAssociationState m_associationState;
140 bool m_associationStateHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace EC2
145} // namespace Aws
RouteTableAssociation & WithSubnetId(const Aws::String &value)
AWS_EC2_API RouteTableAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RouteTableAssociation & WithAssociationState(const RouteTableAssociationState &value)
AWS_EC2_API RouteTableAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
RouteTableAssociation & WithMain(bool value)
RouteTableAssociation & WithRouteTableId(const char *value)
RouteTableAssociation & WithRouteTableAssociationId(const char *value)
RouteTableAssociation & WithGatewayId(const char *value)
RouteTableAssociation & WithRouteTableAssociationId(Aws::String &&value)
const Aws::String & GetRouteTableAssociationId() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSubnetId(const Aws::String &value)
void SetRouteTableId(const Aws::String &value)
void SetAssociationState(const RouteTableAssociationState &value)
RouteTableAssociation & WithRouteTableAssociationId(const Aws::String &value)
void SetAssociationState(RouteTableAssociationState &&value)
RouteTableAssociation & WithRouteTableId(const Aws::String &value)
const Aws::String & GetRouteTableId() const
RouteTableAssociation & WithSubnetId(Aws::String &&value)
RouteTableAssociation & WithRouteTableId(Aws::String &&value)
const RouteTableAssociationState & GetAssociationState() const
RouteTableAssociation & WithGatewayId(const Aws::String &value)
void SetRouteTableAssociationId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetGatewayId(const Aws::String &value)
void SetRouteTableAssociationId(Aws::String &&value)
RouteTableAssociation & WithGatewayId(Aws::String &&value)
RouteTableAssociation & WithSubnetId(const char *value)
RouteTableAssociation & WithAssociationState(RouteTableAssociationState &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream