Class HostedZoneAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.route53.HostedZoneAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HostedZoneAttributes>
- Enclosing interface:
HostedZoneAttributes
@Stability(Stable)
public static final class HostedZoneAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<HostedZoneAttributes>
A builder for
HostedZoneAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.hostedZoneId
(String hostedZoneId) Sets the value ofHostedZoneAttributes.getHostedZoneId()
Sets the value ofHostedZoneAttributes.getZoneName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostedZoneId
Sets the value ofHostedZoneAttributes.getHostedZoneId()
- Parameters:
hostedZoneId
- Identifier of the hosted zone. This parameter is required.- Returns:
this
-
zoneName
Sets the value ofHostedZoneAttributes.getZoneName()
- Parameters:
zoneName
- Name of the hosted zone. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HostedZoneAttributes>
- Returns:
- a new instance of
HostedZoneAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-