org.jclouds.rackspace.clouddns.v1.domain
Class Record.Builder

java.lang.Object
  extended by org.jclouds.rackspace.clouddns.v1.domain.Record.Builder
Enclosing class:
Record

public static final class Record.Builder
extends Object


Constructor Summary
Record.Builder()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Record.Builder

public Record.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.


type

public Record.Builder type(String type)
The record type to add.

See Supported Record Types


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.


ttl

public Record.Builder ttl(com.google.common.base.Optional<Integer> ttl)
See Also:
ttl(int)

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()

from

public Record.Builder from(Record in)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.