Class CfnWorkgroup.EndpointProperty.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnWorkgroup.EndpointProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkgroup.EndpointProperty>
- Enclosing interface:
CfnWorkgroup.EndpointProperty
@Stability(Stable)
public static final class CfnWorkgroup.EndpointProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkgroup.EndpointProperty>
A builder for
CfnWorkgroup.EndpointProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnWorkgroup.EndpointProperty.getAddress()build()Builds the configured instance.Sets the value ofCfnWorkgroup.EndpointProperty.getPort()vpcEndpoints(List<? extends Object> vpcEndpoints) Sets the value ofCfnWorkgroup.EndpointProperty.getVpcEndpoints()vpcEndpoints(IResolvable vpcEndpoints) Sets the value ofCfnWorkgroup.EndpointProperty.getVpcEndpoints()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
address
Sets the value ofCfnWorkgroup.EndpointProperty.getAddress()- Parameters:
address- The DNS address of the VPC endpoint.- Returns:
this
-
port
Sets the value ofCfnWorkgroup.EndpointProperty.getPort()- Parameters:
port- The port that Amazon Redshift Serverless listens on.- Returns:
this
-
vpcEndpoints
@Stability(Stable) public CfnWorkgroup.EndpointProperty.Builder vpcEndpoints(IResolvable vpcEndpoints) Sets the value ofCfnWorkgroup.EndpointProperty.getVpcEndpoints()- Parameters:
vpcEndpoints- An array ofVpcEndpointobjects.- Returns:
this
-
vpcEndpoints
@Stability(Stable) public CfnWorkgroup.EndpointProperty.Builder vpcEndpoints(List<? extends Object> vpcEndpoints) Sets the value ofCfnWorkgroup.EndpointProperty.getVpcEndpoints()- Parameters:
vpcEndpoints- An array ofVpcEndpointobjects.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkgroup.EndpointProperty>- Returns:
- a new instance of
CfnWorkgroup.EndpointProperty - Throws:
NullPointerException- if any required attribute was not provided
-