AWS SDK for C++  1.9.64
AWS SDK for C++
AssociateRouteTableRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace 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::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 
61  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
62 
69  inline AssociateRouteTableRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70 
71 
75  inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; }
76 
80  inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
81 
85  inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
86 
90  inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::move(value); }
91 
95  inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); }
96 
100  inline AssociateRouteTableRequest& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
101 
105  inline AssociateRouteTableRequest& WithRouteTableId(Aws::String&& value) { SetRouteTableId(std::move(value)); return *this;}
106 
110  inline AssociateRouteTableRequest& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;}
111 
112 
116  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
117 
121  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
122 
126  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
127 
131  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
132 
136  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
137 
141  inline AssociateRouteTableRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
142 
146  inline AssociateRouteTableRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
147 
151  inline AssociateRouteTableRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
152 
153 
157  inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
158 
162  inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
163 
167  inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
168 
172  inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::move(value); }
173 
177  inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
178 
182  inline AssociateRouteTableRequest& WithGatewayId(const Aws::String& value) { SetGatewayId(value); return *this;}
183 
187  inline AssociateRouteTableRequest& WithGatewayId(Aws::String&& value) { SetGatewayId(std::move(value)); return *this;}
188 
192  inline AssociateRouteTableRequest& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
193 
194  private:
195 
196  bool m_dryRun;
197  bool m_dryRunHasBeenSet;
198 
199  Aws::String m_routeTableId;
200  bool m_routeTableIdHasBeenSet;
201 
202  Aws::String m_subnetId;
203  bool m_subnetIdHasBeenSet;
204 
205  Aws::String m_gatewayId;
206  bool m_gatewayIdHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace EC2
211 } // namespace Aws
Aws::EC2::Model::AssociateRouteTableRequest::SetGatewayId
void SetGatewayId(Aws::String &&value)
Definition: AssociateRouteTableRequest.h:172
Aws::EC2::Model::AssociateRouteTableRequest::SetRouteTableId
void SetRouteTableId(Aws::String &&value)
Definition: AssociateRouteTableRequest.h:90
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AssociateRouteTableRequest::WithGatewayId
AssociateRouteTableRequest & WithGatewayId(const Aws::String &value)
Definition: AssociateRouteTableRequest.h:182
Aws::EC2::Model::AssociateRouteTableRequest::WithRouteTableId
AssociateRouteTableRequest & WithRouteTableId(Aws::String &&value)
Definition: AssociateRouteTableRequest.h:105
Aws::EC2::Model::AssociateRouteTableRequest::SetDryRun
void SetDryRun(bool value)
Definition: AssociateRouteTableRequest.h:61
Aws::EC2::Model::AssociateRouteTableRequest::WithSubnetId
AssociateRouteTableRequest & WithSubnetId(const Aws::String &value)
Definition: AssociateRouteTableRequest.h:141
Aws::EC2::Model::AssociateRouteTableRequest::GetRouteTableId
const Aws::String & GetRouteTableId() const
Definition: AssociateRouteTableRequest.h:75
Aws::EC2::Model::AssociateRouteTableRequest::WithGatewayId
AssociateRouteTableRequest & WithGatewayId(Aws::String &&value)
Definition: AssociateRouteTableRequest.h:187
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AssociateRouteTableRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateRouteTableRequest.h:30
Aws::EC2::Model::AssociateRouteTableRequest::SetGatewayId
void SetGatewayId(const char *value)
Definition: AssociateRouteTableRequest.h:177
Aws::EC2::Model::AssociateRouteTableRequest::WithRouteTableId
AssociateRouteTableRequest & WithRouteTableId(const char *value)
Definition: AssociateRouteTableRequest.h:110
Aws::EC2::Model::AssociateRouteTableRequest::SetRouteTableId
void SetRouteTableId(const Aws::String &value)
Definition: AssociateRouteTableRequest.h:85
Aws::EC2::Model::AssociateRouteTableRequest::AssociateRouteTableRequest
AssociateRouteTableRequest()
Aws::EC2::Model::AssociateRouteTableRequest::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: AssociateRouteTableRequest.h:116
Aws::EC2::Model::AssociateRouteTableRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::AssociateRouteTableRequest::WithRouteTableId
AssociateRouteTableRequest & WithRouteTableId(const Aws::String &value)
Definition: AssociateRouteTableRequest.h:100
Aws::EC2::Model::AssociateRouteTableRequest::WithGatewayId
AssociateRouteTableRequest & WithGatewayId(const char *value)
Definition: AssociateRouteTableRequest.h:192
Aws::EC2::Model::AssociateRouteTableRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::AssociateRouteTableRequest::GetDryRun
bool GetDryRun() const
Definition: AssociateRouteTableRequest.h:45
EC2Request.h
Aws::EC2::Model::AssociateRouteTableRequest::SetSubnetId
void SetSubnetId(const char *value)
Definition: AssociateRouteTableRequest.h:136
AWSString.h
Aws::EC2::Model::AssociateRouteTableRequest::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: AssociateRouteTableRequest.h:131
Aws::EC2::Model::AssociateRouteTableRequest::GatewayIdHasBeenSet
bool GatewayIdHasBeenSet() const
Definition: AssociateRouteTableRequest.h:162
Aws::EC2::Model::AssociateRouteTableRequest::WithSubnetId
AssociateRouteTableRequest & WithSubnetId(const char *value)
Definition: AssociateRouteTableRequest.h:151
Aws::EC2::Model::AssociateRouteTableRequest::SetRouteTableId
void SetRouteTableId(const char *value)
Definition: AssociateRouteTableRequest.h:95
Aws::EC2::Model::AssociateRouteTableRequest::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: AssociateRouteTableRequest.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AssociateRouteTableRequest::GetGatewayId
const Aws::String & GetGatewayId() const
Definition: AssociateRouteTableRequest.h:157
Aws::EC2::Model::AssociateRouteTableRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AssociateRouteTableRequest.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AssociateRouteTableRequest::SetGatewayId
void SetGatewayId(const Aws::String &value)
Definition: AssociateRouteTableRequest.h:167
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AssociateRouteTableRequest::WithDryRun
AssociateRouteTableRequest & WithDryRun(bool value)
Definition: AssociateRouteTableRequest.h:69
Aws::EC2::Model::AssociateRouteTableRequest::RouteTableIdHasBeenSet
bool RouteTableIdHasBeenSet() const
Definition: AssociateRouteTableRequest.h:80
EC2_EXPORTS.h
Aws::EC2::Model::AssociateRouteTableRequest
Definition: AssociateRouteTableRequest.h:22
Aws::EC2::Model::AssociateRouteTableRequest::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: AssociateRouteTableRequest.h:121
Aws::EC2::Model::AssociateRouteTableRequest::WithSubnetId
AssociateRouteTableRequest & WithSubnetId(Aws::String &&value)
Definition: AssociateRouteTableRequest.h:146