AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
DeleteClientVpnRouteRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
20 public:
21 AWS_EC2_API DeleteClientVpnRouteRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteClientVpnRoute"; }
28
29 AWS_EC2_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
40 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
41 template <typename ClientVpnEndpointIdT = Aws::String>
42 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
43 m_clientVpnEndpointIdHasBeenSet = true;
44 m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value);
45 }
46 template <typename ClientVpnEndpointIdT = Aws::String>
48 SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTargetVpcSubnetId() const { return m_targetVpcSubnetId; }
58 inline bool TargetVpcSubnetIdHasBeenSet() const { return m_targetVpcSubnetIdHasBeenSet; }
59 template <typename TargetVpcSubnetIdT = Aws::String>
60 void SetTargetVpcSubnetId(TargetVpcSubnetIdT&& value) {
61 m_targetVpcSubnetIdHasBeenSet = true;
62 m_targetVpcSubnetId = std::forward<TargetVpcSubnetIdT>(value);
63 }
64 template <typename TargetVpcSubnetIdT = Aws::String>
66 SetTargetVpcSubnetId(std::forward<TargetVpcSubnetIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDestinationCidrBlock() const { return m_destinationCidrBlock; }
76 inline bool DestinationCidrBlockHasBeenSet() const { return m_destinationCidrBlockHasBeenSet; }
77 template <typename DestinationCidrBlockT = Aws::String>
78 void SetDestinationCidrBlock(DestinationCidrBlockT&& value) {
79 m_destinationCidrBlockHasBeenSet = true;
80 m_destinationCidrBlock = std::forward<DestinationCidrBlockT>(value);
81 }
82 template <typename DestinationCidrBlockT = Aws::String>
83 DeleteClientVpnRouteRequest& WithDestinationCidrBlock(DestinationCidrBlockT&& value) {
84 SetDestinationCidrBlock(std::forward<DestinationCidrBlockT>(value));
85 return *this;
86 }
88
90
96 inline bool GetDryRun() const { return m_dryRun; }
97 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
98 inline void SetDryRun(bool value) {
99 m_dryRunHasBeenSet = true;
100 m_dryRun = value;
101 }
103 SetDryRun(value);
104 return *this;
105 }
107 private:
108 Aws::String m_clientVpnEndpointId;
109
110 Aws::String m_targetVpcSubnetId;
111
112 Aws::String m_destinationCidrBlock;
113
114 bool m_dryRun{false};
115 bool m_clientVpnEndpointIdHasBeenSet = false;
116 bool m_targetVpcSubnetIdHasBeenSet = false;
117 bool m_destinationCidrBlockHasBeenSet = false;
118 bool m_dryRunHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace EC2
123} // namespace Aws
DeleteClientVpnRouteRequest & WithTargetVpcSubnetId(TargetVpcSubnetIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API DeleteClientVpnRouteRequest()=default
void SetDestinationCidrBlock(DestinationCidrBlockT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetClientVpnEndpointId(ClientVpnEndpointIdT &&value)
virtual const char * GetServiceRequestName() const override
DeleteClientVpnRouteRequest & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
DeleteClientVpnRouteRequest & WithDryRun(bool value)
DeleteClientVpnRouteRequest & WithDestinationCidrBlock(DestinationCidrBlockT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String