Class HostedZoneProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.route53.HostedZoneProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HostedZoneProviderProps>
- Enclosing interface:
HostedZoneProviderProps
@Stability(Stable)
public static final class HostedZoneProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<HostedZoneProviderProps>
A builder for
HostedZoneProviderProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.domainName(String domainName) Sets the value ofHostedZoneProviderProps.getDomainName()privateZone(Boolean privateZone) Sets the value ofHostedZoneProviderProps.getPrivateZone()Sets the value ofHostedZoneProviderProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofHostedZoneProviderProps.getDomainName()- Parameters:
domainName- The zone domain e.g. example.com. This parameter is required.- Returns:
this
-
privateZone
Sets the value ofHostedZoneProviderProps.getPrivateZone()- Parameters:
privateZone- Whether the zone that is being looked up is a private hosted zone.- Returns:
this
-
vpcId
Sets the value ofHostedZoneProviderProps.getVpcId()- Parameters:
vpcId- Specifies the ID of the VPC associated with a private hosted zone. If a VPC ID is provided and privateZone is false, no results will be returned and an error will be raised- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HostedZoneProviderProps>- Returns:
- a new instance of
HostedZoneProviderProps - Throws:
NullPointerException- if any required attribute was not provided
-