Class SrvRecord.Builder

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

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

    • create

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

      @Stability(Stable) public SrvRecord.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 SrvRecord.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 SrvRecord.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 SrvRecord.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
    • values

      @Stability(Stable) public SrvRecord.Builder values(List<? extends SrvRecordValue> values)
      The values.

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

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