com.myjeeva.digitalocean.pojo
Class DomainRecord
java.lang.Object
com.myjeeva.digitalocean.pojo.DomainRecord
public class DomainRecord
- extends java.lang.Object
Represents DomainRecord (TLD) Record attributes of DigitalOcean DNS
- Author:
- Jeevanandam ([email protected])
Constructor Summary |
DomainRecord()
Default Constructor |
DomainRecord(java.lang.Integer id,
java.lang.Integer domainId,
java.lang.String recordType,
java.lang.String data,
java.lang.String name,
java.lang.String priority,
java.lang.Integer port,
java.lang.Integer weight)
Parameterized DomainRecord Constructor |
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(java.lang.Integer id,
java.lang.Integer domainId,
java.lang.String recordType,
java.lang.String data,
java.lang.String name,
java.lang.String priority,
java.lang.Integer port,
java.lang.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 java.lang.Integer getId()
- Returns:
- the idDomain record Id
setId
public void setId(java.lang.Integer id)
- Parameters:
id
- the id to setDomain Record Id
getDomainId
public java.lang.Integer getDomainId()
- Returns:
- the domainIdspecifies the domain Id for which to create a record
setDomainId
public void setDomainId(java.lang.Integer domainId)
- Parameters:
domainId
- the domainId to set the domain Id for which to create a record
getRecordType
public java.lang.String getRecordType()
- Returns:
- the recordTypethe type of record you would like to create. 'A',
'CNAME', 'NS', 'TXT', 'MX' or 'SRV'
setRecordType
public void setRecordType(java.lang.String recordType)
- Parameters:
recordType
- the recordType to set 'A', 'CNAME', 'NS', 'TXT', 'MX' or 'SRV'
getData
public java.lang.String getData()
- Returns:
- the data value ofIP address, '@'
setData
public void setData(java.lang.String data)
- Parameters:
data
- the data to setthis is the value of the record, for example:
IP address, '@'
getName
public java.lang.String getName()
- Returns:
- the namevalue of 'A', 'CNAME', 'TXT' and 'SRV' records
setName
public void setName(java.lang.String name)
- Parameters:
name
- the name to setOptional, required for 'A', 'CNAME', 'TXT' and
'SRV' records
getPriority
public java.lang.String getPriority()
- Returns:
- the priority SRV' and 'MX' values
setPriority
public void setPriority(java.lang.String priority)
- Parameters:
priority
- the priority to set Optional, required for 'SRV' and 'MX'
records
getPort
public java.lang.Integer getPort()
- Returns:
- the port 'SRV' records
setPort
public void setPort(java.lang.Integer port)
- Parameters:
port
- the port to setOptional, required for 'SRV' records
getWeight
public java.lang.Integer getWeight()
- Returns:
- the weight value of 'SRV' records
setWeight
public void setWeight(java.lang.Integer weight)
- Parameters:
weight
- the weight to setOptional, required for 'SRV' records