Class ClientVpnAuthorizationRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.ClientVpnAuthorizationRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClientVpnAuthorizationRuleProps>
- Enclosing interface:
ClientVpnAuthorizationRuleProps
@Stability(Stable)
public static final class ClientVpnAuthorizationRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<ClientVpnAuthorizationRuleProps>
A builder for
ClientVpnAuthorizationRuleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofClientVpnAuthorizationRuleOptions.getCidr()
clientVpnEndoint
(IClientVpnEndpoint clientVpnEndoint) Deprecated.Use `clientVpnEndpoint` insteadclientVpnEndpoint
(IClientVpnEndpoint clientVpnEndpoint) Sets the value ofClientVpnAuthorizationRuleProps.getClientVpnEndpoint()
description
(String description) Sets the value ofClientVpnAuthorizationRuleOptions.getDescription()
Sets the value ofClientVpnAuthorizationRuleOptions.getGroupId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientVpnEndoint
@Stability(Deprecated) @Deprecated public ClientVpnAuthorizationRuleProps.Builder clientVpnEndoint(IClientVpnEndpoint clientVpnEndoint) Deprecated.Use `clientVpnEndpoint` insteadSets the value ofClientVpnAuthorizationRuleProps.getClientVpnEndoint()
- Parameters:
clientVpnEndoint
- The client VPN endpoint to which to add the rule.- Returns:
this
-
clientVpnEndpoint
@Stability(Stable) public ClientVpnAuthorizationRuleProps.Builder clientVpnEndpoint(IClientVpnEndpoint clientVpnEndpoint) Sets the value ofClientVpnAuthorizationRuleProps.getClientVpnEndpoint()
- Parameters:
clientVpnEndpoint
- The client VPN endpoint to which to add the rule.- Returns:
this
-
cidr
Sets the value ofClientVpnAuthorizationRuleOptions.getCidr()
- Parameters:
cidr
- The IPv4 address range, in CIDR notation, of the network for which access is being authorized. This parameter is required.- Returns:
this
-
description
Sets the value ofClientVpnAuthorizationRuleOptions.getDescription()
- Parameters:
description
- A brief description of the authorization rule.- Returns:
this
-
groupId
Sets the value ofClientVpnAuthorizationRuleOptions.getGroupId()
- Parameters:
groupId
- The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ClientVpnAuthorizationRuleProps>
- Returns:
- a new instance of
ClientVpnAuthorizationRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-