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 returnedlimit- The limit on the number of returned eventsowner- Only include events with this ownermessage- Only include events with this messagetype- Only include events with this type
public record IdAuditSearchParameters(IdTimeRange timeRange, Optional<String> owner, Optional<String> type, Optional<String> message, int limit)
extends Record
The immutable parameters required to list audit events.
-
Constructor Summary
ConstructorsConstructorDescriptionIdAuditSearchParameters(IdTimeRange timeRange, Optional<String> owner, Optional<String> type, Optional<String> message, int limit) The immutable parameters required to list events. -
Method Summary
Modifier and TypeMethodDescriptionstatic IdAuditSearchParametersdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlimit()Returns the value of thelimitrecord component.message()Returns the value of themessagerecord component.owner()Returns the value of theownerrecord component.Returns the value of thetimeRangerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
IdAuditSearchParameters
public IdAuditSearchParameters(IdTimeRange timeRange, Optional<String> owner, Optional<String> type, Optional<String> message, int limit) The immutable parameters required to list events.- Parameters:
timeRange- Only events created within this time range are returnedlimit- The limit on the number of returned eventsowner- Only include events with this ownermessage- Only include events with this messagetype- Only include events with this type
-
-
Method Details
-
defaults
- Returns:
- Sensible default values
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord 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 thetimeRangerecord component.- Returns:
- the value of the
timeRangerecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-