Package com.io7m.idstore.model
Record Class IdAuditSearchParameters
java.lang.Object
java.lang.Record
com.io7m.idstore.model.IdAuditSearchParameters
- Record Components:
timeRange
- Only events created within this time range are returnedowner
- Only include events with this ownertype
- Only include events with this typelimit
- The limit on the number of returned events
public record IdAuditSearchParameters(IdTimeRange timeRange, Optional<String> owner, Optional<String> type, int limit)
extends Record
The immutable parameters required to list audit events.
-
Constructor Summary
ConstructorDescriptionIdAuditSearchParameters
(IdTimeRange timeRange, Optional<String> owner, Optional<String> type, int limit) The immutable parameters required to list events. -
Method Summary
Modifier and TypeMethodDescriptionstatic IdAuditSearchParameters
defaults()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
limit()
Returns the value of thelimit
record component.owner()
Returns the value of theowner
record component.Returns the value of thetimeRange
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
IdAuditSearchParameters
public IdAuditSearchParameters(IdTimeRange timeRange, Optional<String> owner, Optional<String> type, int limit) The immutable parameters required to list events.- Parameters:
timeRange
- Only events created within this time range are returnedowner
- Only include events with this ownertype
- Only include events with this typelimit
- The limit on the number of returned events
-
-
Method Details
-
defaults
- Returns:
- Sensible default values
-
limit
public int limit()Returns the value of thelimit
record component.- Returns:
- the value of the
limit
record component
-
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 '=='. -
timeRange
Returns the value of thetimeRange
record component.- Returns:
- the value of the
timeRange
record component
-
owner
Returns the value of theowner
record component.- Returns:
- the value of the
owner
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-