Class CfnClientVpnAuthorizationRuleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnClientVpnAuthorizationRuleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClientVpnAuthorizationRuleMixinProps>
- Enclosing interface:
CfnClientVpnAuthorizationRuleMixinProps
@Stability(Stable)
public static final class CfnClientVpnAuthorizationRuleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClientVpnAuthorizationRuleMixinProps>
A builder for
CfnClientVpnAuthorizationRuleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessGroupId(String accessGroupId) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getAccessGroupId()authorizeAllGroups(Boolean authorizeAllGroups) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getAuthorizeAllGroups()authorizeAllGroups(IResolvable authorizeAllGroups) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getAuthorizeAllGroups()build()Builds the configured instance.clientVpnEndpointId(String clientVpnEndpointId) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getClientVpnEndpointId()description(String description) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getDescription()targetNetworkCidr(String targetNetworkCidr) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getTargetNetworkCidr()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessGroupId
@Stability(Stable) public CfnClientVpnAuthorizationRuleMixinProps.Builder accessGroupId(String accessGroupId) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getAccessGroupId()- Parameters:
accessGroupId- The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group. Required ifAuthorizeAllGroupsisfalseor not specified.- Returns:
this
-
authorizeAllGroups
@Stability(Stable) public CfnClientVpnAuthorizationRuleMixinProps.Builder authorizeAllGroups(Boolean authorizeAllGroups) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getAuthorizeAllGroups()- Parameters:
authorizeAllGroups- Indicates whether to grant access to all clients. Specifytrueto grant all clients who successfully establish a VPN connection access to the network. Must be set totrueifAccessGroupIdis not specified.- Returns:
this
-
authorizeAllGroups
@Stability(Stable) public CfnClientVpnAuthorizationRuleMixinProps.Builder authorizeAllGroups(IResolvable authorizeAllGroups) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getAuthorizeAllGroups()- Parameters:
authorizeAllGroups- Indicates whether to grant access to all clients. Specifytrueto grant all clients who successfully establish a VPN connection access to the network. Must be set totrueifAccessGroupIdis not specified.- Returns:
this
-
clientVpnEndpointId
@Stability(Stable) public CfnClientVpnAuthorizationRuleMixinProps.Builder clientVpnEndpointId(String clientVpnEndpointId) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getClientVpnEndpointId()- Parameters:
clientVpnEndpointId- The ID of the Client VPN endpoint.- Returns:
this
-
description
@Stability(Stable) public CfnClientVpnAuthorizationRuleMixinProps.Builder description(String description) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getDescription()- Parameters:
description- A brief description of the authorization rule.- Returns:
this
-
targetNetworkCidr
@Stability(Stable) public CfnClientVpnAuthorizationRuleMixinProps.Builder targetNetworkCidr(String targetNetworkCidr) Sets the value ofCfnClientVpnAuthorizationRuleMixinProps.getTargetNetworkCidr()- Parameters:
targetNetworkCidr- The IPv4 address range, in CIDR notation, of the network for which access is being authorized.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClientVpnAuthorizationRuleMixinProps>- Returns:
- a new instance of
CfnClientVpnAuthorizationRuleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-