Package com.commercetools.ml.client
Class ByProjectKeyImageSearchPostString
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<T,TResult,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyImageSearchPostString,ImageSearchResponse>
com.commercetools.ml.client.ByProjectKeyImageSearchPostString
- All Implemented Interfaces:
ClientRequestCommand<ImageSearchResponse>,CreateHttpRequestCommand,HttpRequestCommand<ImageSearchResponse>,RequestCommand<ImageSearchResponse>
public class ByProjectKeyImageSearchPostString
extends StringBodyApiMethod<ByProjectKeyImageSearchPostString,ImageSearchResponse>
Accepts an image file and returns similar products from product catalogue.
CompletableFuture<ApiHttpResponse<com.commercetools.ml.models.image_search.ImageSearchResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.imageSearch()
.post("")
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionByProjectKeyImageSearchPostString(ApiHttpClient apiHttpClient, String projectKey, String file) -
Method Summary
Modifier and TypeMethodDescription<TValue> ByProjectKeyImageSearchPostStringaddLimit(Collection<TValue> limit) add additional limit query parametersadd additional limit query parameteradd additional limit query parameter<TValue> ByProjectKeyImageSearchPostStringaddLimit(TValue limit) add additional limit query parameter<TValue> ByProjectKeyImageSearchPostStringaddOffset(Collection<TValue> offset) add additional offset query parametersadd additional offset query parameteradd additional offset query parameter<TValue> ByProjectKeyImageSearchPostStringaddOffset(TValue offset) add additional offset query parameterbooleanexecute(ApiHttpClient client) executeBlocking(ApiHttpClient client, Duration timeout) getBody()getLimit()inthashCode()intcom.fasterxml.jackson.core.type.TypeReference<ImageSearchResponse>voidsetProjectKey(String projectKey) toString()<TValue> ByProjectKeyImageSearchPostStringwithLimit(Collection<TValue> limit) set limit with the specified valuesset limit with the specified valueset limit with the specified value<TValue> ByProjectKeyImageSearchPostStringwithLimit(TValue limit) set limit with the specified value<TValue> ByProjectKeyImageSearchPostStringwithOffset(Collection<TValue> offset) set offset with the specified valuesset offset with the specified valuewithOffset(Supplier<Integer> supplier) set offset with the specified value<TValue> ByProjectKeyImageSearchPostStringwithOffset(TValue offset) set offset 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, withQueryParamsMethods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlockingMethods inherited from interface io.vrap.rmf.base.client.CreateHttpRequestCommand
createHttpRequestMethods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyImageSearchPostString
public ByProjectKeyImageSearchPostString(ApiHttpClient apiHttpClient, String projectKey, String file) -
ByProjectKeyImageSearchPostString
-
-
Method Details
-
resultType
-
executeBlocking
- Specified by:
executeBlockingin interfaceClientRequestCommand<ImageSearchResponse>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyImageSearchPostString,ImageSearchResponse>
-
execute
- Specified by:
executein interfaceClientRequestCommand<ImageSearchResponse>- Specified by:
executein classApiMethod<ByProjectKeyImageSearchPostString,ImageSearchResponse>
-
getProjectKey
-
getLimit
-
getOffset
-
setProjectKey
-
withLimit
set limit with the specified value- Type Parameters:
TValue- value type- Parameters:
limit- value to be set- Returns:
- ByProjectKeyImageSearchPostString
-
addLimit
add additional limit query parameter- Type Parameters:
TValue- value type- Parameters:
limit- value to be added- Returns:
- ByProjectKeyImageSearchPostString
-
withLimit
set limit with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyImageSearchPostString
-
addLimit
add additional limit query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyImageSearchPostString
-
withLimit
set limit with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyImageSearchPostString
-
addLimit
add additional limit query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyImageSearchPostString
-
withLimit
set limit with the specified values- Type Parameters:
TValue- value type- Parameters:
limit- values to be set- Returns:
- ByProjectKeyImageSearchPostString
-
addLimit
add additional limit query parameters- Type Parameters:
TValue- value type- Parameters:
limit- values to be added- Returns:
- ByProjectKeyImageSearchPostString
-
withOffset
set offset with the specified value- Type Parameters:
TValue- value type- Parameters:
offset- value to be set- Returns:
- ByProjectKeyImageSearchPostString
-
addOffset
add additional offset query parameter- Type Parameters:
TValue- value type- Parameters:
offset- value to be added- Returns:
- ByProjectKeyImageSearchPostString
-
withOffset
set offset with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyImageSearchPostString
-
addOffset
add additional offset query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyImageSearchPostString
-
withOffset
set offset with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyImageSearchPostString
-
addOffset
add additional offset query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyImageSearchPostString
-
withOffset
set offset with the specified values- Type Parameters:
TValue- value type- Parameters:
offset- values to be set- Returns:
- ByProjectKeyImageSearchPostString
-
addOffset
add additional offset query parameters- Type Parameters:
TValue- value type- Parameters:
offset- values to be added- Returns:
- ByProjectKeyImageSearchPostString
-
getBody
- Overrides:
getBodyin classStringBodyApiMethod<ByProjectKeyImageSearchPostString,ImageSearchResponse>
-
withBody
- Overrides:
withBodyin classStringBodyApiMethod<ByProjectKeyImageSearchPostString,ImageSearchResponse>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-