AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyLocalGatewayRouteRequest.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 ModifyLocalGatewayRouteRequest() = 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 "ModifyLocalGatewayRoute"; }
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
40 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
41 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
42 template <typename DestinationCidrBlockT = Aws::String>
43 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) {
44 m_destinationCidrBlockHasBeenSet = true;
45 m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value);
46 }
47 template <typename DestinationCidrBlockT = Aws::String>
49 SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLocalGatewayRouteTableId() const { return m_localGatewayRouteTableId; }
59 inline bool LocalGatewayRouteTableIdHasBeenSet() const { return m_localGatewayRouteTableIdHasBeenSet; }
60 template <typename LocalGatewayRouteTableIdT = Aws::String>
61 void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT&& value) {
62 m_localGatewayRouteTableIdHasBeenSet = true;
63 m_localGatewayRouteTableId = std::forward<LocalGatewayRouteTableIdT>(value);
64 }
65 template <typename LocalGatewayRouteTableIdT = Aws::String>
67 SetLocalGatewayRouteTableId(std::forward<LocalGatewayRouteTableIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLocalGatewayVirtualInterfaceGroupId() const { return m_localGatewayVirtualInterfaceGroupId; }
77 inline bool LocalGatewayVirtualInterfaceGroupIdHasBeenSet() const { return m_localGatewayVirtualInterfaceGroupIdHasBeenSet; }
78 template <typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
79 void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) {
80 m_localGatewayVirtualInterfaceGroupIdHasBeenSet = true;
81 m_localGatewayVirtualInterfaceGroupId = std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value);
82 }
83 template <typename LocalGatewayVirtualInterfaceGroupIdT = Aws::String>
84 ModifyLocalGatewayRouteRequest& WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT&& value) {
85 SetLocalGatewayVirtualInterfaceGroupId(std::forward<LocalGatewayVirtualInterfaceGroupIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
95 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
96 template <typename NetworkInterfaceIdT = Aws::String>
97 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
98 m_networkInterfaceIdHasBeenSet = true;
99 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
100 }
101 template <typename NetworkInterfaceIdT = Aws::String>
103 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
104 return *this;
105 }
107
109
115 inline bool GetDryRun() const { return m_dryRun; }
116 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
117 inline void SetDryRun(bool value) {
118 m_dryRunHasBeenSet = true;
119 m_dryRun = value;
120 }
122 SetDryRun(value);
123 return *this;
124 }
126
128
134 inline const Aws::String& GetDestinationPrefixListId() const { return m_destinationPrefixListId; }
135 inline bool DestinationPrefixListIdHasBeenSet() const { return m_destinationPrefixListIdHasBeenSet; }
136 template <typename DestinationPrefixListIdT = Aws::String>
137 void SetDestinationPrefixListId(DestinationPrefixListIdT&& value) {
138 m_destinationPrefixListIdHasBeenSet = true;
139 m_destinationPrefixListId = std::forward<DestinationPrefixListIdT>(value);
140 }
141 template <typename DestinationPrefixListIdT = Aws::String>
143 SetDestinationPrefixListId(std::forward<DestinationPrefixListIdT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_destinationCidrBlock;
149
150 Aws::String m_localGatewayRouteTableId;
151
152 Aws::String m_localGatewayVirtualInterfaceGroupId;
153
154 Aws::String m_networkInterfaceId;
155
156 bool m_dryRun{false};
157
158 Aws::String m_destinationPrefixListId;
159 bool m_destinationCidrBlockHasBeenSet = false;
160 bool m_localGatewayRouteTableIdHasBeenSet = false;
161 bool m_localGatewayVirtualInterfaceGroupIdHasBeenSet = false;
162 bool m_networkInterfaceIdHasBeenSet = false;
163 bool m_dryRunHasBeenSet = false;
164 bool m_destinationPrefixListIdHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace EC2
169} // namespace Aws
void SetDestinationPrefixListId(DestinationPrefixListIdT &&value)
void SetLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
ModifyLocalGatewayRouteRequest & WithLocalGatewayRouteTableId(LocalGatewayRouteTableIdT &&value)
ModifyLocalGatewayRouteRequest & WithDestinationPrefixListId(DestinationPrefixListIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ModifyLocalGatewayRouteRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
void SetLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
ModifyLocalGatewayRouteRequest & WithLocalGatewayVirtualInterfaceGroupId(LocalGatewayVirtualInterfaceGroupIdT &&value)
ModifyLocalGatewayRouteRequest & WithDryRun(bool value)
ModifyLocalGatewayRouteRequest & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String