public static final class RecordSetProps.Builder
extends java.lang.Object
RecordSetProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RecordSetProps |
build()
Builds the configured instance.
|
RecordSetProps.Builder |
comment(java.lang.String comment)
Sets the value of
RecordSetOptions.getComment() |
RecordSetProps.Builder |
recordName(java.lang.String recordName)
Sets the value of
RecordSetOptions.getRecordName() |
RecordSetProps.Builder |
recordType(RecordType recordType)
Sets the value of
RecordSetProps.getRecordType() |
RecordSetProps.Builder |
target(RecordTarget target)
Sets the value of
RecordSetProps.getTarget() |
RecordSetProps.Builder |
ttl(Duration ttl)
Sets the value of
RecordSetOptions.getTtl() |
RecordSetProps.Builder |
zone(IHostedZone zone)
Sets the value of
RecordSetOptions.getZone() |
public RecordSetProps.Builder recordType(RecordType recordType)
RecordSetProps.getRecordType()
recordType
- The record type. This parameter is required.this
public RecordSetProps.Builder target(RecordTarget target)
RecordSetProps.getTarget()
target
- The target for this record, either `RecordTarget.fromValues()` or `RecordTarget.fromAlias()`. This parameter is required.this
public RecordSetProps.Builder zone(IHostedZone zone)
RecordSetOptions.getZone()
zone
- The hosted zone in which to define the new record. This parameter is required.this
public RecordSetProps.Builder comment(java.lang.String comment)
RecordSetOptions.getComment()
comment
- A comment to add on the record.this
public RecordSetProps.Builder recordName(java.lang.String recordName)
RecordSetOptions.getRecordName()
recordName
- The domain name for this record.this
public RecordSetProps.Builder ttl(Duration ttl)
RecordSetOptions.getTtl()
ttl
- The resource record cache time to live (TTL).this
public RecordSetProps build()
RecordSetProps
java.lang.NullPointerException
- if any required attribute was not provided