Class Record.Builder

  • Enclosing class:
    Record

    public static final class Record.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public Record.Builder name​(String name)
        The name for the domain or subdomain. Must be a fully qualified domain name (FQDN) that doesn't end in a '.'.

        Users can add one or more wildcard records to any domain or sub-domain on their account. For information on the intent and use of wildcard records, see the DNS literature including RFC 1034, section 4.3.3, and RFC 4595.

        Wildcards are supported for A, AAAA, CNAME, MX, SRV and TXT record types.

        A valid wildcard DNS record is specified by using an asterisk ("*") as the leftmost part of a record name, for example *.example.com. An asterisk in any other part of a record name is invalid. Only the asterisk ("*") is accepted as a wildcard character.

        For SRV records, this specifies the entire service name, which is made up of the service, protocol, and domain name to which the record belongs. The service and protocol fields of the service name can be modified but not the domain name field.
      • ttl

        public Record.Builder ttl​(int ttl)
        The duration in seconds that the record may be cached by clients. If specified, must be greater than 300. The default value, if not specified, is 3600.
      • data

        public Record.Builder data​(String data)
        The data field for PTR, A, and AAAA records must be a valid IPv4 or IPv6 IP address.
      • priority

        public Record.Builder priority​(Integer priority)
        Required for MX and SRV records, but forbidden for other record types. If specified, must be an integer from 0 to 65535.
      • comment

        public Record.Builder comment​(String comment)
        If included, its length must be less than or equal to 160 characters.
      • build

        public Record build()