/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an authorization rule.See Also:
AWS
* API Reference
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 AuthorizationRule& WithClientVpnEndpointId(const Aws::String& value) { SetClientVpnEndpointId(value); return *this;} /** *The ID of the Client VPN endpoint with which the authorization rule is * associated.
*/ inline AuthorizationRule& 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 AuthorizationRule& WithClientVpnEndpointId(const char* value) { SetClientVpnEndpointId(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 AuthorizationRule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A brief description of the authorization rule.
*/ inline AuthorizationRule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A brief description of the authorization rule.
*/ inline AuthorizationRule& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The ID of the Active Directory group to which the authorization rule grants * access.
*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *The ID of the Active Directory group to which the authorization rule grants * access.
*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *The ID of the Active Directory group to which the authorization rule grants * access.
*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *The ID of the Active Directory group to which the authorization rule grants * access.
*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *The ID of the Active Directory group to which the authorization rule grants * access.
*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *The ID of the Active Directory group to which the authorization rule grants * access.
*/ inline AuthorizationRule& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *The ID of the Active Directory group to which the authorization rule grants * access.
*/ inline AuthorizationRule& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *The ID of the Active Directory group to which the authorization rule grants * access.
*/ inline AuthorizationRule& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *Indicates whether the authorization rule grants access to all clients.
*/ inline bool GetAccessAll() const{ return m_accessAll; } /** *Indicates whether the authorization rule grants access to all clients.
*/ inline bool AccessAllHasBeenSet() const { return m_accessAllHasBeenSet; } /** *Indicates whether the authorization rule grants access to all clients.
*/ inline void SetAccessAll(bool value) { m_accessAllHasBeenSet = true; m_accessAll = value; } /** *Indicates whether the authorization rule grants access to all clients.
*/ inline AuthorizationRule& WithAccessAll(bool value) { SetAccessAll(value); return *this;} /** *The IPv4 address range, in CIDR notation, of the network to which the * authorization rule applies.
*/ inline const Aws::String& GetDestinationCidr() const{ return m_destinationCidr; } /** *The IPv4 address range, in CIDR notation, of the network to which the * authorization rule applies.
*/ inline bool DestinationCidrHasBeenSet() const { return m_destinationCidrHasBeenSet; } /** *The IPv4 address range, in CIDR notation, of the network to which the * authorization rule applies.
*/ inline void SetDestinationCidr(const Aws::String& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = value; } /** *The IPv4 address range, in CIDR notation, of the network to which the * authorization rule applies.
*/ inline void SetDestinationCidr(Aws::String&& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = std::move(value); } /** *The IPv4 address range, in CIDR notation, of the network to which the * authorization rule applies.
*/ inline void SetDestinationCidr(const char* value) { m_destinationCidrHasBeenSet = true; m_destinationCidr.assign(value); } /** *The IPv4 address range, in CIDR notation, of the network to which the * authorization rule applies.
*/ inline AuthorizationRule& WithDestinationCidr(const Aws::String& value) { SetDestinationCidr(value); return *this;} /** *The IPv4 address range, in CIDR notation, of the network to which the * authorization rule applies.
*/ inline AuthorizationRule& WithDestinationCidr(Aws::String&& value) { SetDestinationCidr(std::move(value)); return *this;} /** *The IPv4 address range, in CIDR notation, of the network to which the * authorization rule applies.
*/ inline AuthorizationRule& WithDestinationCidr(const char* value) { SetDestinationCidr(value); return *this;} /** *The current state of the authorization rule.
*/ inline const ClientVpnAuthorizationRuleStatus& GetStatus() const{ return m_status; } /** *The current state of the authorization rule.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The current state of the authorization rule.
*/ inline void SetStatus(const ClientVpnAuthorizationRuleStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The current state of the authorization rule.
*/ inline void SetStatus(ClientVpnAuthorizationRuleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The current state of the authorization rule.
*/ inline AuthorizationRule& WithStatus(const ClientVpnAuthorizationRuleStatus& value) { SetStatus(value); return *this;} /** *The current state of the authorization rule.
*/ inline AuthorizationRule& WithStatus(ClientVpnAuthorizationRuleStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_clientVpnEndpointId; bool m_clientVpnEndpointIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_groupId; bool m_groupIdHasBeenSet = false; bool m_accessAll; bool m_accessAllHasBeenSet = false; Aws::String m_destinationCidr; bool m_destinationCidrHasBeenSet = false; ClientVpnAuthorizationRuleStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws