org.jclouds.glesys.domain
Class Domain

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

public class Domain
extends Object
implements Comparable<Domain>

Domain data for a Glesys account.

Author:
Adam Lowe
See Also:

Nested Class Summary
static class Domain.Builder
           
 
Constructor Summary
Domain(String domainName, Date createTime, int recordCount, boolean useGlesysNameServer)
           
 
Method Summary
static Domain.Builder builder()
           
 int compareTo(Domain other)
           
 boolean equals(Object object)
           
 Date getCreateTime()
           
 String getDomainName()
           
 int getRecordCount()
           
 int hashCode()
           
 boolean isGlesysNameServer()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Domain

public Domain(String domainName,
              Date createTime,
              int recordCount,
              boolean useGlesysNameServer)
Method Detail

builder

public static Domain.Builder builder()

getDomainName

public String getDomainName()
Returns:
the domain name, ex. "jclouds.org"

getCreateTime

public Date getCreateTime()
Returns:
the date the domain was registered with GleSYS

getRecordCount

public int getRecordCount()
Returns:
the number of DNS records for this domain

isGlesysNameServer

public boolean isGlesysNameServer()
Returns:
true if a GleSYS nameserver holds the records

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

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.