Module org.elasticsearch.security
Record Class ApiKeyService.QueryApiKeysResult
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.security.authc.ApiKeyService.QueryApiKeysResult
- Enclosing class:
ApiKeyService
public static record ApiKeyService.QueryApiKeysResult(long total, Collection<ApiKey> apiKeyInfos, Collection<Object[]> sortValues, InternalAggregations aggregations)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionQueryApiKeysResult(long total, Collection<ApiKey> apiKeyInfos, Collection<Object[]> sortValues, InternalAggregations aggregations) Creates an instance of aQueryApiKeysResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationsrecord component.Returns the value of theapiKeyInfosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Collection<Object[]> Returns the value of thesortValuesrecord component.final StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
QueryApiKeysResult
public QueryApiKeysResult(long total, Collection<ApiKey> apiKeyInfos, Collection<Object[]> sortValues, @Nullable InternalAggregations aggregations) Creates an instance of aQueryApiKeysResultrecord class.- Parameters:
total- the value for thetotalrecord componentapiKeyInfos- the value for theapiKeyInfosrecord componentsortValues- the value for thesortValuesrecord componentaggregations- the value for theaggregationsrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
apiKeyInfos
Returns the value of theapiKeyInfosrecord component.- Returns:
- the value of the
apiKeyInfosrecord component
-
sortValues
Returns the value of thesortValuesrecord component.- Returns:
- the value of the
sortValuesrecord component
-
aggregations
Returns the value of theaggregationsrecord component.- Returns:
- the value of the
aggregationsrecord component
-