Class AaaaRecord.Builder

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

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

    • create

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

      @Stability(Stable) public AaaaRecord.Builder zone(IHostedZone zone)
      The hosted zone in which to define the new record.

      Parameters:
      zone - The hosted zone in which to define the new record. This parameter is required.
      Returns:
      this
    • comment

      @Stability(Stable) public AaaaRecord.Builder comment(String comment)
      A comment to add on the record.

      Default: no comment

      Parameters:
      comment - A comment to add on the record. This parameter is required.
      Returns:
      this
    • recordName

      @Stability(Stable) public AaaaRecord.Builder recordName(String recordName)
      The domain name for this record.

      Default: zone root

      Parameters:
      recordName - The domain name for this record. This parameter is required.
      Returns:
      this
    • ttl

      @Stability(Stable) public AaaaRecord.Builder ttl(Duration ttl)
      The resource record cache time to live (TTL).

      Default: Duration.minutes(30)

      Parameters:
      ttl - The resource record cache time to live (TTL). This parameter is required.
      Returns:
      this
    • target

      @Stability(Stable) public AaaaRecord.Builder target(RecordTarget target)
      The target.

      Parameters:
      target - The target. This parameter is required.
      Returns:
      this
    • build

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