Class ClientVpnEndpointAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.ClientVpnEndpointAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClientVpnEndpointAttributes>
- Enclosing interface:
ClientVpnEndpointAttributes
@Stability(Stable)
public static final class ClientVpnEndpointAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ClientVpnEndpointAttributes>
A builder for
ClientVpnEndpointAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.endpointId
(String endpointId) Sets the value ofClientVpnEndpointAttributes.getEndpointId()
securityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofClientVpnEndpointAttributes.getSecurityGroups()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpointId
Sets the value ofClientVpnEndpointAttributes.getEndpointId()
- Parameters:
endpointId
- The endpoint ID. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Stable) public ClientVpnEndpointAttributes.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofClientVpnEndpointAttributes.getSecurityGroups()
- Parameters:
securityGroups
- The security groups associated with the endpoint. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ClientVpnEndpointAttributes>
- Returns:
- a new instance of
ClientVpnEndpointAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-