Class RecordSet.Builder
java.lang.Object
software.amazon.awscdk.services.route53.RecordSet.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<RecordSet>
- Enclosing class:
- RecordSet
@Stability(Stable)
public static final class RecordSet.Builder
extends Object
implements software.amazon.jsii.Builder<RecordSet>
A fluent builder for 
RecordSet.- 
Method SummaryModifier and TypeMethodDescriptionbuild()A comment to add on the record.static RecordSet.BuilderrecordName(String recordName) The domain name for this record.recordType(RecordType recordType) The record type.target(RecordTarget target) The target for this record, eitherRecordTarget.fromValues()orRecordTarget.fromAlias().The resource record cache time to live (TTL).zone(IHostedZone zone) The hosted zone in which to define the new record.
- 
Method Details- 
create@Stability(Stable) public static RecordSet.Builder create(software.constructs.Construct scope, String id) - Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- Returns:
- a new instance of RecordSet.Builder.
 
- 
zoneThe 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
 
- 
commentA comment to add on the record.Default: no comment - Parameters:
- comment- A comment to add on the record. This parameter is required.
- Returns:
- this
 
- 
recordNameThe domain name for this record.Default: zone root - Parameters:
- recordName- The domain name for this record. This parameter is required.
- Returns:
- this
 
- 
ttlThe 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
 
- 
recordTypeThe record type.- Parameters:
- recordType- The record type. This parameter is required.
- Returns:
- this
 
- 
targetThe target for this record, eitherRecordTarget.fromValues()orRecordTarget.fromAlias().- Parameters:
- target- The target for this record, either- RecordTarget.fromValues()or- RecordTarget.fromAlias(). This parameter is required.
- Returns:
- this
 
- 
build
 
-