Class CfnDomainNameV2MixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apigateway.CfnDomainNameV2MixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainNameV2MixinProps>
- Enclosing interface:
CfnDomainNameV2MixinProps
@Stability(Stable)
public static final class CfnDomainNameV2MixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainNameV2MixinProps>
A builder for
CfnDomainNameV2MixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.certificateArn(String certificateArn) Sets the value ofCfnDomainNameV2MixinProps.getCertificateArn()domainName(String domainName) Sets the value ofCfnDomainNameV2MixinProps.getDomainName()endpointAccessMode(String endpointAccessMode) Sets the value ofCfnDomainNameV2MixinProps.getEndpointAccessMode()endpointConfiguration(CfnDomainNameV2PropsMixin.EndpointConfigurationProperty endpointConfiguration) Sets the value ofCfnDomainNameV2MixinProps.getEndpointConfiguration()endpointConfiguration(IResolvable endpointConfiguration) Sets the value ofCfnDomainNameV2MixinProps.getEndpointConfiguration()Sets the value ofCfnDomainNameV2MixinProps.getPolicy()routingMode(String routingMode) Sets the value ofCfnDomainNameV2MixinProps.getRoutingMode()securityPolicy(String securityPolicy) Sets the value ofCfnDomainNameV2MixinProps.getSecurityPolicy()Sets the value ofCfnDomainNameV2MixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateArn
Sets the value ofCfnDomainNameV2MixinProps.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 ofCfnDomainNameV2MixinProps.getDomainName()- Parameters:
domainName- Represents a custom domain name as a user-friendly host name of an API (RestApi).- Returns:
this
-
endpointAccessMode
@Stability(Stable) public CfnDomainNameV2MixinProps.Builder endpointAccessMode(String endpointAccessMode) Sets the value ofCfnDomainNameV2MixinProps.getEndpointAccessMode()- Parameters:
endpointAccessMode- The endpoint access mode for your DomainName.- Returns:
this
-
endpointConfiguration
@Stability(Stable) public CfnDomainNameV2MixinProps.Builder endpointConfiguration(IResolvable endpointConfiguration) Sets the value ofCfnDomainNameV2MixinProps.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 CfnDomainNameV2MixinProps.Builder endpointConfiguration(CfnDomainNameV2PropsMixin.EndpointConfigurationProperty endpointConfiguration) Sets the value ofCfnDomainNameV2MixinProps.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 ofCfnDomainNameV2MixinProps.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 ofCfnDomainNameV2MixinProps.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 ofCfnDomainNameV2MixinProps.getSecurityPolicy()- Parameters:
securityPolicy- The Transport Layer Security (TLS) version + cipher suite for this DomainName.- Returns:
this
-
tags
Sets the value ofCfnDomainNameV2MixinProps.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<CfnDomainNameV2MixinProps>- Returns:
- a new instance of
CfnDomainNameV2MixinProps - Throws:
NullPointerException- if any required attribute was not provided
-