AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
107 inline const RouteTableAssociationState& GetAssociationState() const { return m_associationState; }
108 inline bool AssociationStateHasBeenSet() const { return m_associationStateHasBeenSet; }
109 template<typename AssociationStateT = RouteTableAssociationState>
110 void SetAssociationState(AssociationStateT&& value) { m_associationStateHasBeenSet = true; m_associationState = std::forward<AssociationStateT>(value); }
111 template<typename AssociationStateT = RouteTableAssociationState>
112 RouteTableAssociation& WithAssociationState(AssociationStateT&& value) { SetAssociationState(std::forward<AssociationStateT>(value)); return *this;}
114 private:
115
116 bool m_main{false};
117 bool m_mainHasBeenSet = false;
118
119 Aws::String m_routeTableAssociationId;
120 bool m_routeTableAssociationIdHasBeenSet = false;
121
122 Aws::String m_routeTableId;
123 bool m_routeTableIdHasBeenSet = false;
124
125 Aws::String m_subnetId;
126 bool m_subnetIdHasBeenSet = false;
127
128 Aws::String m_gatewayId;
129 bool m_gatewayIdHasBeenSet = false;
130
131 RouteTableAssociationState m_associationState;
132 bool m_associationStateHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace EC2
137} // 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 & GetRouteTableAssociationId() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RouteTableAssociation & WithAssociationState(AssociationStateT &&value)
void SetRouteTableId(RouteTableIdT &&value)
const Aws::String & GetRouteTableId() const
const RouteTableAssociationState & GetAssociationState() const
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