Package codes.thischwa.cf.model
Klasse RecordEntity
java.lang.Object
codes.thischwa.cf.model.AbstractEntity
codes.thischwa.cf.model.RecordEntity
- Alle implementierten Schnittstellen:
ResponseEntity
Represents a DNS record entity within a specific zone.
Attributes defined in this class include:
- DNS record type such as "A" or "CNAME".
- Name of the DNS record.
- Content of the DNS record, such as an IP address.
- Flags indicating whether the record is proxiable or proxied.
- TTL (Time-To-Live) for the DNS record.
- A locked status to indicate immutability of the record.
- Zone-specific metadata including zone ID and name.
- Timestamps for creation and modification.
Provides a static factory method build for creating a DNS record with specific
attributes.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInitializes a new instance of the RecordEntity class and invokes the parent constructor from the AbstractEntity class. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic RecordEntitybuild(String name, RecordType type, Integer ttl, String ip) Builds and returns aRecordEntityinstance with the specified attributes.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden codes.thischwa.cf.model.ResponseEntity
getId
-
Konstruktordetails
-
RecordEntity
public RecordEntity()Initializes a new instance of the RecordEntity class and invokes the parent constructor from the AbstractEntity class. The RecordEntity class represents a DNS record entity within a specific zone, encapsulating attributes such as type, name, content, TTL, and other related metadata.
-
-
Methodendetails
-
build
Builds and returns aRecordEntityinstance with the specified attributes.- Parameter:
name- the name of the DNS recordtype- theRecordTypeof the DNS recordttl- the time-to-live (TTL) value for the DNS recordip- the content of the DNS record, typically an IP address- Gibt zurück:
- a
RecordEntitypopulated with the provided attributes
-