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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ipAddressType(IpAddressType ipAddressType) Sets the value ofEndpointConfiguration.getIpAddressType()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
-
ipAddressType
Sets the value ofEndpointConfiguration.getIpAddressType()- Parameters:
ipAddressType- The IP address types that can invoke the API.- 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:
buildin interfacesoftware.amazon.jsii.Builder<EndpointConfiguration>- Returns:
- a new instance of
EndpointConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-