AWS SDK for C++

AWS SDK for C++ Version 1.11.634

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() = default;
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 template<typename RouteTableAssociationIdT = Aws::String>
61 void SetRouteTableAssociationId(RouteTableAssociationIdT&& value) { m_routeTableAssociationIdHasBeenSet = true; m_routeTableAssociationId = std::forward<RouteTableAssociationIdT>(value); }
62 template<typename RouteTableAssociationIdT = Aws::String>
63 RouteTableAssociation& WithRouteTableAssociationId(RouteTableAssociationIdT&& value) { SetRouteTableAssociationId(std::forward<RouteTableAssociationIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
71 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
72 template<typename RouteTableIdT = Aws::String>
73 void SetRouteTableId(RouteTableIdT&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::forward<RouteTableIdT>(value); }
74 template<typename RouteTableIdT = Aws::String>
75 RouteTableAssociation& WithRouteTableId(RouteTableIdT&& value) { SetRouteTableId(std::forward<RouteTableIdT>(value)); return *this;}
77
79
83 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
84 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
85 template<typename SubnetIdT = Aws::String>
86 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
87 template<typename SubnetIdT = Aws::String>
88 RouteTableAssociation& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
90
92
95 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
96 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
97 template<typename GatewayIdT = Aws::String>
98 void SetGatewayId(GatewayIdT&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::forward<GatewayIdT>(value); }
99 template<typename GatewayIdT = Aws::String>
100 RouteTableAssociation& WithGatewayId(GatewayIdT&& value) { SetGatewayId(std::forward<GatewayIdT>(value)); return *this;}
102
104
108 inline const Aws::String& GetPublicIpv4Pool() const { return m_publicIpv4Pool; }
109 inline bool PublicIpv4PoolHasBeenSet() const { return m_publicIpv4PoolHasBeenSet; }
110 template<typename PublicIpv4PoolT = Aws::String>
111 void SetPublicIpv4Pool(PublicIpv4PoolT&& value) { m_publicIpv4PoolHasBeenSet = true; m_publicIpv4Pool = std::forward<PublicIpv4PoolT>(value); }
112 template<typename PublicIpv4PoolT = Aws::String>
113 RouteTableAssociation& WithPublicIpv4Pool(PublicIpv4PoolT&& value) { SetPublicIpv4Pool(std::forward<PublicIpv4PoolT>(value)); return *this;}
115
117
120 inline const RouteTableAssociationState& GetAssociationState() const { return m_associationState; }
121 inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; }
122 template<typename AssociationStateT = RouteTableAssociationState>
123 void SetAssociationState(AssociationStateT&& value) { m_associationStateHasBeenSet = true; m_associationState = std::forward<AssociationStateT>(value); }
124 template<typename AssociationStateT = RouteTableAssociationState>
125 RouteTableAssociation& WithAssociationState(AssociationStateT&& value) { SetAssociationState(std::forward<AssociationStateT>(value)); return *this;}
127 private:
128
129 bool m_main{false};
130 bool m_mainHasBeenSet = false;
131
132 Aws::String m_routeTableAssociationId;
133 bool m_routeTableAssociationIdHasBeenSet = false;
134
135 Aws::String m_routeTableId;
136 bool m_routeTableIdHasBeenSet = false;
137
138 Aws::String m_subnetId;
139 bool m_subnetIdHasBeenSet = false;
140
141 Aws::String m_gatewayId;
142 bool m_gatewayIdHasBeenSet = false;
143
144 Aws::String m_publicIpv4Pool;
145 bool m_publicIpv4PoolHasBeenSet = false;
146
147 RouteTableAssociationState m_associationState;
148 bool m_associationStateHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace EC2
153} // 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