org.jclouds.glesys.domain
Class DomainRecord
java.lang.Object
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:
DomainRecord
public DomainRecord(String id,
String domainname,
String host,
String type,
String data,
int ttl)
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.