Class CfnDomainNameProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnDomainNameProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainNameProps>
- Enclosing interface:
CfnDomainNameProps
@Stability(Stable)
public static final class CfnDomainNameProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainNameProps>
A builder for
CfnDomainNameProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainName(String domainName) Sets the value ofCfnDomainNameProps.getDomainName()domainNameConfigurations(List<? extends Object> domainNameConfigurations) Sets the value ofCfnDomainNameProps.getDomainNameConfigurations()domainNameConfigurations(IResolvable domainNameConfigurations) Sets the value ofCfnDomainNameProps.getDomainNameConfigurations()mutualTlsAuthentication(IResolvable mutualTlsAuthentication) Sets the value ofCfnDomainNameProps.getMutualTlsAuthentication()mutualTlsAuthentication(CfnDomainName.MutualTlsAuthenticationProperty mutualTlsAuthentication) Sets the value ofCfnDomainNameProps.getMutualTlsAuthentication()routingMode(String routingMode) Sets the value ofCfnDomainNameProps.getRoutingMode()Sets the value ofCfnDomainNameProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofCfnDomainNameProps.getDomainName()- Parameters:
domainName- The custom domain name for your API in Amazon API Gateway. This parameter is required. Uppercase letters and the underscore (_) character are not supported.- Returns:
this
-
domainNameConfigurations
@Stability(Stable) public CfnDomainNameProps.Builder domainNameConfigurations(IResolvable domainNameConfigurations) Sets the value ofCfnDomainNameProps.getDomainNameConfigurations()- Parameters:
domainNameConfigurations- The domain name configurations.- Returns:
this
-
domainNameConfigurations
@Stability(Stable) public CfnDomainNameProps.Builder domainNameConfigurations(List<? extends Object> domainNameConfigurations) Sets the value ofCfnDomainNameProps.getDomainNameConfigurations()- Parameters:
domainNameConfigurations- The domain name configurations.- Returns:
this
-
mutualTlsAuthentication
@Stability(Stable) public CfnDomainNameProps.Builder mutualTlsAuthentication(IResolvable mutualTlsAuthentication) Sets the value ofCfnDomainNameProps.getMutualTlsAuthentication()- Parameters:
mutualTlsAuthentication- The mutual TLS authentication configuration for a custom domain name.- Returns:
this
-
mutualTlsAuthentication
@Stability(Stable) public CfnDomainNameProps.Builder mutualTlsAuthentication(CfnDomainName.MutualTlsAuthenticationProperty mutualTlsAuthentication) Sets the value ofCfnDomainNameProps.getMutualTlsAuthentication()- Parameters:
mutualTlsAuthentication- The mutual TLS authentication configuration for a custom domain name.- Returns:
this
-
routingMode
Sets the value ofCfnDomainNameProps.getRoutingMode()- Parameters:
routingMode- The routing mode API Gateway uses to route traffic to your APIs.- Returns:
this
-
tags
Sets the value ofCfnDomainNameProps.getTags()- Parameters:
tags- The collection of tags associated with a domain name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomainNameProps>- Returns:
- a new instance of
CfnDomainNameProps - Throws:
NullPointerException- if any required attribute was not provided
-