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 - Domain record IddomainId - specifies the domain Id for which to create a recordrecordType - 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' recordspriority - Optional, required for 'SRV' and 'MX' recordsport - Optional, required for 'SRV' recordsweight - Optional, required for 'SRV' records
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