AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateRouteTableRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AssociateRouteTable"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
43 inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
44 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
45 inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
46 inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::move(value); }
47 inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
48 inline AssociateRouteTableRequest& WithGatewayId(const Aws::String& value) { SetGatewayId(value); return *this;}
49 inline AssociateRouteTableRequest& WithGatewayId(Aws::String&& value) { SetGatewayId(std::move(value)); return *this;}
50 inline AssociateRouteTableRequest& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
52
54
60 inline bool GetDryRun() const{ return m_dryRun; }
61 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
62 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 inline AssociateRouteTableRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
65
67
70 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
71 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
72 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
73 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
74 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
75 inline AssociateRouteTableRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
76 inline AssociateRouteTableRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
77 inline AssociateRouteTableRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
79
81
84 inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; }
85 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
86 inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
87 inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::move(value); }
88 inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); }
89 inline AssociateRouteTableRequest& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
90 inline AssociateRouteTableRequest& WithRouteTableId(Aws::String&& value) { SetRouteTableId(std::move(value)); return *this;}
91 inline AssociateRouteTableRequest& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;}
93 private:
94
95 Aws::String m_gatewayId;
96 bool m_gatewayIdHasBeenSet = false;
97
98 bool m_dryRun;
99 bool m_dryRunHasBeenSet = false;
100
101 Aws::String m_subnetId;
102 bool m_subnetIdHasBeenSet = false;
103
104 Aws::String m_routeTableId;
105 bool m_routeTableIdHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EC2
110} // namespace Aws
AssociateRouteTableRequest & WithGatewayId(const Aws::String &value)
AssociateRouteTableRequest & WithDryRun(bool value)
AssociateRouteTableRequest & WithSubnetId(Aws::String &&value)
AssociateRouteTableRequest & WithGatewayId(const char *value)
AssociateRouteTableRequest & WithRouteTableId(const char *value)
AssociateRouteTableRequest & WithSubnetId(const Aws::String &value)
AssociateRouteTableRequest & WithRouteTableId(const Aws::String &value)
AssociateRouteTableRequest & WithSubnetId(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
AssociateRouteTableRequest & WithGatewayId(Aws::String &&value)
AssociateRouteTableRequest & WithRouteTableId(Aws::String &&value)
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