Class CustomEndpointOptions.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.CustomEndpointOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomEndpointOptions>
- Enclosing interface:
CustomEndpointOptions
@Stability(Stable)
public static final class CustomEndpointOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CustomEndpointOptions>
A builder for
CustomEndpointOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificate
(ICertificate certificate) Sets the value ofCustomEndpointOptions.getCertificate()
domainName
(String domainName) Sets the value ofCustomEndpointOptions.getDomainName()
hostedZone
(IHostedZone hostedZone) Sets the value ofCustomEndpointOptions.getHostedZone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofCustomEndpointOptions.getDomainName()
- Parameters:
domainName
- The custom domain name to assign. This parameter is required.- Returns:
this
-
certificate
Sets the value ofCustomEndpointOptions.getCertificate()
- Parameters:
certificate
- The certificate to use.- Returns:
this
-
hostedZone
Sets the value ofCustomEndpointOptions.getHostedZone()
- Parameters:
hostedZone
- The hosted zone in Route53 to create the CNAME record in.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomEndpointOptions>
- Returns:
- a new instance of
CustomEndpointOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-