Class DomainNameAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.DomainNameAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DomainNameAttributes>
- Enclosing interface:
DomainNameAttributes
@Stability(Experimental)
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.Sets the value ofDomainNameAttributes.getName()
regionalDomainName
(String regionalDomainName) Sets the value ofDomainNameAttributes.getRegionalDomainName()
regionalHostedZoneId
(String regionalHostedZoneId) Sets the value ofDomainNameAttributes.getRegionalHostedZoneId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofDomainNameAttributes.getName()
- Parameters:
name
- domain name string. This parameter is required.- Returns:
this
-
regionalDomainName
@Stability(Experimental) public DomainNameAttributes.Builder regionalDomainName(String regionalDomainName) Sets the value ofDomainNameAttributes.getRegionalDomainName()
- Parameters:
regionalDomainName
- The domain name associated with the regional endpoint for this custom domain name. This parameter is required.- Returns:
this
-
regionalHostedZoneId
@Stability(Experimental) public DomainNameAttributes.Builder regionalHostedZoneId(String regionalHostedZoneId) Sets the value ofDomainNameAttributes.getRegionalHostedZoneId()
- Parameters:
regionalHostedZoneId
- The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. 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
-