Package com.commercetools.ml.client
Class ByProjectKeySimilaritiesProductsPost
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,TBody>
io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeySimilaritiesProductsPost,TaskToken,SimilarProductSearchRequest>
com.commercetools.ml.client.ByProjectKeySimilaritiesProductsPost
- All Implemented Interfaces:
ClientRequestCommand<TaskToken>
,CreateHttpRequestCommand
,HttpRequestCommand<TaskToken>
,RequestCommand<TaskToken>
public class ByProjectKeySimilaritiesProductsPost
extends TypeBodyApiMethod<ByProjectKeySimilaritiesProductsPost,TaskToken,SimilarProductSearchRequest>
CompletableFuture<ApiHttpResponse<com.commercetools.ml.models.common.TaskToken>> result = apiRoot
.withProjectKey("{projectKey}")
.similarities()
.products()
.post(null)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeySimilaritiesProductsPost
(ApiHttpClient apiHttpClient, String projectKey, SimilarProductSearchRequest similarProductSearchRequest) -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getBody()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<TaskToken>
void
setProjectKey
(String projectKey) toString()
withBody
(SimilarProductSearchRequest similarProductSearchRequest) Methods 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
-
ByProjectKeySimilaritiesProductsPost
public ByProjectKeySimilaritiesProductsPost(ApiHttpClient apiHttpClient, String projectKey, SimilarProductSearchRequest similarProductSearchRequest) -
ByProjectKeySimilaritiesProductsPost
-
-
Method Details
-
resultType
-
executeBlocking
- Specified by:
executeBlocking
in interfaceClientRequestCommand<TaskToken>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeySimilaritiesProductsPost,
TaskToken>
-
execute
- Specified by:
execute
in interfaceClientRequestCommand<TaskToken>
- Specified by:
execute
in classApiMethod<ByProjectKeySimilaritiesProductsPost,
TaskToken>
-
getProjectKey
-
setProjectKey
-
getBody
- Overrides:
getBody
in classTypeBodyApiMethod<ByProjectKeySimilaritiesProductsPost,
TaskToken, SimilarProductSearchRequest>
-
withBody
public ByProjectKeySimilaritiesProductsPost withBody(SimilarProductSearchRequest similarProductSearchRequest) - Overrides:
withBody
in classTypeBodyApiMethod<ByProjectKeySimilaritiesProductsPost,
TaskToken, SimilarProductSearchRequest>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-