AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssociateRouteTableRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API AssociateRouteTableRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "AssociateRouteTable"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
40 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
41 template <typename GatewayIdT = Aws::String>
42 void SetGatewayId(GatewayIdT&& value) {
43 m_gatewayIdHasBeenSet = true;
44 m_gatewayId = std::forward<GatewayIdT>(value);
45 }
46 template <typename GatewayIdT = Aws::String>
48 SetGatewayId(std::forward<GatewayIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetPublicIpv4Pool() const { return m_publicIpv4Pool; }
59 inline bool PublicIpv4PoolHasBeenSet() const { return m_publicIpv4PoolHasBeenSet; }
60 template <typename PublicIpv4PoolT = Aws::String>
61 void SetPublicIpv4Pool(PublicIpv4PoolT&& value) {
62 m_publicIpv4PoolHasBeenSet = true;
63 m_publicIpv4Pool = std::forward<PublicIpv4PoolT>(value);
64 }
65 template <typename PublicIpv4PoolT = Aws::String>
67 SetPublicIpv4Pool(std::forward<PublicIpv4PoolT>(value));
68 return *this;
69 }
71
73
79 inline bool GetDryRun() const { return m_dryRun; }
80 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
81 inline void SetDryRun(bool value) {
82 m_dryRunHasBeenSet = true;
83 m_dryRun = value;
84 }
86 SetDryRun(value);
87 return *this;
88 }
90
92
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& GetRouteTableId() const { return m_routeTableId; }
114 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
115 template <typename RouteTableIdT = Aws::String>
116 void SetRouteTableId(RouteTableIdT&& value) {
117 m_routeTableIdHasBeenSet = true;
118 m_routeTableId = std::forward<RouteTableIdT>(value);
119 }
120 template <typename RouteTableIdT = Aws::String>
122 SetRouteTableId(std::forward<RouteTableIdT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_gatewayId;
128
129 Aws::String m_publicIpv4Pool;
130
131 bool m_dryRun{false};
132
133 Aws::String m_subnetId;
134
135 Aws::String m_routeTableId;
136 bool m_gatewayIdHasBeenSet = false;
137 bool m_publicIpv4PoolHasBeenSet = false;
138 bool m_dryRunHasBeenSet = false;
139 bool m_subnetIdHasBeenSet = false;
140 bool m_routeTableIdHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace EC2
145} // namespace Aws
AssociateRouteTableRequest & WithSubnetId(SubnetIdT &&value)
AWS_EC2_API AssociateRouteTableRequest()=default
AssociateRouteTableRequest & WithDryRun(bool value)
AssociateRouteTableRequest & WithRouteTableId(RouteTableIdT &&value)
AssociateRouteTableRequest & WithPublicIpv4Pool(PublicIpv4PoolT &&value)
AssociateRouteTableRequest & WithGatewayId(GatewayIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String