Modifier and Type | Method and Description |
---|---|
RecordSet |
build() |
RecordSet.Builder |
comment(java.lang.String comment)
A comment to add on the record.
|
static RecordSet.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
RecordSet.Builder |
recordName(java.lang.String recordName)
The domain name for this record.
|
RecordSet.Builder |
recordType(RecordType recordType)
The record type.
|
RecordSet.Builder |
target(RecordTarget target)
The target for this record, either `RecordTarget.fromValues()` or `RecordTarget.fromAlias()`.
|
RecordSet.Builder |
ttl(Duration ttl)
The resource record cache time to live (TTL).
|
RecordSet.Builder |
zone(IHostedZone zone)
The hosted zone in which to define the new record.
|
public static RecordSet.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.RecordSet.Builder
.public RecordSet.Builder zone(IHostedZone zone)
zone
- The hosted zone in which to define the new record. This parameter is required.this
public RecordSet.Builder comment(java.lang.String comment)
Default: no comment
comment
- A comment to add on the record. This parameter is required.this
public RecordSet.Builder recordName(java.lang.String recordName)
Default: zone root
recordName
- The domain name for this record. This parameter is required.this
public RecordSet.Builder ttl(Duration ttl)
Default: Duration.minutes(30)
ttl
- The resource record cache time to live (TTL). This parameter is required.this
public RecordSet.Builder recordType(RecordType recordType)
recordType
- The record type. This parameter is required.this
public RecordSet.Builder target(RecordTarget target)
target
- The target for this record, either `RecordTarget.fromValues()` or `RecordTarget.fromAlias()`. This parameter is required.this
public RecordSet build()