Class CfnClientVpnAuthorizationRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnClientVpnAuthorizationRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClientVpnAuthorizationRuleProps>
- Enclosing interface:
- CfnClientVpnAuthorizationRuleProps
@Stability(Stable)
public static final class CfnClientVpnAuthorizationRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClientVpnAuthorizationRuleProps>
A builder for
CfnClientVpnAuthorizationRuleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessGroupId(String accessGroupId) Sets the value ofCfnClientVpnAuthorizationRuleProps.getAccessGroupId()authorizeAllGroups(Boolean authorizeAllGroups) Sets the value ofCfnClientVpnAuthorizationRuleProps.getAuthorizeAllGroups()authorizeAllGroups(IResolvable authorizeAllGroups) Sets the value ofCfnClientVpnAuthorizationRuleProps.getAuthorizeAllGroups()build()Builds the configured instance.clientVpnEndpointId(String clientVpnEndpointId) Sets the value ofCfnClientVpnAuthorizationRuleProps.getClientVpnEndpointId()description(String description) Sets the value ofCfnClientVpnAuthorizationRuleProps.getDescription()targetNetworkCidr(String targetNetworkCidr) Sets the value ofCfnClientVpnAuthorizationRuleProps.getTargetNetworkCidr()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientVpnEndpointId
@Stability(Stable) public CfnClientVpnAuthorizationRuleProps.Builder clientVpnEndpointId(String clientVpnEndpointId) Sets the value ofCfnClientVpnAuthorizationRuleProps.getClientVpnEndpointId()- Parameters:
clientVpnEndpointId- The ID of the Client VPN endpoint. This parameter is required.- Returns:
this
-
targetNetworkCidr
@Stability(Stable) public CfnClientVpnAuthorizationRuleProps.Builder targetNetworkCidr(String targetNetworkCidr) Sets the value ofCfnClientVpnAuthorizationRuleProps.getTargetNetworkCidr()- Parameters:
targetNetworkCidr- The IPv4 address range, in CIDR notation, of the network for which access is being authorized. This parameter is required.- Returns:
this
-
accessGroupId
@Stability(Stable) public CfnClientVpnAuthorizationRuleProps.Builder accessGroupId(String accessGroupId) Sets the value ofCfnClientVpnAuthorizationRuleProps.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 CfnClientVpnAuthorizationRuleProps.Builder authorizeAllGroups(Boolean authorizeAllGroups) Sets the value ofCfnClientVpnAuthorizationRuleProps.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 CfnClientVpnAuthorizationRuleProps.Builder authorizeAllGroups(IResolvable authorizeAllGroups) Sets the value ofCfnClientVpnAuthorizationRuleProps.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
-
description
@Stability(Stable) public CfnClientVpnAuthorizationRuleProps.Builder description(String description) Sets the value ofCfnClientVpnAuthorizationRuleProps.getDescription()- Parameters:
description- A brief description of the authorization rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClientVpnAuthorizationRuleProps>- Returns:
- a new instance of
CfnClientVpnAuthorizationRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-