DigitalOcean API Client in Java

com.myjeeva.digitalocean.pojo
Class DomainRecord

java.lang.Object
  extended by com.myjeeva.digitalocean.pojo.DomainRecord

public class DomainRecord
extends Object

Represents DomainRecord (TLD) Record attributes of DigitalOcean DNS

Author:
Jeevanandam ([email protected])

Constructor Summary
DomainRecord()
          Default Constructor
DomainRecord(Integer id, Integer domainId, String recordType, String data, String name, String priority, Integer port, Integer weight)
          Parameterized DomainRecord Constructor
 
Method Summary
 String getData()
           
 Integer getDomainId()
           
 Integer getId()
           
 String getName()
           
 Integer getPort()
           
 String getPriority()
           
 String getRecordType()
           
 Integer getWeight()
           
 void setData(String data)
           
 void setDomainId(Integer domainId)
           
 void setId(Integer id)
           
 void setName(String name)
           
 void setPort(Integer port)
           
 void setPriority(String priority)
           
 void setRecordType(String recordType)
           
 void setWeight(Integer weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainRecord

public DomainRecord()
Default Constructor


DomainRecord

public DomainRecord(Integer id,
                    Integer domainId,
                    String recordType,
                    String data,
                    String name,
                    String priority,
                    Integer port,
                    Integer weight)
Parameterized DomainRecord Constructor

Parameters:
id - - a Integer object: Domain record Id
domainId - - a Integer object: specifies the domain Id for which to create a record
recordType - - a String object: the type of record you would like to create. 'A', 'CNAME', 'NS', 'TXT', 'MX' or 'SRV'
data - - a String object: this is the value of the record, for example: IP address, '@'
name - - a String object: Optional, required for 'A', 'CNAME', 'TXT' and 'SRV' records
priority - - a String object: Optional, required for 'SRV' and 'MX' records
port - - a String object: Optional, required for 'SRV' records
weight - - a String object: Optional, required for 'SRV' records
Method Detail

getId

public Integer getId()
Returns:
the id - Domain record Id

setId

public void setId(Integer id)
Parameters:
id - the id to set - Domain Record Id

getDomainId

public Integer getDomainId()
Returns:
the domainId - specifies the domain Id for which to create a record

setDomainId

public void setDomainId(Integer domainId)
Parameters:
domainId - the domainId to set the domain Id for which to create a record

getRecordType

public String getRecordType()
Returns:
the recordType - the type of record you would like to create. 'A', 'CNAME', 'NS', 'TXT', 'MX' or 'SRV'

setRecordType

public void setRecordType(String recordType)
Parameters:
recordType - the recordType to set 'A', 'CNAME', 'NS', 'TXT', 'MX' or 'SRV'

getData

public String getData()
Returns:
the data value of - IP address, '@'

setData

public void setData(String data)
Parameters:
data - the data to set - this is the value of the record, for example: IP address, '@'

getName

public String getName()
Returns:
the name - value of 'A', 'CNAME', 'TXT' and 'SRV' records

setName

public void setName(String name)
Parameters:
name - the name to set - Optional, required for 'A', 'CNAME', 'TXT' and 'SRV' records

getPriority

public String getPriority()
Returns:
the priority SRV' and 'MX' values

setPriority

public void setPriority(String priority)
Parameters:
priority - the priority to set Optional, required for 'SRV' and 'MX' records

getPort

public Integer getPort()
Returns:
the port 'SRV' records

setPort

public void setPort(Integer port)
Parameters:
port - the port to set - Optional, required for 'SRV' records

getWeight

public Integer getWeight()
Returns:
the weight value of 'SRV' records

setWeight

public void setWeight(Integer weight)
Parameters:
weight - the weight to set - Optional, required for 'SRV' records

DigitalOcean API Client in Java

Copyright © 2013 myjeeva blog, All rights reserved.

The copyright of the pages and contents on this website is with myjeeva.com and the content is licensed under Creative Commons Attribution-Share Alike 3.0 Unported License. Libraries and code snippets on myjeeva blog has license information.