Class ClientVpnAuthorizationRuleOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.ClientVpnAuthorizationRuleOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClientVpnAuthorizationRuleOptions>
- Enclosing interface:
ClientVpnAuthorizationRuleOptions
@Stability(Stable)
public static final class ClientVpnAuthorizationRuleOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ClientVpnAuthorizationRuleOptions>
A builder for
ClientVpnAuthorizationRuleOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofClientVpnAuthorizationRuleOptions.getCidr()
description
(String description) Sets the value ofClientVpnAuthorizationRuleOptions.getDescription()
Sets the value ofClientVpnAuthorizationRuleOptions.getGroupId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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<ClientVpnAuthorizationRuleOptions>
- Returns:
- a new instance of
ClientVpnAuthorizationRuleOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-