Class PrivateHostedZoneProps.Builder
java.lang.Object
software.amazon.awscdk.services.route53.PrivateHostedZoneProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrivateHostedZoneProps>
- Enclosing interface:
- PrivateHostedZoneProps
@Stability(Stable)
public static final class PrivateHostedZoneProps.Builder
extends Object
implements software.amazon.jsii.Builder<PrivateHostedZoneProps>
A builder for
PrivateHostedZoneProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCommonHostedZoneProps.getComment()
queryLogsLogGroupArn
(String queryLogsLogGroupArn) Sets the value ofCommonHostedZoneProps.getQueryLogsLogGroupArn()
Sets the value ofPrivateHostedZoneProps.getVpc()
Sets the value ofCommonHostedZoneProps.getZoneName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofPrivateHostedZoneProps.getVpc()
- Parameters:
vpc
- A VPC that you want to associate with this hosted zone. This parameter is required. Private hosted zones must be associated with at least one VPC. You can associated additional VPCs usingaddVpc(vpc)
.- Returns:
this
-
zoneName
Sets the value ofCommonHostedZoneProps.getZoneName()
- Parameters:
zoneName
- The name of the domain. This parameter is required. For resource record types that include a domain name, specify a fully qualified domain name.- Returns:
this
-
comment
Sets the value ofCommonHostedZoneProps.getComment()
- Parameters:
comment
- Any comments that you want to include about the hosted zone.- Returns:
this
-
queryLogsLogGroupArn
@Stability(Stable) public PrivateHostedZoneProps.Builder queryLogsLogGroupArn(String queryLogsLogGroupArn) Sets the value ofCommonHostedZoneProps.getQueryLogsLogGroupArn()
- Parameters:
queryLogsLogGroupArn
- The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PrivateHostedZoneProps>
- Returns:
- a new instance of
PrivateHostedZoneProps
- Throws:
NullPointerException
- if any required attribute was not provided
-