AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
85 inline const Aws::String& GetTargetVpcSubnetId() const { return m_targetVpcSubnetId; }
86 inline bool TargetVpcSubnetIdHasBeenSet() const { return m_targetVpcSubnetIdHasBeenSet; }
87 template <typename TargetVpcSubnetIdT = Aws::String>
88 void SetTargetVpcSubnetId(TargetVpcSubnetIdT&& value) {
89 m_targetVpcSubnetIdHasBeenSet = true;
90 m_targetVpcSubnetId = std::forward<TargetVpcSubnetIdT>(value);
91 }
92 template <typename TargetVpcSubnetIdT = Aws::String>
94 SetTargetVpcSubnetId(std::forward<TargetVpcSubnetIdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetDescription() const { return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 template <typename DescriptionT = Aws::String>
106 void SetDescription(DescriptionT&& value) {
107 m_descriptionHasBeenSet = true;
108 m_description = std::forward<DescriptionT>(value);
109 }
110 template <typename DescriptionT = Aws::String>
112 SetDescription(std::forward<DescriptionT>(value));
113 return *this;
114 }
116
118
124 inline const Aws::String& GetClientToken() const { return m_clientToken; }
125 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
126 template <typename ClientTokenT = Aws::String>
127 void SetClientToken(ClientTokenT&& value) {
128 m_clientTokenHasBeenSet = true;
129 m_clientToken = std::forward<ClientTokenT>(value);
130 }
131 template <typename ClientTokenT = Aws::String>
133 SetClientToken(std::forward<ClientTokenT>(value));
134 return *this;
135 }
137
139
145 inline bool GetDryRun() const { return m_dryRun; }
146 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
147 inline void SetDryRun(bool value) {
148 m_dryRunHasBeenSet = true;
149 m_dryRun = value;
150 }
152 SetDryRun(value);
153 return *this;
154 }
156 private:
157 Aws::String m_clientVpnEndpointId;
158
159 Aws::String m_destinationCidrBlock;
160
161 Aws::String m_targetVpcSubnetId;
162
163 Aws::String m_description;
164
166
167 bool m_dryRun{false};
168 bool m_clientVpnEndpointIdHasBeenSet = false;
169 bool m_destinationCidrBlockHasBeenSet = false;
170 bool m_targetVpcSubnetIdHasBeenSet = false;
171 bool m_descriptionHasBeenSet = false;
172 bool m_clientTokenHasBeenSet = true;
173 bool m_dryRunHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace EC2
178} // 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