Class EndpointConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.EndpointConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EndpointConfiguration>
- Enclosing interface:
- EndpointConfiguration
@Stability(Stable)
public static final class EndpointConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<EndpointConfiguration>
A builder for
EndpointConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.types
(List<? extends EndpointType> types) Sets the value ofEndpointConfiguration.getTypes()
vpcEndpoints
(List<? extends IVpcEndpoint> vpcEndpoints) Sets the value ofEndpointConfiguration.getVpcEndpoints()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
types
Sets the value ofEndpointConfiguration.getTypes()
- Parameters:
types
- A list of endpoint types of an API or its custom domain name. This parameter is required.- Returns:
this
-
vpcEndpoints
@Stability(Stable) public EndpointConfiguration.Builder vpcEndpoints(List<? extends IVpcEndpoint> vpcEndpoints) Sets the value ofEndpointConfiguration.getVpcEndpoints()
- Parameters:
vpcEndpoints
- A list of VPC Endpoints against which to create Route53 ALIASes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EndpointConfiguration>
- Returns:
- a new instance of
EndpointConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-