AWS SDK for C++  1.9.67
AWS SDK for C++
EnableVgwRoutePropagationRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "EnableVgwRoutePropagation"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
48  inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
49 
55  inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
56 
62  inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
63 
69  inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::move(value); }
70 
76  inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
77 
83  inline EnableVgwRoutePropagationRequest& WithGatewayId(const Aws::String& value) { SetGatewayId(value); return *this;}
84 
90  inline EnableVgwRoutePropagationRequest& WithGatewayId(Aws::String&& value) { SetGatewayId(std::move(value)); return *this;}
91 
97  inline EnableVgwRoutePropagationRequest& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
98 
99 
104  inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; }
105 
110  inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
111 
116  inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; }
117 
122  inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::move(value); }
123 
128  inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); }
129 
134  inline EnableVgwRoutePropagationRequest& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;}
135 
140  inline EnableVgwRoutePropagationRequest& WithRouteTableId(Aws::String&& value) { SetRouteTableId(std::move(value)); return *this;}
141 
146  inline EnableVgwRoutePropagationRequest& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;}
147 
148 
155  inline bool GetDryRun() const{ return m_dryRun; }
156 
163  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
164 
171  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
172 
179  inline EnableVgwRoutePropagationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
180 
181  private:
182 
183  Aws::String m_gatewayId;
184  bool m_gatewayIdHasBeenSet;
185 
186  Aws::String m_routeTableId;
187  bool m_routeTableIdHasBeenSet;
188 
189  bool m_dryRun;
190  bool m_dryRunHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace EC2
195 } // namespace Aws
Aws::EC2::Model::EnableVgwRoutePropagationRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: EnableVgwRoutePropagationRequest.h:163
Aws::EC2::Model::EnableVgwRoutePropagationRequest::SetRouteTableId
void SetRouteTableId(const Aws::String &value)
Definition: EnableVgwRoutePropagationRequest.h:116
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::EnableVgwRoutePropagationRequest::SetGatewayId
void SetGatewayId(const Aws::String &value)
Definition: EnableVgwRoutePropagationRequest.h:62
Aws::EC2::Model::EnableVgwRoutePropagationRequest::GetGatewayId
const Aws::String & GetGatewayId() const
Definition: EnableVgwRoutePropagationRequest.h:48
Aws::EC2::Model::EnableVgwRoutePropagationRequest::SetGatewayId
void SetGatewayId(const char *value)
Definition: EnableVgwRoutePropagationRequest.h:76
Aws::EC2::Model::EnableVgwRoutePropagationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::EnableVgwRoutePropagationRequest::WithRouteTableId
EnableVgwRoutePropagationRequest & WithRouteTableId(const Aws::String &value)
Definition: EnableVgwRoutePropagationRequest.h:134
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::EnableVgwRoutePropagationRequest::WithRouteTableId
EnableVgwRoutePropagationRequest & WithRouteTableId(const char *value)
Definition: EnableVgwRoutePropagationRequest.h:146
Aws::EC2::Model::EnableVgwRoutePropagationRequest::GatewayIdHasBeenSet
bool GatewayIdHasBeenSet() const
Definition: EnableVgwRoutePropagationRequest.h:55
Aws::EC2::Model::EnableVgwRoutePropagationRequest::SetRouteTableId
void SetRouteTableId(const char *value)
Definition: EnableVgwRoutePropagationRequest.h:128
Aws::EC2::Model::EnableVgwRoutePropagationRequest::WithGatewayId
EnableVgwRoutePropagationRequest & WithGatewayId(const Aws::String &value)
Definition: EnableVgwRoutePropagationRequest.h:83
Aws::EC2::Model::EnableVgwRoutePropagationRequest::SetDryRun
void SetDryRun(bool value)
Definition: EnableVgwRoutePropagationRequest.h:171
Aws::EC2::Model::EnableVgwRoutePropagationRequest::EnableVgwRoutePropagationRequest
EnableVgwRoutePropagationRequest()
Aws::EC2::Model::EnableVgwRoutePropagationRequest::WithDryRun
EnableVgwRoutePropagationRequest & WithDryRun(bool value)
Definition: EnableVgwRoutePropagationRequest.h:179
EC2Request.h
AWSString.h
Aws::EC2::Model::EnableVgwRoutePropagationRequest::RouteTableIdHasBeenSet
bool RouteTableIdHasBeenSet() const
Definition: EnableVgwRoutePropagationRequest.h:110
Aws::EC2::Model::EnableVgwRoutePropagationRequest::SetRouteTableId
void SetRouteTableId(Aws::String &&value)
Definition: EnableVgwRoutePropagationRequest.h:122
Aws::EC2::Model::EnableVgwRoutePropagationRequest::SetGatewayId
void SetGatewayId(Aws::String &&value)
Definition: EnableVgwRoutePropagationRequest.h:69
Aws::EC2::Model::EnableVgwRoutePropagationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::EnableVgwRoutePropagationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableVgwRoutePropagationRequest.h:34
Aws::EC2::Model::EnableVgwRoutePropagationRequest::GetDryRun
bool GetDryRun() const
Definition: EnableVgwRoutePropagationRequest.h:155
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::EnableVgwRoutePropagationRequest::WithGatewayId
EnableVgwRoutePropagationRequest & WithGatewayId(Aws::String &&value)
Definition: EnableVgwRoutePropagationRequest.h:90
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::EnableVgwRoutePropagationRequest::WithRouteTableId
EnableVgwRoutePropagationRequest & WithRouteTableId(Aws::String &&value)
Definition: EnableVgwRoutePropagationRequest.h:140
Aws::EC2::Model::EnableVgwRoutePropagationRequest::WithGatewayId
EnableVgwRoutePropagationRequest & WithGatewayId(const char *value)
Definition: EnableVgwRoutePropagationRequest.h:97
Aws::EC2::Model::EnableVgwRoutePropagationRequest::GetRouteTableId
const Aws::String & GetRouteTableId() const
Definition: EnableVgwRoutePropagationRequest.h:104
EC2_EXPORTS.h
Aws::EC2::Model::EnableVgwRoutePropagationRequest
Definition: EnableVgwRoutePropagationRequest.h:26