AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RevokeClientVpnIngressRequest.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 RevokeClientVpnIngressRequest() = 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 "RevokeClientVpnIngress"; }
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
40 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
41 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
42 template <typename ClientVpnEndpointIdT = Aws::String>
43 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
44 m_clientVpnEndpointIdHasBeenSet = true;
45 m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value);
46 }
47 template <typename ClientVpnEndpointIdT = Aws::String>
49 SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetTargetNetworkCidr() const { return m_targetNetworkCidr; }
60 inline bool TargetNetworkCidrHasBeenSet() const { return m_targetNetworkCidrHasBeenSet; }
61 template <typename TargetNetworkCidrT = Aws::String>
62 void SetTargetNetworkCidr(TargetNetworkCidrT&& value) {
63 m_targetNetworkCidrHasBeenSet = true;
64 m_targetNetworkCidr = std::forward<TargetNetworkCidrT>(value);
65 }
66 template <typename TargetNetworkCidrT = Aws::String>
68 SetTargetNetworkCidr(std::forward<TargetNetworkCidrT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAccessGroupId() const { return m_accessGroupId; }
78 inline bool AccessGroupIdHasBeenSet() const { return m_accessGroupIdHasBeenSet; }
79 template <typename AccessGroupIdT = Aws::String>
80 void SetAccessGroupId(AccessGroupIdT&& value) {
81 m_accessGroupIdHasBeenSet = true;
82 m_accessGroupId = std::forward<AccessGroupIdT>(value);
83 }
84 template <typename AccessGroupIdT = Aws::String>
86 SetAccessGroupId(std::forward<AccessGroupIdT>(value));
87 return *this;
88 }
90
92
99 inline bool GetRevokeAllGroups() const { return m_revokeAllGroups; }
100 inline bool RevokeAllGroupsHasBeenSet() const { return m_revokeAllGroupsHasBeenSet; }
101 inline void SetRevokeAllGroups(bool value) {
102 m_revokeAllGroupsHasBeenSet = true;
103 m_revokeAllGroups = value;
104 }
106 SetRevokeAllGroups(value);
107 return *this;
108 }
110
112
118 inline bool GetDryRun() const { return m_dryRun; }
119 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
120 inline void SetDryRun(bool value) {
121 m_dryRunHasBeenSet = true;
122 m_dryRun = value;
123 }
125 SetDryRun(value);
126 return *this;
127 }
129 private:
130 Aws::String m_clientVpnEndpointId;
131
132 Aws::String m_targetNetworkCidr;
133
134 Aws::String m_accessGroupId;
135
136 bool m_revokeAllGroups{false};
137
138 bool m_dryRun{false};
139 bool m_clientVpnEndpointIdHasBeenSet = false;
140 bool m_targetNetworkCidrHasBeenSet = false;
141 bool m_accessGroupIdHasBeenSet = false;
142 bool m_revokeAllGroupsHasBeenSet = false;
143 bool m_dryRunHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace EC2
148} // 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