Package codes.thischwa.cf.model
Class ZoneEntity
java.lang.Object
codes.thischwa.cf.model.AbstractEntity
codes.thischwa.cf.model.ZoneEntity
- All Implemented Interfaces:
ResponseEntity
Represents a DNS zone entity in the Cloudflare DNS system.
This class encapsulates all relevant data and metadata associated with a zone, including but not limited to the following attributes:
- Zone name.
- Development mode status.
- Active and original name servers linked to the zone.
- Timestamps indicating when the zone was created, modified, or activated.
- Current operational status of the zone (e.g., active, inactive).
- Boolean flag indicating whether the zone is paused.
- Zone type, representing the nature of the DNS zone (e.g., full, partial).
This class extends AbstractEntity to inherit basic entity properties and to provide a
consistent interface across domain models.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetName()getType()inthashCode()voidsetActivatedOn(LocalDateTime activatedOn) voidsetCreatedOn(LocalDateTime createdOn) voidsetDevelopmentMode(Integer developmentMode) voidsetModifiedOn(LocalDateTime modifiedOn) voidvoidsetNameServers(Set<String> nameServers) voidsetOriginalNameServers(Set<String> originalNameServers) voidvoidvoidtoString()Methods inherited from class codes.thischwa.cf.model.AbstractEntity
getId, setId
-
Constructor Details
-
ZoneEntity
public ZoneEntity()Default no-argument constructor for the ZoneEntity class.This constructor initializes a new instance of the ZoneEntity class and invokes the parent constructor from the AbstractEntity class. The ZoneEntity class represents a domain model for a DNS zone within the Cloudflare DNS system.
-
-
Method Details
-
equals
- Overrides:
equalsin classAbstractEntity
-
canEqual
- Overrides:
canEqualin classAbstractEntity
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractEntity
-
getName
-
getDevelopmentMode
-
getNameServers
-
getOriginalNameServers
-
getCreatedOn
-
getModifiedOn
-
getActivatedOn
-
getStatus
-
getPaused
-
getType
-
setName
-
setDevelopmentMode
-
setNameServers
-
setOriginalNameServers
-
setCreatedOn
-
setModifiedOn
-
setActivatedOn
-
setStatus
-
setPaused
-
setType
-
toString
- Overrides:
toStringin classAbstractEntity
-