Constructor and Description |
---|
Record.Builder() |
Modifier and Type | Method and Description |
---|---|
Record |
build() |
Record.Builder |
comment(String comment)
If included, its length must be less than or equal to 160 characters.
|
Record.Builder |
data(String data)
The data field for PTR, A, and AAAA records must be a valid IPv4 or IPv6 IP address.
|
Record.Builder |
from(Record in) |
Record.Builder |
name(String name)
The name for the domain or subdomain.
|
Record.Builder |
priority(Integer priority)
Required for MX and SRV records, but forbidden for other record types.
|
Record.Builder |
ttl(int ttl)
The duration in seconds that the record may be cached by clients.
|
Record.Builder |
ttl(com.google.common.base.Optional<Integer> ttl) |
Record.Builder |
type(String type)
The record type to add.
|
public Record.Builder name(String name)
public Record.Builder type(String type)
public Record.Builder ttl(int ttl)
public Record.Builder ttl(com.google.common.base.Optional<Integer> ttl)
ttl(int)
public Record.Builder data(String data)
public Record.Builder priority(Integer priority)
public Record.Builder comment(String comment)
public Record build()
public Record.Builder from(Record in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.