Class CfnRestApiPropsMixin.EndpointConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.apigateway.mixins.CfnRestApiPropsMixin.EndpointConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRestApiPropsMixin.EndpointConfigurationProperty>
- Enclosing interface:
CfnRestApiPropsMixin.EndpointConfigurationProperty
@Stability(Stable)
public static final class CfnRestApiPropsMixin.EndpointConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRestApiPropsMixin.EndpointConfigurationProperty>
A builder for
CfnRestApiPropsMixin.EndpointConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ipAddressType(String ipAddressType) Sets the value ofCfnRestApiPropsMixin.EndpointConfigurationProperty.getIpAddressType()Sets the value ofCfnRestApiPropsMixin.EndpointConfigurationProperty.getTypes()vpcEndpointIds(List<String> vpcEndpointIds) Sets the value ofCfnRestApiPropsMixin.EndpointConfigurationProperty.getVpcEndpointIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipAddressType
@Stability(Stable) public CfnRestApiPropsMixin.EndpointConfigurationProperty.Builder ipAddressType(String ipAddressType) Sets the value ofCfnRestApiPropsMixin.EndpointConfigurationProperty.getIpAddressType()- Parameters:
ipAddressType- The IP address types that can invoke an API (RestApi). Useipv4to allow only IPv4 addresses to invoke an API, or usedualstackto allow both IPv4 and IPv6 addresses to invoke an API. For thePRIVATEendpoint type, onlydualstackis supported.- Returns:
this
-
types
@Stability(Stable) public CfnRestApiPropsMixin.EndpointConfigurationProperty.Builder types(List<String> types) Sets the value ofCfnRestApiPropsMixin.EndpointConfigurationProperty.getTypes()- Parameters:
types- A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API and its custom domain name, the endpoint type is"EDGE". For a regional API and its custom domain name, the endpoint type isREGIONAL. For a private API, the endpoint type isPRIVATE.- Returns:
this
-
vpcEndpointIds
@Stability(Stable) public CfnRestApiPropsMixin.EndpointConfigurationProperty.Builder vpcEndpointIds(List<String> vpcEndpointIds) Sets the value ofCfnRestApiPropsMixin.EndpointConfigurationProperty.getVpcEndpointIds()- Parameters:
vpcEndpointIds- A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported forPRIVATEendpoint type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRestApiPropsMixin.EndpointConfigurationProperty>- Returns:
- a new instance of
CfnRestApiPropsMixin.EndpointConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-