Record Class CJ1ItemSearchParameters
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1ItemSearchParameters
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("Parameters to search for items.")
public record CJ1ItemSearchParameters(CJ1ComparisonFuzzyType<String> nameMatch, CJ1ComparisonFuzzyType<String> descriptionMatch, CJ1ComparisonSetType<CJ1TypeRecordIdentifier> typeMatch, CJ1MetadataElementMatchType metadataMatch, CJ1IncludeDeleted includeDeleted, CJ1ItemColumnOrdering ordering, CJ1UnsignedLong pageSize)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1ItemSearchParameters(CJ1ComparisonFuzzyType<String> nameMatch, CJ1ComparisonFuzzyType<String> descriptionMatch, CJ1ComparisonSetType<CJ1TypeRecordIdentifier> typeMatch, CJ1MetadataElementMatchType metadataMatch, CJ1IncludeDeleted includeDeleted, CJ1ItemColumnOrdering ordering, CJ1UnsignedLong pageSize) Creates an instance of aCJ1ItemSearchParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionMatchrecord 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 theincludeDeletedrecord component.Returns the value of themetadataMatchrecord component.Returns the value of thenameMatchrecord component.ordering()Returns the value of theorderingrecord component.pageSize()Returns the value of thepageSizerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeMatchrecord component.
-
Constructor Details
-
CJ1ItemSearchParameters
public CJ1ItemSearchParameters(@JsonPropertyDescription("Include items with names matching the given expression.") CJ1ComparisonFuzzyType<String> nameMatch, @JsonPropertyDescription("Include items with descriptions matching the given expression.") CJ1ComparisonFuzzyType<String> descriptionMatch, @JsonPropertyDescription("Include items with types matching the given expression.") CJ1ComparisonSetType<CJ1TypeRecordIdentifier> typeMatch, @JsonPropertyDescription("Include items with metadata matching the given expression.") CJ1MetadataElementMatchType metadataMatch, @JsonPropertyDescription("Include deleted items.") CJ1IncludeDeleted includeDeleted, @JsonPropertyDescription("The result ordering.") CJ1ItemColumnOrdering ordering, @JsonPropertyDescription("The maximum number of results per page.") CJ1UnsignedLong pageSize) Creates an instance of aCJ1ItemSearchParametersrecord class.- Parameters:
nameMatch- the value for thenameMatchrecord componentdescriptionMatch- the value for thedescriptionMatchrecord componenttypeMatch- the value for thetypeMatchrecord componentmetadataMatch- the value for themetadataMatchrecord componentincludeDeleted- the value for theincludeDeletedrecord 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). -
nameMatch
@JsonPropertyDescription("Include items with names matching the given expression.") public CJ1ComparisonFuzzyType<String> nameMatch()Returns the value of thenameMatchrecord component.- Returns:
- the value of the
nameMatchrecord component
-
descriptionMatch
@JsonPropertyDescription("Include items with descriptions matching the given expression.") public CJ1ComparisonFuzzyType<String> descriptionMatch()Returns the value of thedescriptionMatchrecord component.- Returns:
- the value of the
descriptionMatchrecord component
-
typeMatch
@JsonPropertyDescription("Include items with types matching the given expression.") public CJ1ComparisonSetType<CJ1TypeRecordIdentifier> typeMatch()Returns the value of thetypeMatchrecord component.- Returns:
- the value of the
typeMatchrecord component
-
metadataMatch
@JsonPropertyDescription("Include items with metadata matching the given expression.") public CJ1MetadataElementMatchType metadataMatch()Returns the value of themetadataMatchrecord component.- Returns:
- the value of the
metadataMatchrecord component
-
includeDeleted
Returns the value of theincludeDeletedrecord component.- Returns:
- the value of the
includeDeletedrecord 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
-