Class DomainNameOptions.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.DomainNameOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DomainNameOptions>
- Enclosing interface:
- DomainNameOptions
@Stability(Stable)
public static final class DomainNameOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DomainNameOptions>
A builder for
DomainNameOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofDomainNameOptions.getBasePath()
build()
Builds the configured instance.certificate
(ICertificate certificate) Sets the value ofDomainNameOptions.getCertificate()
domainName
(String domainName) Sets the value ofDomainNameOptions.getDomainName()
endpointType
(EndpointType endpointType) Sets the value ofDomainNameOptions.getEndpointType()
mtls
(MTLSConfig mtls) Sets the value ofDomainNameOptions.getMtls()
securityPolicy
(SecurityPolicy securityPolicy) Sets the value ofDomainNameOptions.getSecurityPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificate
Sets the value ofDomainNameOptions.getCertificate()
- Parameters:
certificate
- The reference to an AWS-managed certificate for use by the edge-optimized endpoint for the domain name. This parameter is required. For "EDGE" domain names, the certificate needs to be in the US East (N. Virginia) region.- Returns:
this
-
domainName
Sets the value ofDomainNameOptions.getDomainName()
- Parameters:
domainName
- The custom domain name for your API. This parameter is required. Uppercase letters are not supported.- Returns:
this
-
basePath
Sets the value ofDomainNameOptions.getBasePath()
- Parameters:
basePath
- The base path name that callers of the API must provide in the URL after the domain name (e.g.example.com/base-path
). If you specify this property, it can't be an empty string.- Returns:
this
-
endpointType
Sets the value ofDomainNameOptions.getEndpointType()
- Parameters:
endpointType
- The type of endpoint for this DomainName.- Returns:
this
-
mtls
Sets the value ofDomainNameOptions.getMtls()
- Parameters:
mtls
- The mutual TLS authentication configuration for a custom domain name.- Returns:
this
-
securityPolicy
Sets the value ofDomainNameOptions.getSecurityPolicy()
- Parameters:
securityPolicy
- The Transport Layer Security (TLS) version + cipher suite for this domain name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DomainNameOptions>
- Returns:
- a new instance of
DomainNameOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-