Class EndpointOptions.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.EndpointOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EndpointOptions>
- Enclosing interface:
- EndpointOptions
@Stability(Experimental)
public static final class EndpointOptions.Builder
extends Object
implements software.amazon.jsii.Builder<EndpointOptions>
A builder for
EndpointOptions
-
Constructor Summary
Constructors -
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()
endpointType
(EndpointType endpointType) Sets the value ofEndpointOptions.getEndpointType()
ownershipCertificate
(ICertificate ownershipCertificate) Sets the value ofEndpointOptions.getOwnershipCertificate()
securityPolicy
(SecurityPolicy securityPolicy) Sets the value ofEndpointOptions.getSecurityPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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(Experimental) public EndpointOptions.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
@Stability(Experimental) public EndpointOptions.Builder securityPolicy(SecurityPolicy 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<EndpointOptions>
- Returns:
- a new instance of
EndpointOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-