Package org.bremersee.dccon.model
Class DnsNode
- java.lang.Object
-
- org.bremersee.dccon.model.CommonAttributes
-
- org.bremersee.dccon.model.DnsNode
-
- All Implemented Interfaces:
Serializable
@Validated public class DnsNode extends CommonAttributes
DNS node.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DnsNode(String distinguishedName, OffsetDateTime created, OffsetDateTime modified, String name, Set<DnsRecord> records)
Instantiates a new dns node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
The node name.Set<DnsRecord>
getRecords()
The name server records.void
setName(String name)
Sets node name.void
setRecords(Set<DnsRecord> records)
Sets name server records.-
Methods inherited from class org.bremersee.dccon.model.CommonAttributes
getCreated, getDistinguishedName, getModified, setCreated, setDistinguishedName, setModified
-
-
-
-
Constructor Detail
-
DnsNode
public DnsNode(String distinguishedName, OffsetDateTime created, OffsetDateTime modified, String name, Set<DnsRecord> records)
Instantiates a new dns node.- Parameters:
distinguishedName
- the distinguished namecreated
- the createdmodified
- the modifiedname
- the namerecords
- the records
-
-
Method Detail
-
getName
public String getName()
The node name. It can be the host name or a part of the ip address (e. g. 1.178 or 178).- Returns:
- the entry name
-
setName
public void setName(String name)
Sets node name.- Parameters:
name
- the entry name
-
getRecords
public Set<DnsRecord> getRecords()
The name server records.- Returns:
- the name server records
-
-