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

getId

public Integer getId()
Returns:
the idDomain record Id

setId

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

getDomainId

public Integer getDomainId()
Returns:
the domainIdspecifies 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 recordTypethe 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 ofIP address, '@'

setData

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

getName

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

setName

public void setName(String name)
Parameters:
name - the name to setOptional, 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 setOptional, 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 setOptional, required for 'SRV' records

DigitalOcean API Client in Java

Copyright © 2014 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.