Package com.loop54.model.request
Class GetRecommendedEntitiesRequest
java.lang.Object
com.loop54.model.request.Request
com.loop54.model.request.GetRecommendedEntitiesRequest
This class is used to perform a request to get personalized recommendations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionParameters for specifying which recommendations results to retrieve and how to format them.Fields inherited from class com.loop54.model.request.Request
customData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithCustomData(String key, Object value) Chainable variant ofRequest.addCustomData(String, Object).withResults(Consumer<EntityCollectionParameters> configurator) ConfiguresresultsOptions, e.g.Methods inherited from class com.loop54.model.request.Request
addCustomData
-
Field Details
-
resultsOptions
Parameters for specifying which recommendations results to retrieve and how to format them.
-
-
Constructor Details
-
GetRecommendedEntitiesRequest
public GetRecommendedEntitiesRequest()
-
-
Method Details
-
withResults
ConfiguresresultsOptions, e.g.request.withResults(r -> r.page(0, 20).distinctFacet("Category")).- Parameters:
configurator- Applied toresultsOptions.- Returns:
- This request, for chaining.
-
withCustomData
Description copied from class:RequestChainable variant ofRequest.addCustomData(String, Object). Subclasses override this to return their own type.- Overrides:
withCustomDatain classRequest- Parameters:
key- Key to set the data on. The keys will be treated as case-sensitive.value- Value to add to the custom data.- Returns:
- This request, for chaining.
-