org.jclouds.glesys.domain
Class DomainRecord

java.lang.Object
  extended by org.jclouds.glesys.domain.DomainRecord
All Implemented Interfaces:
Comparable<DomainRecord>

public class DomainRecord
extends Object
implements Comparable<DomainRecord>

DNS record data.

Author:
Adam Lowe
See Also:

Nested Class Summary
static class DomainRecord.Builder
           
 
Constructor Summary
DomainRecord(String id, String domainname, String host, String type, String data, int ttl)
           
 
Method Summary
static DomainRecord.Builder builder()
           
 int compareTo(DomainRecord other)
           
 boolean equals(Object object)
           
 String getData()
           
 String getDomainName()
           
 String getHost()
           
 String getId()
           
 int getTtl()
           
 String getType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DomainRecord

public DomainRecord(String id,
                    String domainname,
                    String host,
                    String type,
                    String data,
                    int ttl)
Method Detail

builder

public static DomainRecord.Builder builder()

getId

public String getId()
Returns:
the id of the record used to modify it via the API
See Also:
DomainClient

getDomainName

public String getDomainName()
Returns:
the zone content of the record

getHost

public String getHost()
Returns:
the host content of the record

getType

public String getType()
Returns:
the type of the record, ex. "A"

getData

public String getData()
Returns:
the data content of the record

getTtl

public int getTtl()
Returns:
the TTL/Time-to-live for the record

compareTo

public int compareTo(DomainRecord other)
Specified by:
compareTo in interface Comparable<DomainRecord>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.