Class PrivateHostedZone.Builder

java.lang.Object
software.amazon.awscdk.services.route53.PrivateHostedZone.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<PrivateHostedZone>
Enclosing class:
PrivateHostedZone

@Stability(Stable) public static final class PrivateHostedZone.Builder extends Object implements software.amazon.jsii.Builder<PrivateHostedZone>
A fluent builder for PrivateHostedZone.
  • Method Details

    • create

      @Stability(Stable) public static PrivateHostedZone.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of PrivateHostedZone.Builder.
    • zoneName

      @Stability(Stable) public PrivateHostedZone.Builder zoneName(String zoneName)
      The name of the domain.

      For resource record types that include a domain name, specify a fully qualified domain name.

      Parameters:
      zoneName - The name of the domain. This parameter is required.
      Returns:
      this
    • addTrailingDot

      @Stability(Stable) public PrivateHostedZone.Builder addTrailingDot(Boolean addTrailingDot)
      Whether to add a trailing dot to the zone name.

      Default: true

      Parameters:
      addTrailingDot - Whether to add a trailing dot to the zone name. This parameter is required.
      Returns:
      this
    • comment

      @Stability(Stable) public PrivateHostedZone.Builder comment(String comment)
      Any comments that you want to include about the hosted zone.

      Default: none

      Parameters:
      comment - Any comments that you want to include about the hosted zone. This parameter is required.
      Returns:
      this
    • queryLogsLogGroupArn

      @Stability(Stable) public PrivateHostedZone.Builder queryLogsLogGroupArn(String queryLogsLogGroupArn)
      The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to.

      Default: disabled

      Parameters:
      queryLogsLogGroupArn - The Amazon Resource Name (ARN) for the log group that you want Amazon Route 53 to send query logs to. This parameter is required.
      Returns:
      this
    • vpc

      @Stability(Stable) public PrivateHostedZone.Builder vpc(IVpc vpc)
      A VPC that you want to associate with this hosted zone.

      Private hosted zones must be associated with at least one VPC. You can associated additional VPCs using addVpc(vpc).

      Parameters:
      vpc - A VPC that you want to associate with this hosted zone. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public PrivateHostedZone build()
      Specified by:
      build in interface software.amazon.jsii.Builder<PrivateHostedZone>
      Returns:
      a newly built instance of PrivateHostedZone.