/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class AWS_EC2_API RevokeClientVpnIngressRequest : public EC2Request { public: RevokeClientVpnIngressRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RevokeClientVpnIngress"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the Client VPN endpoint with which the authorization rule is * associated.

*/ inline const Aws::String& GetClientVpnEndpointId() const{ return m_clientVpnEndpointId; } /** *

The ID of the Client VPN endpoint with which the authorization rule is * associated.

*/ inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; } /** *

The ID of the Client VPN endpoint with which the authorization rule is * associated.

*/ inline void SetClientVpnEndpointId(const Aws::String& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = value; } /** *

The ID of the Client VPN endpoint with which the authorization rule is * associated.

*/ inline void SetClientVpnEndpointId(Aws::String&& value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId = std::move(value); } /** *

The ID of the Client VPN endpoint with which the authorization rule is * associated.

*/ inline void SetClientVpnEndpointId(const char* value) { m_clientVpnEndpointIdHasBeenSet = true; m_clientVpnEndpointId.assign(value); } /** *

The ID of the Client VPN endpoint with which the authorization rule is * associated.

*/ inline RevokeClientVpnIngressRequest& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;} /** *

The ID of the Client VPN endpoint with which the authorization rule is * associated.

*/ inline RevokeClientVpnIngressRequest& WithClientVpnEndpointId(Aws::String&& value) { SetClientVpnEndpointId(std::move(value)); return *this;} /** *

The ID of the Client VPN endpoint with which the authorization rule is * associated.

*/ inline RevokeClientVpnIngressRequest& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(value); return *this;} /** *

The IPv4 address range, in CIDR notation, of the network for which access is * being removed.

*/ inline const Aws::String& GetTargetNetworkCidr() const{ return m_targetNetworkCidr; } /** *

The IPv4 address range, in CIDR notation, of the network for which access is * being removed.

*/ inline bool TargetNetworkCidrHasBeenSet() const { return m_targetNetworkCidrHasBeenSet; } /** *

The IPv4 address range, in CIDR notation, of the network for which access is * being removed.

*/ inline void SetTargetNetworkCidr(const Aws::String& value) { m_targetNetworkCidrHasBeenSet = true; m_targetNetworkCidr = value; } /** *

The IPv4 address range, in CIDR notation, of the network for which access is * being removed.

*/ inline void SetTargetNetworkCidr(Aws::String&& value) { m_targetNetworkCidrHasBeenSet = true; m_targetNetworkCidr = std::move(value); } /** *

The IPv4 address range, in CIDR notation, of the network for which access is * being removed.

*/ inline void SetTargetNetworkCidr(const char* value) { m_targetNetworkCidrHasBeenSet = true; m_targetNetworkCidr.assign(value); } /** *

The IPv4 address range, in CIDR notation, of the network for which access is * being removed.

*/ inline RevokeClientVpnIngressRequest& WithTargetNetworkCidr(const Aws::String& value) { SetTargetNetworkCidr(value); return *this;} /** *

The IPv4 address range, in CIDR notation, of the network for which access is * being removed.

*/ inline RevokeClientVpnIngressRequest& WithTargetNetworkCidr(Aws::String&& value) { SetTargetNetworkCidr(std::move(value)); return *this;} /** *

The IPv4 address range, in CIDR notation, of the network for which access is * being removed.

*/ inline RevokeClientVpnIngressRequest& WithTargetNetworkCidr(const char* value) { SetTargetNetworkCidr(value); return *this;} /** *

The ID of the Active Directory group for which to revoke access.

*/ inline const Aws::String& GetAccessGroupId() const{ return m_accessGroupId; } /** *

The ID of the Active Directory group for which to revoke access.

*/ inline bool AccessGroupIdHasBeenSet() const { return m_accessGroupIdHasBeenSet; } /** *

The ID of the Active Directory group for which to revoke access.

*/ inline void SetAccessGroupId(const Aws::String& value) { m_accessGroupIdHasBeenSet = true; m_accessGroupId = value; } /** *

The ID of the Active Directory group for which to revoke access.

*/ inline void SetAccessGroupId(Aws::String&& value) { m_accessGroupIdHasBeenSet = true; m_accessGroupId = std::move(value); } /** *

The ID of the Active Directory group for which to revoke access.

*/ inline void SetAccessGroupId(const char* value) { m_accessGroupIdHasBeenSet = true; m_accessGroupId.assign(value); } /** *

The ID of the Active Directory group for which to revoke access.

*/ inline RevokeClientVpnIngressRequest& WithAccessGroupId(const Aws::String& value) { SetAccessGroupId(value); return *this;} /** *

The ID of the Active Directory group for which to revoke access.

*/ inline RevokeClientVpnIngressRequest& WithAccessGroupId(Aws::String&& value) { SetAccessGroupId(std::move(value)); return *this;} /** *

The ID of the Active Directory group for which to revoke access.

*/ inline RevokeClientVpnIngressRequest& WithAccessGroupId(const char* value) { SetAccessGroupId(value); return *this;} /** *

Indicates whether access should be revoked for all clients.

*/ inline bool GetRevokeAllGroups() const{ return m_revokeAllGroups; } /** *

Indicates whether access should be revoked for all clients.

*/ inline bool RevokeAllGroupsHasBeenSet() const { return m_revokeAllGroupsHasBeenSet; } /** *

Indicates whether access should be revoked for all clients.

*/ inline void SetRevokeAllGroups(bool value) { m_revokeAllGroupsHasBeenSet = true; m_revokeAllGroups = value; } /** *

Indicates whether access should be revoked for all clients.

*/ inline RevokeClientVpnIngressRequest& WithRevokeAllGroups(bool value) { SetRevokeAllGroups(value); return *this;} /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline RevokeClientVpnIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_clientVpnEndpointId; bool m_clientVpnEndpointIdHasBeenSet; Aws::String m_targetNetworkCidr; bool m_targetNetworkCidrHasBeenSet; Aws::String m_accessGroupId; bool m_accessGroupIdHasBeenSet; bool m_revokeAllGroups; bool m_revokeAllGroupsHasBeenSet; bool m_dryRun; bool m_dryRunHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws