Class FindAttributesRequest
- Object
-
- PagedRequest
-
- CursorPagedRequest
-
- FindAttributesRequest
-
- All Implemented Interfaces:
Serializable
public class FindAttributesRequest extends CursorPagedRequest
The search criteria for attributes.Only parameters that are specified in this request and have not
null
values are used for filtering. All other parameters are ignored.The returned attributes satisfy all constraints that are specified in this search criteria.
By default a result containing 1000 attributes is returned.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FindAttributesRequest.Builder
static class
FindAttributesRequest.SortField
-
Field Summary
-
Fields inherited from class PagedRequest
countLimit, limit, offset
-
-
Constructor Summary
Constructors Constructor Description FindAttributesRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FindAttributesRequest.Builder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
UUID
getAssetId()
The ID of the asset to find the attributes in, or null if no asset filtering should be applied.@NotNull FindAttributesRequest.SortField
getSortField()
The field on which the results are sorted.SortOrder
getSortOrder()
The sorting order.List<UUID>
getTypeIds()
The list of IDs of the attribute types the found attributes should have, or null or empty if no type filtering should be applied.int
hashCode()
void
setAssetId(UUID assetId)
The ID of the asset to find the attributes in, or null if no asset filtering should be applied.void
setSortField(@NotNull FindAttributesRequest.SortField sortField)
The field on which the results are sorted.void
setSortOrder(SortOrder sortOrder)
The sorting order.void
setTypeIds(List<UUID> typeIds)
The list of IDs of the attribute types the found attributes should have, or null or empty if no type filtering should be applied.String
toString()
-
Methods inherited from class CursorPagedRequest
getCountLimit, getCursor, getOffset, setCountLimit, setCursor, setOffset
-
Methods inherited from class PagedRequest
getLimit, isPagingActive, setLimit
-
-
-
-
Method Detail
-
builder
public static FindAttributesRequest.Builder builder()
-
getTypeIds
public List<UUID> getTypeIds()
The list of IDs of the attribute types the found attributes should have, or null or empty if no type filtering should be applied.
-
getAssetId
public UUID getAssetId()
The ID of the asset to find the attributes in, or null if no asset filtering should be applied.
-
getSortOrder
public SortOrder getSortOrder()
The sorting order. Defaults toDESC
. (descending)
-
getSortField
@NotNull public @NotNull FindAttributesRequest.SortField getSortField()
The field on which the results are sorted. Defaults toLAST_MODIFIED
.
-
setTypeIds
public void setTypeIds(List<UUID> typeIds)
The list of IDs of the attribute types the found attributes should have, or null or empty if no type filtering should be applied.
-
setAssetId
public void setAssetId(UUID assetId)
The ID of the asset to find the attributes in, or null if no asset filtering should be applied.
-
setSortOrder
public void setSortOrder(SortOrder sortOrder)
The sorting order. Defaults toDESC
. (descending)
-
setSortField
public void setSortField(@NotNull @NotNull FindAttributesRequest.SortField sortField)
The field on which the results are sorted. Defaults toLAST_MODIFIED
.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classCursorPagedRequest
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classCursorPagedRequest
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCursorPagedRequest
-
toString
public String toString()
- Overrides:
toString
in classCursorPagedRequest
-
-