com.myjeeva.digitalocean.pojo
Class DomainRecord
java.lang.Object
com.myjeeva.digitalocean.pojo.DomainRecord
public class DomainRecord
- extends Object
Represents DomainRecord (TLD) Record attributes of DigitalOcean DNS
- Author:
- Jeevanandam ([email protected])
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 IddomainId
- - a Integer
object: specifies the domain Id for which
to create a recordrecordType
- - 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' recordspriority
- - a String
object: Optional, required for 'SRV' and
'MX' recordsport
- - a String
object: Optional, required for 'SRV'
recordsweight
- - a String
object: Optional, required for 'SRV'
records
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