AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RevokeClientVpnIngressRequest.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
12namespace Aws
13{
14namespace EC2
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_EC2_API RevokeClientVpnIngressRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "RevokeClientVpnIngress"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
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 RevokeClientVpnIngressRequest& WithClientVpnEndpointId(ClientVpnEndpointIdT&& value) { SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value)); return *this;}
51
53
57 inline const Aws::String& GetTargetNetworkCidr() const { return m_targetNetworkCidr; }
58 inline bool TargetNetworkCidrHasBeenSet() const { return m_targetNetworkCidrHasBeenSet; }
59 template<typename TargetNetworkCidrT = Aws::String>
60 void SetTargetNetworkCidr(TargetNetworkCidrT&& value) { m_targetNetworkCidrHasBeenSet = true; m_targetNetworkCidr = std::forward<TargetNetworkCidrT>(value); }
61 template<typename TargetNetworkCidrT = Aws::String>
62 RevokeClientVpnIngressRequest& WithTargetNetworkCidr(TargetNetworkCidrT&& value) { SetTargetNetworkCidr(std::forward<TargetNetworkCidrT>(value)); return *this;}
64
66
69 inline const Aws::String& GetAccessGroupId() const { return m_accessGroupId; }
70 inline bool AccessGroupIdHasBeenSet() const { return m_accessGroupIdHasBeenSet; }
71 template<typename AccessGroupIdT = Aws::String>
72 void SetAccessGroupId(AccessGroupIdT&& value) { m_accessGroupIdHasBeenSet = true; m_accessGroupId = std::forward<AccessGroupIdT>(value); }
73 template<typename AccessGroupIdT = Aws::String>
74 RevokeClientVpnIngressRequest& WithAccessGroupId(AccessGroupIdT&& value) { SetAccessGroupId(std::forward<AccessGroupIdT>(value)); return *this;}
76
78
85 inline bool GetRevokeAllGroups() const { return m_revokeAllGroups; }
86 inline bool RevokeAllGroupsHasBeenSet() const { return m_revokeAllGroupsHasBeenSet; }
87 inline void SetRevokeAllGroups(bool value) { m_revokeAllGroupsHasBeenSet = true; m_revokeAllGroups = value; }
88 inline RevokeClientVpnIngressRequest& WithRevokeAllGroups(bool value) { SetRevokeAllGroups(value); return *this;}
90
92
98 inline bool GetDryRun() const { return m_dryRun; }
99 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
100 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
101 inline RevokeClientVpnIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
103 private:
104
105 Aws::String m_clientVpnEndpointId;
106 bool m_clientVpnEndpointIdHasBeenSet = false;
107
108 Aws::String m_targetNetworkCidr;
109 bool m_targetNetworkCidrHasBeenSet = false;
110
111 Aws::String m_accessGroupId;
112 bool m_accessGroupIdHasBeenSet = false;
113
114 bool m_revokeAllGroups{false};
115 bool m_revokeAllGroupsHasBeenSet = false;
116
117 bool m_dryRun{false};
118 bool m_dryRunHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace EC2
123} // namespace Aws
RevokeClientVpnIngressRequest & WithAccessGroupId(AccessGroupIdT &&value)
RevokeClientVpnIngressRequest & WithTargetNetworkCidr(TargetNetworkCidrT &&value)
RevokeClientVpnIngressRequest & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
virtual const char * GetServiceRequestName() const override
RevokeClientVpnIngressRequest & WithRevokeAllGroups(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
RevokeClientVpnIngressRequest & WithDryRun(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String