AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AuthorizeClientVpnIngressRequest.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 AuthorizeClientVpnIngressRequest() = 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 "AuthorizeClientVpnIngress"; }
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 AuthorizeClientVpnIngressRequest& 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 AuthorizeClientVpnIngressRequest& WithTargetNetworkCidr(TargetNetworkCidrT&& value) { SetTargetNetworkCidr(std::forward<TargetNetworkCidrT>(value)); return *this;}
64
66
71 inline const Aws::String& GetAccessGroupId() const { return m_accessGroupId; }
72 inline bool AccessGroupIdHasBeenSet() const { return m_accessGroupIdHasBeenSet; }
73 template<typename AccessGroupIdT = Aws::String>
74 void SetAccessGroupId(AccessGroupIdT&& value) { m_accessGroupIdHasBeenSet = true; m_accessGroupId = std::forward<AccessGroupIdT>(value); }
75 template<typename AccessGroupIdT = Aws::String>
76 AuthorizeClientVpnIngressRequest& WithAccessGroupId(AccessGroupIdT&& value) { SetAccessGroupId(std::forward<AccessGroupIdT>(value)); return *this;}
78
80
86 inline bool GetAuthorizeAllGroups() const { return m_authorizeAllGroups; }
87 inline bool AuthorizeAllGroupsHasBeenSet() const { return m_authorizeAllGroupsHasBeenSet; }
88 inline void SetAuthorizeAllGroups(bool value) { m_authorizeAllGroupsHasBeenSet = true; m_authorizeAllGroups = value; }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template<typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
100 template<typename DescriptionT = Aws::String>
101 AuthorizeClientVpnIngressRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
103
105
111 inline const Aws::String& GetClientToken() const { return m_clientToken; }
112 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
113 template<typename ClientTokenT = Aws::String>
114 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
115 template<typename ClientTokenT = Aws::String>
116 AuthorizeClientVpnIngressRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
118
120
126 inline bool GetDryRun() const { return m_dryRun; }
127 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
128 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
129 inline AuthorizeClientVpnIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
131 private:
132
133 Aws::String m_clientVpnEndpointId;
134 bool m_clientVpnEndpointIdHasBeenSet = false;
135
136 Aws::String m_targetNetworkCidr;
137 bool m_targetNetworkCidrHasBeenSet = false;
138
139 Aws::String m_accessGroupId;
140 bool m_accessGroupIdHasBeenSet = false;
141
142 bool m_authorizeAllGroups{false};
143 bool m_authorizeAllGroupsHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
149 bool m_clientTokenHasBeenSet = true;
150
151 bool m_dryRun{false};
152 bool m_dryRunHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace EC2
157} // namespace Aws
AuthorizeClientVpnIngressRequest & WithTargetNetworkCidr(TargetNetworkCidrT &&value)
AuthorizeClientVpnIngressRequest & WithDescription(DescriptionT &&value)
AuthorizeClientVpnIngressRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AuthorizeClientVpnIngressRequest & WithClientToken(ClientTokenT &&value)
AuthorizeClientVpnIngressRequest & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
AuthorizeClientVpnIngressRequest & WithAuthorizeAllGroups(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
AuthorizeClientVpnIngressRequest & WithAccessGroupId(AccessGroupIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String