/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class AuthorizeClientVpnIngressRequest : public EC2Request { public: AWS_EC2_API AuthorizeClientVpnIngressRequest(); // 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 "AuthorizeClientVpnIngress"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the Client VPN endpoint.

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

The ID of the Client VPN endpoint.

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

The ID of the Client VPN endpoint.

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

The ID of the Client VPN endpoint.

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

The ID of the Client VPN endpoint.

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

The ID of the Client VPN endpoint.

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

The ID of the Client VPN endpoint.

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

The ID of the Client VPN endpoint.

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

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

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

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

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

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

*/ 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 authorized.

*/ 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 authorized.

*/ 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 authorized.

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

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

*/ inline AuthorizeClientVpnIngressRequest& 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 authorized.

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

The ID of the group to grant access to, for example, the Active Directory * group or identity provider (IdP) group. Required if * AuthorizeAllGroups is false or not specified.

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

The ID of the group to grant access to, for example, the Active Directory * group or identity provider (IdP) group. Required if * AuthorizeAllGroups is false or not specified.

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

The ID of the group to grant access to, for example, the Active Directory * group or identity provider (IdP) group. Required if * AuthorizeAllGroups is false or not specified.

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

The ID of the group to grant access to, for example, the Active Directory * group or identity provider (IdP) group. Required if * AuthorizeAllGroups is false or not specified.

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

The ID of the group to grant access to, for example, the Active Directory * group or identity provider (IdP) group. Required if * AuthorizeAllGroups is false or not specified.

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

The ID of the group to grant access to, for example, the Active Directory * group or identity provider (IdP) group. Required if * AuthorizeAllGroups is false or not specified.

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

The ID of the group to grant access to, for example, the Active Directory * group or identity provider (IdP) group. Required if * AuthorizeAllGroups is false or not specified.

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

The ID of the group to grant access to, for example, the Active Directory * group or identity provider (IdP) group. Required if * AuthorizeAllGroups is false or not specified.

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

Indicates whether to grant access to all clients. Specify true * to grant all clients who successfully establish a VPN connection access to the * network. Must be set to true if AccessGroupId is not * specified.

*/ inline bool GetAuthorizeAllGroups() const{ return m_authorizeAllGroups; } /** *

Indicates whether to grant access to all clients. Specify true * to grant all clients who successfully establish a VPN connection access to the * network. Must be set to true if AccessGroupId is not * specified.

*/ inline bool AuthorizeAllGroupsHasBeenSet() const { return m_authorizeAllGroupsHasBeenSet; } /** *

Indicates whether to grant access to all clients. Specify true * to grant all clients who successfully establish a VPN connection access to the * network. Must be set to true if AccessGroupId is not * specified.

*/ inline void SetAuthorizeAllGroups(bool value) { m_authorizeAllGroupsHasBeenSet = true; m_authorizeAllGroups = value; } /** *

Indicates whether to grant access to all clients. Specify true * to grant all clients who successfully establish a VPN connection access to the * network. Must be set to true if AccessGroupId is not * specified.

*/ inline AuthorizeClientVpnIngressRequest& WithAuthorizeAllGroups(bool value) { SetAuthorizeAllGroups(value); return *this;} /** *

A brief description of the authorization rule.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A brief description of the authorization rule.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A brief description of the authorization rule.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A brief description of the authorization rule.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A brief description of the authorization rule.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A brief description of the authorization rule.

*/ inline AuthorizeClientVpnIngressRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A brief description of the authorization rule.

*/ inline AuthorizeClientVpnIngressRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A brief description of the authorization rule.

*/ inline AuthorizeClientVpnIngressRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline AuthorizeClientVpnIngressRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline AuthorizeClientVpnIngressRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline AuthorizeClientVpnIngressRequest& WithClientToken(const char* value) { SetClientToken(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 AuthorizeClientVpnIngressRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_clientVpnEndpointId; bool m_clientVpnEndpointIdHasBeenSet = false; Aws::String m_targetNetworkCidr; bool m_targetNetworkCidrHasBeenSet = false; Aws::String m_accessGroupId; bool m_accessGroupIdHasBeenSet = false; bool m_authorizeAllGroups; bool m_authorizeAllGroupsHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws