Class ZoneEntity

java.lang.Object
codes.thischwa.cf.model.AbstractEntity
codes.thischwa.cf.model.ZoneEntity
All Implemented Interfaces:
ResponseEntity

public class ZoneEntity extends AbstractEntity
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 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

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractEntity
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class AbstractEntity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractEntity
    • getName

      public String getName()
    • getDevelopmentMode

      public Integer getDevelopmentMode()
    • getNameServers

      public Set<String> getNameServers()
    • getOriginalNameServers

      public Set<String> getOriginalNameServers()
    • getCreatedOn

      public LocalDateTime getCreatedOn()
    • getModifiedOn

      public LocalDateTime getModifiedOn()
    • getActivatedOn

      public LocalDateTime getActivatedOn()
    • getStatus

      public String getStatus()
    • getPaused

      public Boolean getPaused()
    • getType

      public String getType()
    • setName

      public void setName(String name)
    • setDevelopmentMode

      public void setDevelopmentMode(Integer developmentMode)
    • setNameServers

      public void setNameServers(Set<String> nameServers)
    • setOriginalNameServers

      public void setOriginalNameServers(Set<String> originalNameServers)
    • setCreatedOn

      public void setCreatedOn(LocalDateTime createdOn)
    • setModifiedOn

      public void setModifiedOn(LocalDateTime modifiedOn)
    • setActivatedOn

      public void setActivatedOn(LocalDateTime activatedOn)
    • setStatus

      public void setStatus(String status)
    • setPaused

      public void setPaused(Boolean paused)
    • setType

      public void setType(String type)
    • toString

      public String toString()
      Overrides:
      toString in class AbstractEntity