Class CfnDomainNameV2Props.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnDomainNameV2Props.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainNameV2Props>
- Enclosing interface:
CfnDomainNameV2Props
@Stability(Stable)
public static final class CfnDomainNameV2Props.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainNameV2Props>
A builder for
CfnDomainNameV2Props-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.certificateArn(String certificateArn) Sets the value ofCfnDomainNameV2Props.getCertificateArn()domainName(String domainName) Sets the value ofCfnDomainNameV2Props.getDomainName()endpointAccessMode(String endpointAccessMode) Sets the value ofCfnDomainNameV2Props.getEndpointAccessMode()endpointConfiguration(IResolvable endpointConfiguration) Sets the value ofCfnDomainNameV2Props.getEndpointConfiguration()endpointConfiguration(CfnDomainNameV2.EndpointConfigurationProperty endpointConfiguration) Sets the value ofCfnDomainNameV2Props.getEndpointConfiguration()Sets the value ofCfnDomainNameV2Props.getPolicy()routingMode(String routingMode) Sets the value ofCfnDomainNameV2Props.getRoutingMode()securityPolicy(String securityPolicy) Sets the value ofCfnDomainNameV2Props.getSecurityPolicy()Sets the value ofCfnDomainNameV2Props.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateArn
Sets the value ofCfnDomainNameV2Props.getCertificateArn()- Parameters:
certificateArn- The reference to an AWS -managed certificate that will be used by the private endpoint for this domain name. AWS Certificate Manager is the only supported source.- Returns:
this
-
domainName
Sets the value ofCfnDomainNameV2Props.getDomainName()- Parameters:
domainName- Represents a custom domain name as a user-friendly host name of an API (RestApi).- Returns:
this
-
endpointAccessMode
@Stability(Stable) public CfnDomainNameV2Props.Builder endpointAccessMode(String endpointAccessMode) Sets the value ofCfnDomainNameV2Props.getEndpointAccessMode()- Parameters:
endpointAccessMode- The endpoint access mode for your DomainName.- Returns:
this
-
endpointConfiguration
@Stability(Stable) public CfnDomainNameV2Props.Builder endpointConfiguration(IResolvable endpointConfiguration) Sets the value ofCfnDomainNameV2Props.getEndpointConfiguration()- Parameters:
endpointConfiguration- The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it.- Returns:
this
-
endpointConfiguration
@Stability(Stable) public CfnDomainNameV2Props.Builder endpointConfiguration(CfnDomainNameV2.EndpointConfigurationProperty endpointConfiguration) Sets the value ofCfnDomainNameV2Props.getEndpointConfiguration()- Parameters:
endpointConfiguration- The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it.- Returns:
this
-
policy
Sets the value ofCfnDomainNameV2Props.getPolicy()- Parameters:
policy- A stringified JSON policy document that applies to theexecute-apiservice for this DomainName regardless of the caller and Method configuration. You can useFn::ToJsonStringto enter yourpolicy. For more information, see Fn::ToJsonString .- Returns:
this
-
routingMode
Sets the value ofCfnDomainNameV2Props.getRoutingMode()- Parameters:
routingMode- The routing mode for this domain name. The routing mode determines how API Gateway sends traffic from your custom domain name to your private APIs.- Returns:
this
-
securityPolicy
Sets the value ofCfnDomainNameV2Props.getSecurityPolicy()- Parameters:
securityPolicy- The Transport Layer Security (TLS) version + cipher suite for this DomainName.- Returns:
this
-
tags
Sets the value ofCfnDomainNameV2Props.getTags()- Parameters:
tags- The collection of tags. Each tag element is associated with a given resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomainNameV2Props>- Returns:
- a new instance of
CfnDomainNameV2Props - Throws:
NullPointerException- if any required attribute was not provided
-