Package codes.thischwa.cf.model
Class BatchEntry
java.lang.Object
codes.thischwa.cf.model.AbstractEntity
codes.thischwa.cf.model.BatchEntry
- All Implemented Interfaces:
ResponseEntity
Represents a batch entry containing different types of operations on getRecord entities.
A BatchEntry groups together collections of operations (patches, posts, puts, and deletes) intended to be performed as part of a single batch process. Each operation corresponds to a specific type of action on DNS getRecord entities.
- patches: A list of
RecordEntityobjects representing partial updates to existing records. - posts: A list of
RecordEntityobjects to be created as new DNS records. - puts: A list of
RecordEntityobjects representing updates or replacements for existing records. - deletes: A list of
RecordEntityobjects with name, type, and content to be removed.
This class is used as both a request body for batch operations and to represent the batch response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetId()Retrieves the unique identifier of the entity.getPosts()getPuts()inthashCode()voidsetDeletes(List<RecordEntity> deletes) voidsetPatches(List<RecordEntity> patches) voidsetPosts(List<RecordEntity> posts) voidsetPuts(List<RecordEntity> puts) toString()Methods inherited from class codes.thischwa.cf.model.AbstractEntity
setId
-
Constructor Details
-
BatchEntry
public BatchEntry()
-
-
Method Details
-
getId
Description copied from interface:ResponseEntityRetrieves the unique identifier of the entity.- Specified by:
getIdin interfaceResponseEntity- Overrides:
getIdin classAbstractEntity- Returns:
- the unique identifier as a String
-
equals
- Overrides:
equalsin classAbstractEntity
-
canEqual
- Overrides:
canEqualin classAbstractEntity
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractEntity
-
getPatches
-
getPosts
-
getPuts
-
getDeletes
-
setPatches
-
setPosts
-
setPuts
-
setDeletes
-
toString
- Overrides:
toStringin classAbstractEntity
-