Package com.commercetools.ml.client
Class ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyRecommendationsProjectCategoriesByProductIdGet,ProjectCategoryRecommendationPagedQueryResponse>
com.commercetools.ml.client.ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
- All Implemented Interfaces:
ClientRequestCommand<ProjectCategoryRecommendationPagedQueryResponse>
,CreateHttpRequestCommand
,HttpRequestCommand<ProjectCategoryRecommendationPagedQueryResponse>
,RequestCommand<ProjectCategoryRecommendationPagedQueryResponse>
public class ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
extends TypeApiMethod<ByProjectKeyRecommendationsProjectCategoriesByProductIdGet,ProjectCategoryRecommendationPagedQueryResponse>
Response Representation: PagedQueryResult with a results array of ProjectCategoryrecommendation, sorted by confidence scores in descending order and the meta information of ProjectCategoryrecommendationMeta.
CompletableFuture<ApiHttpResponse<com.commercetools.ml.models.category_recommendations.ProjectCategoryRecommendationPagedQueryResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.recommendations()
.projectCategories()
.withProductId("{productId}")
.get()
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyRecommendationsProjectCategoriesByProductIdGet
(ByProjectKeyRecommendationsProjectCategoriesByProductIdGet t) ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
(ApiHttpClient apiHttpClient, String projectKey, String productId) -
Method Summary
Modifier and TypeMethodDescriptionaddConfidenceMax
(Collection<TValue> confidenceMax) add additional confidenceMax query parametersadd additional confidenceMax query parameteraddConfidenceMax
(Supplier<Double> supplier) add additional confidenceMax query parameteraddConfidenceMax
(TValue confidenceMax) add additional confidenceMax query parameteraddConfidenceMin
(Collection<TValue> confidenceMin) add additional confidenceMin query parametersadd additional confidenceMin query parameteraddConfidenceMin
(Supplier<Double> supplier) add additional confidenceMin query parameteraddConfidenceMin
(TValue confidenceMin) add additional confidenceMin query parameteraddLimit
(Collection<TValue> limit) add additional limit query parametersadd additional limit query parameteradd additional limit query parameteraddLimit
(TValue limit) add additional limit query parameteraddOffset
(Collection<TValue> offset) add additional offset query parametersadd additional offset query parameteradd additional offset query parameteraddOffset
(TValue offset) add additional offset query parameteraddStaged
(Collection<TValue> staged) add additional staged query parametersadd additional staged query parameteradd additional staged query parameteraddStaged
(TValue staged) add additional staged query parameterboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getLimit()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<ProjectCategoryRecommendationPagedQueryResponse>
void
setProductId
(String productId) void
setProjectKey
(String projectKey) toString()
withConfidenceMax
(Collection<TValue> confidenceMax) set confidenceMax with the specified valuesset confidenceMax with the specified valuewithConfidenceMax
(Supplier<Double> supplier) set confidenceMax with the specified valuewithConfidenceMax
(TValue confidenceMax) set confidenceMax with the specified valuewithConfidenceMin
(Collection<TValue> confidenceMin) set confidenceMin with the specified valuesset confidenceMin with the specified valuewithConfidenceMin
(Supplier<Double> supplier) set confidenceMin with the specified valuewithConfidenceMin
(TValue confidenceMin) set confidenceMin with the specified valuewithLimit
(Collection<TValue> limit) set limit with the specified valuesset limit with the specified valueset limit with the specified valuewithLimit
(TValue limit) set limit with the specified valuewithOffset
(Collection<TValue> offset) set offset with the specified valuesset offset with the specified valuewithOffset
(Supplier<Integer> supplier) set offset with the specified valuewithOffset
(TValue offset) set offset with the specified valuewithStaged
(Collection<TValue> staged) set staged with the specified valuesset staged with the specified valuewithStaged
(Supplier<Boolean> supplier) set staged with the specified valuewithStaged
(TValue staged) set staged with the specified valueMethods inherited from class io.vrap.rmf.base.client.ApiMethod
addHeader, addQueryParam, addQueryParams, contentType, createHttpRequest, execute, execute, execute, execute, execute, execute, execute, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, getQueryParamUriString, getQueryParamUriStrings, send, sendBlocking, sendBlocking, with, with, withHeader, withHeaders, withHttpRequest, withoutHeader, withoutQueryParam, withQueryParam, withQueryParams
Methods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlocking
Methods inherited from interface io.vrap.rmf.base.client.CreateHttpRequestCommand
createHttpRequest
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet(ApiHttpClient apiHttpClient, String projectKey, String productId) -
ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet(ByProjectKeyRecommendationsProjectCategoriesByProductIdGet t)
-
-
Method Details
-
resultType
public com.fasterxml.jackson.core.type.TypeReference<ProjectCategoryRecommendationPagedQueryResponse> resultType() -
executeBlocking
public ApiHttpResponse<ProjectCategoryRecommendationPagedQueryResponse> executeBlocking(ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceClientRequestCommand<ProjectCategoryRecommendationPagedQueryResponse>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyRecommendationsProjectCategoriesByProductIdGet,
ProjectCategoryRecommendationPagedQueryResponse>
-
execute
public CompletableFuture<ApiHttpResponse<ProjectCategoryRecommendationPagedQueryResponse>> execute(ApiHttpClient client) - Specified by:
execute
in interfaceClientRequestCommand<ProjectCategoryRecommendationPagedQueryResponse>
- Specified by:
execute
in classApiMethod<ByProjectKeyRecommendationsProjectCategoriesByProductIdGet,
ProjectCategoryRecommendationPagedQueryResponse>
-
getProjectKey
-
getProductId
-
getLimit
-
getOffset
-
getStaged
-
getConfidenceMin
-
getConfidenceMax
-
setProjectKey
-
setProductId
-
withLimit
set limit with the specified value- Type Parameters:
TValue
- value type- Parameters:
limit
- value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addLimit
add additional limit query parameter- Type Parameters:
TValue
- value type- Parameters:
limit
- value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withLimit
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withLimit(Supplier<Integer> supplier) set limit with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addLimit
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addLimit(Supplier<Integer> supplier) add additional limit query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withLimit
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withLimit(Function<StringBuilder, StringBuilder> op) set limit with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addLimit
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addLimit(Function<StringBuilder, StringBuilder> op) add additional limit query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withLimit
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withLimit(Collection<TValue> limit) set limit with the specified values- Type Parameters:
TValue
- value type- Parameters:
limit
- values to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addLimit
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addLimit(Collection<TValue> limit) add additional limit query parameters- Type Parameters:
TValue
- value type- Parameters:
limit
- values to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withOffset
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withOffset(TValue offset) set offset with the specified value- Type Parameters:
TValue
- value type- Parameters:
offset
- value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addOffset
add additional offset query parameter- Type Parameters:
TValue
- value type- Parameters:
offset
- value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withOffset
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withOffset(Supplier<Integer> supplier) set offset with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addOffset
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addOffset(Supplier<Integer> supplier) add additional offset query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withOffset
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withOffset(Function<StringBuilder, StringBuilder> op) set offset with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addOffset
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addOffset(Function<StringBuilder, StringBuilder> op) add additional offset query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withOffset
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withOffset(Collection<TValue> offset) set offset with the specified values- Type Parameters:
TValue
- value type- Parameters:
offset
- values to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addOffset
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addOffset(Collection<TValue> offset) add additional offset query parameters- Type Parameters:
TValue
- value type- Parameters:
offset
- values to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withStaged
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withStaged(TValue staged) set staged with the specified value- Type Parameters:
TValue
- value type- Parameters:
staged
- value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addStaged
add additional staged query parameter- Type Parameters:
TValue
- value type- Parameters:
staged
- value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withStaged
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withStaged(Supplier<Boolean> supplier) set staged with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addStaged
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addStaged(Supplier<Boolean> supplier) add additional staged query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withStaged
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withStaged(Function<StringBuilder, StringBuilder> op) set staged with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addStaged
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addStaged(Function<StringBuilder, StringBuilder> op) add additional staged query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withStaged
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withStaged(Collection<TValue> staged) set staged with the specified values- Type Parameters:
TValue
- value type- Parameters:
staged
- values to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addStaged
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addStaged(Collection<TValue> staged) add additional staged query parameters- Type Parameters:
TValue
- value type- Parameters:
staged
- values to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withConfidenceMin
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withConfidenceMin(TValue confidenceMin) set confidenceMin with the specified value- Type Parameters:
TValue
- value type- Parameters:
confidenceMin
- value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addConfidenceMin
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addConfidenceMin(TValue confidenceMin) add additional confidenceMin query parameter- Type Parameters:
TValue
- value type- Parameters:
confidenceMin
- value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withConfidenceMin
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withConfidenceMin(Supplier<Double> supplier) set confidenceMin with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addConfidenceMin
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addConfidenceMin(Supplier<Double> supplier) add additional confidenceMin query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withConfidenceMin
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withConfidenceMin(Function<StringBuilder, StringBuilder> op) set confidenceMin with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addConfidenceMin
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addConfidenceMin(Function<StringBuilder, StringBuilder> op) add additional confidenceMin query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withConfidenceMin
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withConfidenceMin(Collection<TValue> confidenceMin) set confidenceMin with the specified values- Type Parameters:
TValue
- value type- Parameters:
confidenceMin
- values to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addConfidenceMin
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addConfidenceMin(Collection<TValue> confidenceMin) add additional confidenceMin query parameters- Type Parameters:
TValue
- value type- Parameters:
confidenceMin
- values to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withConfidenceMax
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withConfidenceMax(TValue confidenceMax) set confidenceMax with the specified value- Type Parameters:
TValue
- value type- Parameters:
confidenceMax
- value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addConfidenceMax
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addConfidenceMax(TValue confidenceMax) add additional confidenceMax query parameter- Type Parameters:
TValue
- value type- Parameters:
confidenceMax
- value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withConfidenceMax
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withConfidenceMax(Supplier<Double> supplier) set confidenceMax with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addConfidenceMax
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addConfidenceMax(Supplier<Double> supplier) add additional confidenceMax query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withConfidenceMax
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withConfidenceMax(Function<StringBuilder, StringBuilder> op) set confidenceMax with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addConfidenceMax
public ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addConfidenceMax(Function<StringBuilder, StringBuilder> op) add additional confidenceMax query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
withConfidenceMax
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet withConfidenceMax(Collection<TValue> confidenceMax) set confidenceMax with the specified values- Type Parameters:
TValue
- value type- Parameters:
confidenceMax
- values to be set- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
addConfidenceMax
public <TValue> ByProjectKeyRecommendationsProjectCategoriesByProductIdGet addConfidenceMax(Collection<TValue> confidenceMax) add additional confidenceMax query parameters- Type Parameters:
TValue
- value type- Parameters:
confidenceMax
- values to be added- Returns:
- ByProjectKeyRecommendationsProjectCategoriesByProductIdGet
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-