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
ConstructorDescriptionByProjectKeyImageSearchPostString
(ApiHttpClient apiHttpClient, String projectKey, String file) -
Method Summary
Modifier and TypeMethodDescription<TValue> ByProjectKeyImageSearchPostString
addLimit
(Collection<TValue> limit) add additional limit query parametersadd additional limit query parameteradd additional limit query parameter<TValue> ByProjectKeyImageSearchPostString
addLimit
(TValue limit) add additional limit query parameter<TValue> ByProjectKeyImageSearchPostString
addOffset
(Collection<TValue> offset) add additional offset query parametersadd additional offset query parameteradd additional offset query parameter<TValue> ByProjectKeyImageSearchPostString
addOffset
(TValue offset) add additional offset query parameterboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getBody()
getLimit()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<ImageSearchResponse>
void
setProjectKey
(String projectKey) toString()
<TValue> ByProjectKeyImageSearchPostString
withLimit
(Collection<TValue> limit) set limit with the specified valuesset limit with the specified valueset limit with the specified value<TValue> ByProjectKeyImageSearchPostString
withLimit
(TValue limit) set limit with the specified value<TValue> ByProjectKeyImageSearchPostString
withOffset
(Collection<TValue> offset) set offset with the specified valuesset offset with the specified valuewithOffset
(Supplier<Integer> supplier) set offset with the specified value<TValue> ByProjectKeyImageSearchPostString
withOffset
(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, 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
-
ByProjectKeyImageSearchPostString
public ByProjectKeyImageSearchPostString(ApiHttpClient apiHttpClient, String projectKey, String file) -
ByProjectKeyImageSearchPostString
-
-
Method Details
-
resultType
-
executeBlocking
- Specified by:
executeBlocking
in interfaceClientRequestCommand<ImageSearchResponse>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyImageSearchPostString,
ImageSearchResponse>
-
execute
- Specified by:
execute
in interfaceClientRequestCommand<ImageSearchResponse>
- Specified by:
execute
in 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:
getBody
in classStringBodyApiMethod<ByProjectKeyImageSearchPostString,
ImageSearchResponse>
-
withBody
- Overrides:
withBody
in classStringBodyApiMethod<ByProjectKeyImageSearchPostString,
ImageSearchResponse>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-