Record Class CJ1FileSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1FileSearchParameters
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("Parameters to search for files.")
public record CJ1FileSearchParameters(CJ1ComparisonFuzzyType<String> description, CJ1ComparisonFuzzyType<String> mediaType, CJ1SizeRange sizeRange, CJ1FileColumnOrdering ordering, CJ1UnsignedLong pageSize)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1FileSearchParameters(CJ1ComparisonFuzzyType<String> description, CJ1ComparisonFuzzyType<String> mediaType, CJ1SizeRange sizeRange, CJ1FileColumnOrdering ordering, CJ1UnsignedLong pageSize) Creates an instance of aCJ1FileSearchParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themediaTyperecord component.ordering()Returns the value of theorderingrecord component.pageSize()Returns the value of thepageSizerecord component.Returns the value of thesizeRangerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1FileSearchParameters
public CJ1FileSearchParameters(@JsonPropertyDescription("Include files with descriptions matching the given expression.") CJ1ComparisonFuzzyType<String> description, @JsonPropertyDescription("Include files with media types matching the given expression.") CJ1ComparisonFuzzyType<String> mediaType, @JsonPropertyDescription("Include files with sizes matching the given expression.") CJ1SizeRange sizeRange, @JsonPropertyDescription("The result ordering.") CJ1FileColumnOrdering ordering, @JsonPropertyDescription("The maximum number of results per page.") CJ1UnsignedLong pageSize) Creates an instance of aCJ1FileSearchParametersrecord class.- Parameters:
description- the value for thedescriptionrecord componentmediaType- the value for themediaTyperecord componentsizeRange- the value for thesizeRangerecord componentordering- the value for theorderingrecord 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). -
description
@JsonPropertyDescription("Include files with descriptions matching the given expression.") public CJ1ComparisonFuzzyType<String> description()Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
mediaType
@JsonPropertyDescription("Include files with media types matching the given expression.") public CJ1ComparisonFuzzyType<String> mediaType()Returns the value of themediaTyperecord component.- Returns:
- the value of the
mediaTyperecord component
-
sizeRange
@JsonPropertyDescription("Include files with sizes matching the given expression.") public CJ1SizeRange sizeRange()Returns the value of thesizeRangerecord component.- Returns:
- the value of the
sizeRangerecord component
-
ordering
Returns the value of theorderingrecord component.- Returns:
- the value of the
orderingrecord component
-
pageSize
@JsonPropertyDescription("The maximum number of results per page.") public CJ1UnsignedLong pageSize()Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-