Class CfnVpcEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnVpcEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVpcEndpointProps>
- Enclosing interface:
CfnVpcEndpointProps
@Stability(Stable)
public static final class CfnVpcEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVpcEndpointProps>
A builder for
CfnVpcEndpointProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnVpcEndpointProps.getName()
securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnVpcEndpointProps.getSecurityGroupIds()
Sets the value ofCfnVpcEndpointProps.getSubnetIds()
Sets the value ofCfnVpcEndpointProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnVpcEndpointProps.getName()
- Parameters:
name
- The name of the endpoint. This parameter is required.- Returns:
this
-
subnetIds
Sets the value ofCfnVpcEndpointProps.getSubnetIds()
- Parameters:
subnetIds
- The ID of the subnets from which you access OpenSearch Serverless. This parameter is required.- Returns:
this
-
vpcId
Sets the value ofCfnVpcEndpointProps.getVpcId()
- Parameters:
vpcId
- The ID of the VPC from which you access OpenSearch Serverless. This parameter is required.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnVpcEndpointProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnVpcEndpointProps.getSecurityGroupIds()
- Parameters:
securityGroupIds
- The unique identifiers of the security groups that define the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVpcEndpointProps>
- Returns:
- a new instance of
CfnVpcEndpointProps
- Throws:
NullPointerException
- if any required attribute was not provided
-