Class DomainNameAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.DomainNameAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DomainNameAttributes>
- Enclosing interface:
DomainNameAttributes
@Stability(Stable)
public static final class DomainNameAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<DomainNameAttributes>
A builder for
DomainNameAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.domainName
(String domainName) Sets the value ofDomainNameAttributes.getDomainName()
domainNameAliasHostedZoneId
(String domainNameAliasHostedZoneId) Sets the value ofDomainNameAttributes.getDomainNameAliasHostedZoneId()
domainNameAliasTarget
(String domainNameAliasTarget) Sets the value ofDomainNameAttributes.getDomainNameAliasTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofDomainNameAttributes.getDomainName()
- Parameters:
domainName
- The domain name (e.g.example.com
). This parameter is required.- Returns:
this
-
domainNameAliasHostedZoneId
@Stability(Stable) public DomainNameAttributes.Builder domainNameAliasHostedZoneId(String domainNameAliasHostedZoneId) Sets the value ofDomainNameAttributes.getDomainNameAliasHostedZoneId()
- Parameters:
domainNameAliasHostedZoneId
- The Route53 hosted zone ID to use in order to connect a record set to this domain through an alias. This parameter is required.- Returns:
this
-
domainNameAliasTarget
@Stability(Stable) public DomainNameAttributes.Builder domainNameAliasTarget(String domainNameAliasTarget) Sets the value ofDomainNameAttributes.getDomainNameAliasTarget()
- Parameters:
domainNameAliasTarget
- The Route53 alias target to use in order to connect a record set to this domain through an alias. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DomainNameAttributes>
- Returns:
- a new instance of
DomainNameAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-