AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EnableVgwRoutePropagationRequest.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
24 public:
25 AWS_EC2_API EnableVgwRoutePropagationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "EnableVgwRoutePropagation"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
45 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
46 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
47 template <typename GatewayIdT = Aws::String>
48 void SetGatewayId(GatewayIdT&& value) {
49 m_gatewayIdHasBeenSet = true;
50 m_gatewayId = std::forward<GatewayIdT>(value);
51 }
52 template <typename GatewayIdT = Aws::String>
54 SetGatewayId(std::forward<GatewayIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetRouteTableId() const { return m_routeTableId; }
65 inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; }
66 template <typename RouteTableIdT = Aws::String>
67 void SetRouteTableId(RouteTableIdT&& value) {
68 m_routeTableIdHasBeenSet = true;
69 m_routeTableId = std::forward<RouteTableIdT>(value);
70 }
71 template <typename RouteTableIdT = Aws::String>
73 SetRouteTableId(std::forward<RouteTableIdT>(value));
74 return *this;
75 }
77
79
85 inline bool GetDryRun() const { return m_dryRun; }
86 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
87 inline void SetDryRun(bool value) {
88 m_dryRunHasBeenSet = true;
89 m_dryRun = value;
90 }
92 SetDryRun(value);
93 return *this;
94 }
96 private:
97 Aws::String m_gatewayId;
98
99 Aws::String m_routeTableId;
100
101 bool m_dryRun{false};
102 bool m_gatewayIdHasBeenSet = false;
103 bool m_routeTableIdHasBeenSet = false;
104 bool m_dryRunHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace EC2
109} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
EnableVgwRoutePropagationRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
EnableVgwRoutePropagationRequest & WithGatewayId(GatewayIdT &&value)
EnableVgwRoutePropagationRequest & WithRouteTableId(RouteTableIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String