Record Class CJ1AuditSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1AuditSearchParameters
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("Parameters to search for audit events.")
public record CJ1AuditSearchParameters(Optional<UUID> owner, CJ1ComparisonExactType<String> type, CJ1TimeRange timeRange, CJ1UnsignedLong pageSize)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1AuditSearchParameters(Optional<UUID> owner, CJ1ComparisonExactType<String> type, CJ1TimeRange timeRange, CJ1UnsignedLong pageSize) Creates an instance of aCJ1AuditSearchParametersrecord class. -
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.owner()Returns the value of theownerrecord component.pageSize()Returns the value of thepageSizerecord 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
-
CJ1AuditSearchParameters
public CJ1AuditSearchParameters(@JsonPropertyDescription("Include audit results for the given user.") Optional<UUID> owner, @JsonPropertyDescription("Include events with types matching the given expression.") CJ1ComparisonExactType<String> type, @JsonPropertyDescription("Include events within the given time range.") CJ1TimeRange timeRange, @JsonPropertyDescription("The maximum number of events per page.") CJ1UnsignedLong pageSize) Creates an instance of aCJ1AuditSearchParametersrecord class.- Parameters:
owner- the value for theownerrecord componenttype- the value for thetyperecord componenttimeRange- the value for thetimeRangerecord componentpageSize- the value for thepageSizerecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
owner
-
type
@JsonPropertyDescription("Include events with types matching the given expression.") public CJ1ComparisonExactType<String> type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
timeRange
@JsonPropertyDescription("Include events within the given time range.") public CJ1TimeRange timeRange()Returns the value of thetimeRangerecord component.- Returns:
- the value of the
timeRangerecord component
-
pageSize
@JsonPropertyDescription("The maximum number of events per page.") public CJ1UnsignedLong pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-