Record Class InternalCryptoUseCaseListQuery
java.lang.Object
java.lang.Record
co.ankatech.ankasecure.keymanagement.query.InternalCryptoUseCaseListQuery
- Record Components:
status-ACTIVE,SUSPENDEDorREVOKED;nullfor every statuspage- the zero-based page number;nullfor the server default (0)size- the page size;nullfor the server default (20)sort- sort criteria asproperty,ASC|DESC;nullfor the server default (createdAt,ASC)
public record InternalCryptoUseCaseListQuery(String status, Integer page, Integer size, List<String> sort)
extends Record
The filter and page of an internal cryptographic use case listing (
internalCryptoUseCases().list).
Its components are exactly the query parameters of the listInternalCryptoUseCases operation; a null
component sends nothing, so the server applies its default.
InternalCryptoUseCaseListQuery.firstPage().withStatus("ACTIVE")
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.page()Returns the value of thepagerecord component.size()Returns the value of thesizerecord component.sort()Returns the value of thesortrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.withStatus(String value)
-
Constructor Details
-
InternalCryptoUseCaseListQuery
Canonical constructor; copies every list component.
-
-
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
-
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
-
withSort
- Parameters:
value- the newsort;nullclears it- Returns:
- a copy of this query with
sortreplaced
-
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
-
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
-
sort
Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-