Class DomainNameProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.DomainNameProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DomainNameProps>
- Enclosing interface:
DomainNameProps
@Stability(Stable)
public static final class DomainNameProps.Builder
extends Object
implements software.amazon.jsii.Builder<DomainNameProps>
A builder for
DomainNameProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificate
(ICertificate certificate) Sets the value ofEndpointOptions.getCertificate()
certificateName
(String certificateName) Sets the value ofEndpointOptions.getCertificateName()
domainName
(String domainName) Sets the value ofDomainNameProps.getDomainName()
endpointType
(EndpointType endpointType) Sets the value ofEndpointOptions.getEndpointType()
mtls
(MTLSConfig mtls) Sets the value ofDomainNameProps.getMtls()
ownershipCertificate
(ICertificate ownershipCertificate) Sets the value ofEndpointOptions.getOwnershipCertificate()
securityPolicy
(SecurityPolicy securityPolicy) Sets the value ofEndpointOptions.getSecurityPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofDomainNameProps.getDomainName()
- Parameters:
domainName
- The custom domain name. This parameter is required.- Returns:
this
-
mtls
Sets the value ofDomainNameProps.getMtls()
- Parameters:
mtls
- The mutual TLS authentication configuration for a custom domain name.- Returns:
this
-
certificate
Sets the value ofEndpointOptions.getCertificate()
- Parameters:
certificate
- The ACM certificate for this domain name. This parameter is required. Certificate can be both ACM issued or imported.- Returns:
this
-
certificateName
Sets the value ofEndpointOptions.getCertificateName()
- Parameters:
certificateName
- The user-friendly name of the certificate that will be used by the endpoint for this domain name.- Returns:
this
-
endpointType
Sets the value ofEndpointOptions.getEndpointType()
- Parameters:
endpointType
- The type of endpoint for this DomainName.- Returns:
this
-
ownershipCertificate
@Stability(Stable) public DomainNameProps.Builder ownershipCertificate(ICertificate ownershipCertificate) Sets the value ofEndpointOptions.getOwnershipCertificate()
- Parameters:
ownershipCertificate
- A public certificate issued by ACM to validate that you own a custom domain. This parameter is required only when you configure mutual TLS authentication and you specify an ACM imported or private CA certificate forcertificate
. The ownership certificate validates that you have permissions to use the domain name.- Returns:
this
-
securityPolicy
Sets the value ofEndpointOptions.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<DomainNameProps>
- Returns:
- a new instance of
DomainNameProps
- Throws:
NullPointerException
- if any required attribute was not provided
-