Modifier and Type | Method and Description |
---|---|
RecordSet.Builder |
addRecord(String record)
Adds a record to the record set.
|
RecordSet |
build()
Builds the record set.
|
RecordSet.Builder |
clearRecords()
Removes all the records.
|
RecordSet.Builder |
removeRecord(String record)
Removes a record from the set.
|
RecordSet.Builder |
setName(String name)
Sets the name for this record set.
|
RecordSet.Builder |
setRecords(List<String> records)
Replaces the current records with the provided list of records.
|
RecordSet.Builder |
setTtl(int duration,
TimeUnit unit)
Sets the time that this record can be cached by resolvers.
|
RecordSet.Builder |
setType(RecordSet.Type type)
The identifier of a supported record type, for example, A, AAAA, MX, TXT, and so on.
|
public RecordSet.Builder addRecord(String record)
public RecordSet.Builder removeRecord(String record)
public RecordSet.Builder clearRecords()
public RecordSet.Builder setRecords(List<String> records)
public RecordSet.Builder setName(String name)
public RecordSet.Builder setTtl(int duration, TimeUnit unit)
Integer.MAX_VALUE
seconds.duration
- A non-negative number of time unitsunit
- The unit of the ttl parameterpublic RecordSet.Builder setType(RecordSet.Type type)
public RecordSet build()
Copyright © 2019 Google LLC. All rights reserved.