Class InterfaceVpcEndpointAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.InterfaceVpcEndpointAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InterfaceVpcEndpointAttributes>
- Enclosing interface:
InterfaceVpcEndpointAttributes
@Stability(Stable)
public static final class InterfaceVpcEndpointAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<InterfaceVpcEndpointAttributes>
A builder for
InterfaceVpcEndpointAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofInterfaceVpcEndpointAttributes.getPort()
securityGroupId
(String securityGroupId) Deprecated.use `securityGroups` insteadsecurityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofInterfaceVpcEndpointAttributes.getSecurityGroups()
vpcEndpointId
(String vpcEndpointId) Sets the value ofInterfaceVpcEndpointAttributes.getVpcEndpointId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
port
Sets the value ofInterfaceVpcEndpointAttributes.getPort()
- Parameters:
port
- The port of the service of the interface VPC endpoint. This parameter is required.- Returns:
this
-
vpcEndpointId
@Stability(Stable) public InterfaceVpcEndpointAttributes.Builder vpcEndpointId(String vpcEndpointId) Sets the value ofInterfaceVpcEndpointAttributes.getVpcEndpointId()
- Parameters:
vpcEndpointId
- The interface VPC endpoint identifier. This parameter is required.- Returns:
this
-
securityGroupId
@Stability(Deprecated) @Deprecated public InterfaceVpcEndpointAttributes.Builder securityGroupId(String securityGroupId) Deprecated.use `securityGroups` insteadSets the value ofInterfaceVpcEndpointAttributes.getSecurityGroupId()
- Parameters:
securityGroupId
- The identifier of the security group associated with the interface VPC endpoint.- Returns:
this
-
securityGroups
@Stability(Stable) public InterfaceVpcEndpointAttributes.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofInterfaceVpcEndpointAttributes.getSecurityGroups()
- Parameters:
securityGroups
- The security groups associated with the interface VPC endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<InterfaceVpcEndpointAttributes>
- Returns:
- a new instance of
InterfaceVpcEndpointAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-