AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClientVpnRouteRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace 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_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:
39
41
44 inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; }
45 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
46 inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; }
47 inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); }
48 inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); }
51 inline CreateClientVpnRouteRequest& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;}
53
55
64 inline const Aws::String& GetDestinationCidrBlock() const{ return m_destinationCidrBlock; }
65 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
66 inline void SetDestinationCidrBlock(const Aws::String& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = value; }
67 inline void SetDestinationCidrBlock(Aws::String&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::move(value); }
68 inline void SetDestinationCidrBlock(const char* value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock.assign(value); }
71 inline CreateClientVpnRouteRequest& WithDestinationCidrBlock(const char* value) { SetDestinationCidrBlock(value); return *this;}
73
75
81 inline const Aws::String& GetTargetVpcSubnetId() const{ return m_targetVpcSubnetId; }
82 inline bool TargetVpcSubnetIdHasBeenSet() const { return m_targetVpcSubnetIdHasBeenSet; }
83 inline void SetTargetVpcSubnetId(const Aws::String& value) { m_targetVpcSubnetIdHasBeenSet = true; m_targetVpcSubnetId = value; }
84 inline void SetTargetVpcSubnetId(Aws::String&& value) { m_targetVpcSubnetIdHasBeenSet = true; m_targetVpcSubnetId = std::move(value); }
85 inline void SetTargetVpcSubnetId(const char* value) { m_targetVpcSubnetIdHasBeenSet = true; m_targetVpcSubnetId.assign(value); }
87 inline CreateClientVpnRouteRequest& WithTargetVpcSubnetId(Aws::String&& value) { SetTargetVpcSubnetId(std::move(value)); return *this;}
88 inline CreateClientVpnRouteRequest& WithTargetVpcSubnetId(const char* value) { SetTargetVpcSubnetId(value); return *this;}
90
92
95 inline const Aws::String& GetDescription() const{ return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
98 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
100 inline CreateClientVpnRouteRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
101 inline CreateClientVpnRouteRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
102 inline CreateClientVpnRouteRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
104
106
112 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
113 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
114 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
115 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
116 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
117 inline CreateClientVpnRouteRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
118 inline CreateClientVpnRouteRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
119 inline CreateClientVpnRouteRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
121
123
129 inline bool GetDryRun() const{ return m_dryRun; }
130 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
131 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
132 inline CreateClientVpnRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
134 private:
135
136 Aws::String m_clientVpnEndpointId;
137 bool m_clientVpnEndpointIdHasBeenSet = false;
138
139 Aws::String m_destinationCidrBlock;
140 bool m_destinationCidrBlockHasBeenSet = false;
141
142 Aws::String m_targetVpcSubnetId;
143 bool m_targetVpcSubnetIdHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::String m_clientToken;
149 bool m_clientTokenHasBeenSet = false;
150
151 bool m_dryRun;
152 bool m_dryRunHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace EC2
157} // namespace Aws
CreateClientVpnRouteRequest & WithTargetVpcSubnetId(const char *value)
CreateClientVpnRouteRequest & WithDescription(const char *value)
CreateClientVpnRouteRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateClientVpnRouteRequest & WithClientToken(const char *value)
CreateClientVpnRouteRequest & WithClientToken(Aws::String &&value)
CreateClientVpnRouteRequest & WithDestinationCidrBlock(Aws::String &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateClientVpnRouteRequest & WithClientVpnEndpointId(const char *value)
CreateClientVpnRouteRequest & WithClientToken(const Aws::String &value)
CreateClientVpnRouteRequest & WithClientVpnEndpointId(const Aws::String &value)
CreateClientVpnRouteRequest & WithClientVpnEndpointId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateClientVpnRouteRequest & WithDestinationCidrBlock(const char *value)
CreateClientVpnRouteRequest & WithDescription(Aws::String &&value)
CreateClientVpnRouteRequest & WithTargetVpcSubnetId(const Aws::String &value)
CreateClientVpnRouteRequest & WithDestinationCidrBlock(const Aws::String &value)
CreateClientVpnRouteRequest & WithTargetVpcSubnetId(Aws::String &&value)
CreateClientVpnRouteRequest & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String