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,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyImageSearchPostString,ImageSearchResponse>
com.commercetools.ml.client.ByProjectKeyImageSearchPostString
- All Implemented Interfaces:
io.vrap.rmf.base.client.ClientRequestCommand<ImageSearchResponse>
,io.vrap.rmf.base.client.RequestCommand<ImageSearchResponse>
public class ByProjectKeyImageSearchPostString
extends io.vrap.rmf.base.client.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
-
Constructor Summary
ConstructorDescriptionByProjectKeyImageSearchPostString
(io.vrap.rmf.base.client.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
CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<ImageSearchResponse>>
execute
(io.vrap.rmf.base.client.ApiHttpClient client) io.vrap.rmf.base.client.ApiHttpResponse<ImageSearchResponse>
executeBlocking
(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) getBody()
getLimit()
int
hashCode()
int
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, executeBlocking, executeBlocking, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, getQueryParamUriString, getQueryParamUriStrings, send, sendBlocking, sendBlocking, with, with, withHeader, withHeaders, withHttpRequest, withoutHeader, withoutQueryParam, withQueryParam, withQueryParams
-
Constructor Details
-
ByProjectKeyImageSearchPostString
public ByProjectKeyImageSearchPostString(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, String file) -
ByProjectKeyImageSearchPostString
-
-
Method Details
-
executeBlocking
public io.vrap.rmf.base.client.ApiHttpResponse<ImageSearchResponse> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<ImageSearchResponse>
- Specified by:
executeBlocking
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyImageSearchPostString,
ImageSearchResponse>
-
execute
public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<ImageSearchResponse>> execute(io.vrap.rmf.base.client.ApiHttpClient client) - Specified by:
execute
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<ImageSearchResponse>
- Specified by:
execute
in classio.vrap.rmf.base.client.ApiMethod<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 classio.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyImageSearchPostString,
ImageSearchResponse>
-
withBody
- Overrides:
withBody
in classio.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyImageSearchPostString,
ImageSearchResponse>
-
equals
-
hashCode
-
toString
-
reflectionHashCode
public int reflectionHashCode()
-