AWS SDK for C++  1.9.65
AWS SDK for C++
CreateClientVpnRouteRequest.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 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "CreateClientVpnRoute"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; }
44 
48  inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
49 
53  inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
54 
58  inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
59 
63  inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
64 
68  inline CreateClientVpnRouteRequest& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;}
69 
73  inline CreateClientVpnRouteRequest& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;}
74 
78  inline CreateClientVpnRouteRequest& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
79 
80 
90  inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
91 
101  inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
102 
112  inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
113 
123  inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
124 
134  inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
135 
145  inline CreateClientVpnRouteRequest& WithDestinationCidrBlock(const Aws::String& value) { SetDestinationCidrBlock(value); return *this;}
146 
156  inline CreateClientVpnRouteRequest& WithDestinationCidrBlock(Aws::String&& value) { SetDestinationCidrBlock(std::move(value)); return *this;}
157 
167  inline CreateClientVpnRouteRequest& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
168 
169 
176  inline const Aws::String& GetTargetVpcSubnetId() const{ return m_targetVpcSubnetId; }
177 
184  inline bool TargetVpcSubnetIdHasBeenSet() const { return m_targetVpcSubnetIdHasBeenSet; }
185 
192  inline void SetTargetVpcSubnetId(const Aws::String& value) { m_targetVpcSubnetIdHasBeenSet = true; m_targetVpcSubnetId = value; }
193 
200  inline void SetTargetVpcSubnetId(Aws::String&& value) { m_targetVpcSubnetIdHasBeenSet = true; m_targetVpcSubnetId = std::move(value); }
201 
208  inline void SetTargetVpcSubnetId(const char* value) { m_targetVpcSubnetIdHasBeenSet = true; m_targetVpcSubnetId.assign(value); }
209 
216  inline CreateClientVpnRouteRequest& WithTargetVpcSubnetId(const Aws::String& value) { SetTargetVpcSubnetId(value); return *this;}
217 
224  inline CreateClientVpnRouteRequest& WithTargetVpcSubnetId(Aws::String&& value) { SetTargetVpcSubnetId(std::move(value)); return *this;}
225 
232  inline CreateClientVpnRouteRequest& WithTargetVpcSubnetId(const char* value) { SetTargetVpcSubnetId(value); return *this;}
233 
234 
238  inline const Aws::String& GetDescription() const{ return m_description; }
239 
243  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
244 
248  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
249 
253  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
254 
258  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
259 
263  inline CreateClientVpnRouteRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
264 
268  inline CreateClientVpnRouteRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
269 
273  inline CreateClientVpnRouteRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
274 
275 
282  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
283 
290  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
291 
298  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
299 
306  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
307 
314  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
315 
322  inline CreateClientVpnRouteRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
323 
330  inline CreateClientVpnRouteRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
331 
338  inline CreateClientVpnRouteRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
339 
340 
347  inline bool GetDryRun() const{ return m_dryRun; }
348 
355  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
356 
363  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
364 
371  inline CreateClientVpnRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
372 
373  private:
374 
375  Aws::String m_clientVpnEndpointId;
376  bool m_clientVpnEndpointIdHasBeenSet;
377 
378  Aws::String m_destinationCidrBlock;
379  bool m_destinationCidrBlockHasBeenSet;
380 
381  Aws::String m_targetVpcSubnetId;
382  bool m_targetVpcSubnetIdHasBeenSet;
383 
384  Aws::String m_description;
385  bool m_descriptionHasBeenSet;
386 
387  Aws::String m_clientToken;
388  bool m_clientTokenHasBeenSet;
389 
390  bool m_dryRun;
391  bool m_dryRunHasBeenSet;
392  };
393 
394 } // namespace Model
395 } // namespace EC2
396 } // namespace Aws
Aws::EC2::Model::CreateClientVpnRouteRequest::WithDestinationCidrBlock
CreateClientVpnRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
Definition: CreateClientVpnRouteRequest.h:145
Aws::EC2::Model::CreateClientVpnRouteRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateClientVpnRouteRequest.h:248
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateClientVpnRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(Aws::String &&value)
Definition: CreateClientVpnRouteRequest.h:123
Aws::EC2::Model::CreateClientVpnRouteRequest::GetTargetVpcSubnetId
const Aws::String & GetTargetVpcSubnetId() const
Definition: CreateClientVpnRouteRequest.h:176
Aws::EC2::Model::CreateClientVpnRouteRequest::WithTargetVpcSubnetId
CreateClientVpnRouteRequest & WithTargetVpcSubnetId(const char *value)
Definition: CreateClientVpnRouteRequest.h:232
Aws::EC2::Model::CreateClientVpnRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const char *value)
Definition: CreateClientVpnRouteRequest.h:134
Aws::EC2::Model::CreateClientVpnRouteRequest::WithDescription
CreateClientVpnRouteRequest & WithDescription(Aws::String &&value)
Definition: CreateClientVpnRouteRequest.h:268
Aws::EC2::Model::CreateClientVpnRouteRequest::WithClientToken
CreateClientVpnRouteRequest & WithClientToken(Aws::String &&value)
Definition: CreateClientVpnRouteRequest.h:330
Aws::EC2::Model::CreateClientVpnRouteRequest::WithTargetVpcSubnetId
CreateClientVpnRouteRequest & WithTargetVpcSubnetId(const Aws::String &value)
Definition: CreateClientVpnRouteRequest.h:216
Aws::EC2::Model::CreateClientVpnRouteRequest::GetClientVpnEndpointId
const Aws::String & GetClientVpnEndpointId() const
Definition: CreateClientVpnRouteRequest.h:43
Aws::EC2::Model::CreateClientVpnRouteRequest::DestinationCidrBlockHasBeenSet
bool DestinationCidrBlockHasBeenSet() const
Definition: CreateClientVpnRouteRequest.h:101
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateClientVpnRouteRequest::WithClientVpnEndpointId
CreateClientVpnRouteRequest & WithClientVpnEndpointId(Aws::String &&value)
Definition: CreateClientVpnRouteRequest.h:73
Aws::EC2::Model::CreateClientVpnRouteRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateClientVpnRouteRequest.h:314
Aws::EC2::Model::CreateClientVpnRouteRequest
Definition: CreateClientVpnRouteRequest.h:23
Aws::EC2::Model::CreateClientVpnRouteRequest::WithDryRun
CreateClientVpnRouteRequest & WithDryRun(bool value)
Definition: CreateClientVpnRouteRequest.h:371
Aws::EC2::Model::CreateClientVpnRouteRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(Aws::String &&value)
Definition: CreateClientVpnRouteRequest.h:58
Aws::EC2::Model::CreateClientVpnRouteRequest::SetTargetVpcSubnetId
void SetTargetVpcSubnetId(Aws::String &&value)
Definition: CreateClientVpnRouteRequest.h:200
Aws::EC2::Model::CreateClientVpnRouteRequest::WithClientToken
CreateClientVpnRouteRequest & WithClientToken(const char *value)
Definition: CreateClientVpnRouteRequest.h:338
Aws::EC2::Model::CreateClientVpnRouteRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(const char *value)
Definition: CreateClientVpnRouteRequest.h:63
Aws::EC2::Model::CreateClientVpnRouteRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateClientVpnRouteRequest.h:282
Aws::EC2::Model::CreateClientVpnRouteRequest::GetDryRun
bool GetDryRun() const
Definition: CreateClientVpnRouteRequest.h:347
EC2Request.h
Aws::EC2::Model::CreateClientVpnRouteRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateClientVpnRouteRequest::WithClientVpnEndpointId
CreateClientVpnRouteRequest & WithClientVpnEndpointId(const Aws::String &value)
Definition: CreateClientVpnRouteRequest.h:68
AWSString.h
Aws::EC2::Model::CreateClientVpnRouteRequest::CreateClientVpnRouteRequest
CreateClientVpnRouteRequest()
Aws::EC2::Model::CreateClientVpnRouteRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateClientVpnRouteRequest.h:355
Aws::EC2::Model::CreateClientVpnRouteRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateClientVpnRouteRequest.h:238
Aws::EC2::Model::CreateClientVpnRouteRequest::SetTargetVpcSubnetId
void SetTargetVpcSubnetId(const char *value)
Definition: CreateClientVpnRouteRequest.h:208
Aws::EC2::Model::CreateClientVpnRouteRequest::GetDestinationCidrBlock
const Aws::String & GetDestinationCidrBlock() const
Definition: CreateClientVpnRouteRequest.h:90
Aws::EC2::Model::CreateClientVpnRouteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateClientVpnRouteRequest.h:31
Aws::EC2::Model::CreateClientVpnRouteRequest::WithDescription
CreateClientVpnRouteRequest & WithDescription(const char *value)
Definition: CreateClientVpnRouteRequest.h:273
Aws::EC2::Model::CreateClientVpnRouteRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateClientVpnRouteRequest.h:298
Aws::EC2::Model::CreateClientVpnRouteRequest::WithDescription
CreateClientVpnRouteRequest & WithDescription(const Aws::String &value)
Definition: CreateClientVpnRouteRequest.h:263
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateClientVpnRouteRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateClientVpnRouteRequest.h:243
Aws::EC2::Model::CreateClientVpnRouteRequest::WithDestinationCidrBlock
CreateClientVpnRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
Definition: CreateClientVpnRouteRequest.h:156
Aws::EC2::Model::CreateClientVpnRouteRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateClientVpnRouteRequest.h:258
Aws::EC2::Model::CreateClientVpnRouteRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateClientVpnRouteRequest.h:290
Aws::EC2::Model::CreateClientVpnRouteRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateClientVpnRouteRequest.h:363
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateClientVpnRouteRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateClientVpnRouteRequest.h:253
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateClientVpnRouteRequest::SetTargetVpcSubnetId
void SetTargetVpcSubnetId(const Aws::String &value)
Definition: CreateClientVpnRouteRequest.h:192
Aws::EC2::Model::CreateClientVpnRouteRequest::WithDestinationCidrBlock
CreateClientVpnRouteRequest & WithDestinationCidrBlock(const char *value)
Definition: CreateClientVpnRouteRequest.h:167
Aws::EC2::Model::CreateClientVpnRouteRequest::ClientVpnEndpointIdHasBeenSet
bool ClientVpnEndpointIdHasBeenSet() const
Definition: CreateClientVpnRouteRequest.h:48
Aws::EC2::Model::CreateClientVpnRouteRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
UUID.h
EC2_EXPORTS.h
Aws::EC2::Model::CreateClientVpnRouteRequest::WithClientToken
CreateClientVpnRouteRequest & WithClientToken(const Aws::String &value)
Definition: CreateClientVpnRouteRequest.h:322
Aws::EC2::Model::CreateClientVpnRouteRequest::WithTargetVpcSubnetId
CreateClientVpnRouteRequest & WithTargetVpcSubnetId(Aws::String &&value)
Definition: CreateClientVpnRouteRequest.h:224
Aws::EC2::Model::CreateClientVpnRouteRequest::TargetVpcSubnetIdHasBeenSet
bool TargetVpcSubnetIdHasBeenSet() const
Definition: CreateClientVpnRouteRequest.h:184
Aws::EC2::Model::CreateClientVpnRouteRequest::SetClientVpnEndpointId
void SetClientVpnEndpointId(const Aws::String &value)
Definition: CreateClientVpnRouteRequest.h:53
Aws::EC2::Model::CreateClientVpnRouteRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateClientVpnRouteRequest.h:306
Aws::EC2::Model::CreateClientVpnRouteRequest::SetDestinationCidrBlock
void SetDestinationCidrBlock(const Aws::String &value)
Definition: CreateClientVpnRouteRequest.h:112
Aws::EC2::Model::CreateClientVpnRouteRequest::WithClientVpnEndpointId
CreateClientVpnRouteRequest & WithClientVpnEndpointId(const char *value)
Definition: CreateClientVpnRouteRequest.h:78