Record Class QuorumRequestListQuery
java.lang.Object
java.lang.Record
co.ankatech.ankasecure.keymanagement.query.QuorumRequestListQuery
- Record Components:
status-PENDING,SCHEDULED,EXECUTED,FAILED,REJECTED,CANCELLEDorEXPIRED;nullfor every statusoperation- the gated operation the request asks for, for exampleKEY_MARK_FOR_DESTRUCTIONorKEY_MATERIAL_MARK_FOR_DESTRUCTION;nullfor every operationtarget- the target the request names, for example a Key ID;nullfor every targetpage- the zero-based page number;nullfor the server default (0)size- the page size;nullfor the server default (20)
public record QuorumRequestListQuery(String status, String operation, String target, Integer page, Integer size)
extends Record
The filters and page of the workload's own quorum request listing (
quorumRequests().list).
Its components are exactly the query parameters of the listTenantQuorumRequests operation; a null
component sends nothing, so the server applies its default.
QuorumRequestListQuery.firstPage()
.withStatus("PENDING")
.withOperation("KEY_MARK_FOR_DESTRUCTION")
.withTarget("legacy-signing-key")
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static QuorumRequestListQueryfinal inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.page()Returns the value of thepagerecord component.size()Returns the value of thesizerecord component.status()Returns the value of thestatusrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.withOperation(String value) withStatus(String value) withTarget(String value)
-
Constructor Details
-
Method Details
-
firstPage
- Returns:
- the first page with the server's defaults and no filter
-
withStatus
- Parameters:
value- the newstatus;nullclears it- Returns:
- a copy of this query with
statusreplaced
-
withOperation
- Parameters:
value- the newoperation;nullclears it- Returns:
- a copy of this query with
operationreplaced
-
withTarget
- Parameters:
value- the newtarget;nullclears it- Returns:
- a copy of this query with
targetreplaced
-
withPage
- Parameters:
value- the newpage;nullclears it- Returns:
- a copy of this query with
pagereplaced
-
withSize
- Parameters:
value- the newsize;nullclears it- Returns:
- a copy of this query with
sizereplaced
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
page
Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-