AWS SDK for C++

AWS SDK for C++ Version 1.11.811

Loading...
Searching...
No Matches
CreateClientVpnRouteRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API CreateClientVpnRouteRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateClientVpnRoute"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
41 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
42 template <typename ClientVpnEndpointIdT = Aws::String>
43 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
44 m_clientVpnEndpointIdHasBeenSet = true;
45 m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value);
46 }
47 template <typename ClientVpnEndpointIdT = Aws::String>
49 SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value));
50 return *this;
51 }
53
55
64 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
65 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
66 template <typename DestinationCidrBlockT = Aws::String>
67 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) {
68 m_destinationCidrBlockHasBeenSet = true;
69 m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value);
70 }
71 template <typename DestinationCidrBlockT = Aws::String>
72 CreateClientVpnRouteRequest& WithDestinationCidrBlock(DestinationCidrBlockT&& value) {
73 SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value));
74 return *this;
75 }
77
79
87 inline const Aws::String& GetTargetVpcSubnetId() const { return m_targetVpcSubnetId; }
88 inline bool TargetVpcSubnetIdHasBeenSet() const { return m_targetVpcSubnetIdHasBeenSet; }
89 template <typename TargetVpcSubnetIdT = Aws::String>
90 void SetTargetVpcSubnetId(TargetVpcSubnetIdT&& value) {
91 m_targetVpcSubnetIdHasBeenSet = true;
92 m_targetVpcSubnetId = std::forward<TargetVpcSubnetIdT>(value);
93 }
94 template <typename TargetVpcSubnetIdT = Aws::String>
96 SetTargetVpcSubnetId(std::forward<TargetVpcSubnetIdT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 template <typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) {
109 m_descriptionHasBeenSet = true;
110 m_description = std::forward<DescriptionT>(value);
111 }
112 template <typename DescriptionT = Aws::String>
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
126 inline const Aws::String& GetClientToken() const { return m_clientToken; }
127 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
128 template <typename ClientTokenT = Aws::String>
129 void SetClientToken(ClientTokenT&& value) {
130 m_clientTokenHasBeenSet = true;
131 m_clientToken = std::forward<ClientTokenT>(value);
132 }
133 template <typename ClientTokenT = Aws::String>
135 SetClientToken(std::forward<ClientTokenT>(value));
136 return *this;
137 }
139
141
147 inline bool GetDryRun() const { return m_dryRun; }
148 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
149 inline void SetDryRun(bool value) {
150 m_dryRunHasBeenSet = true;
151 m_dryRun = value;
152 }
154 SetDryRun(value);
155 return *this;
156 }
158 private:
159 Aws::String m_clientVpnEndpointId;
160
161 Aws::String m_destinationCidrBlock;
162
163 Aws::String m_targetVpcSubnetId;
164
165 Aws::String m_description;
166
168
169 bool m_dryRun{false};
170 bool m_clientVpnEndpointIdHasBeenSet = false;
171 bool m_destinationCidrBlockHasBeenSet = false;
172 bool m_targetVpcSubnetIdHasBeenSet = false;
173 bool m_descriptionHasBeenSet = false;
174 bool m_clientTokenHasBeenSet = true;
175 bool m_dryRunHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace EC2
180} // namespace Aws
CreateClientVpnRouteRequest & WithClientToken(ClientTokenT &&value)
CreateClientVpnRouteRequest & WithDescription(DescriptionT &&value)
CreateClientVpnRouteRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API CreateClientVpnRouteRequest()=default
CreateClientVpnRouteRequest & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
CreateClientVpnRouteRequest & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
CreateClientVpnRouteRequest & WithTargetVpcSubnetId(TargetVpcSubnetIdT &&value)
void SetClientVpnEndpointId(ClientVpnEndpointIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String