AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
25 AWS_EC2_API CreateClientVpnRouteRequest() = default;
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 template<typename ClientVpnEndpointIdT = Aws::String>
47 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value); }
48 template<typename ClientVpnEndpointIdT = Aws::String>
49 CreateClientVpnRouteRequest& WithClientVpnEndpointId(ClientVpnEndpointIdT&& value) { SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value)); return *this;}
51
53
62 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
63 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
64 template<typename DestinationCidrBlockT = Aws::String>
65 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) { m_destinationCidrBlockHasBeenSet = true; m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value); }
66 template<typename DestinationCidrBlockT = Aws::String>
67 CreateClientVpnRouteRequest& WithDestinationCidrBlock(DestinationCidrBlockT&& value) { SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value)); return *this;}
69
71
77 inline const Aws::String& GetTargetVpcSubnetId() const { return m_targetVpcSubnetId; }
78 inline bool TargetVpcSubnetIdHasBeenSet() const { return m_targetVpcSubnetIdHasBeenSet; }
79 template<typename TargetVpcSubnetIdT = Aws::String>
80 void SetTargetVpcSubnetId(TargetVpcSubnetIdT&& value) { m_targetVpcSubnetIdHasBeenSet = true; m_targetVpcSubnetId = std::forward<TargetVpcSubnetIdT>(value); }
81 template<typename TargetVpcSubnetIdT = Aws::String>
82 CreateClientVpnRouteRequest& WithTargetVpcSubnetId(TargetVpcSubnetIdT&& value) { SetTargetVpcSubnetId(std::forward<TargetVpcSubnetIdT>(value)); return *this;}
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 template<typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
93 template<typename DescriptionT = Aws::String>
94 CreateClientVpnRouteRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
96
98
104 inline const Aws::String& GetClientToken() const { return m_clientToken; }
105 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
106 template<typename ClientTokenT = Aws::String>
107 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
108 template<typename ClientTokenT = Aws::String>
109 CreateClientVpnRouteRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
111
113
119 inline bool GetDryRun() const { return m_dryRun; }
120 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
121 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
122 inline CreateClientVpnRouteRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
124 private:
125
126 Aws::String m_clientVpnEndpointId;
127 bool m_clientVpnEndpointIdHasBeenSet = false;
128
129 Aws::String m_destinationCidrBlock;
130 bool m_destinationCidrBlockHasBeenSet = false;
131
132 Aws::String m_targetVpcSubnetId;
133 bool m_targetVpcSubnetIdHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
139 bool m_clientTokenHasBeenSet = true;
140
141 bool m_dryRun{false};
142 bool m_dryRunHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace EC2
147} // 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