public class ByProjectKeyImageSearchPost extends io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyImageSearchPost,ImageSearchResponse,File>
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(file)
.execute()
| Constructor and Description |
|---|
ByProjectKeyImageSearchPost(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient,
String projectKey,
File file) |
ByProjectKeyImageSearchPost(ByProjectKeyImageSearchPost t) |
| Modifier and Type | Method and Description |
|---|---|
<TValue> ByProjectKeyImageSearchPost |
addLimit(Collection<TValue> limit)
add additional limit query parameters
|
ByProjectKeyImageSearchPost |
addLimit(Function<StringBuilder,StringBuilder> op)
add additional limit query parameter
|
ByProjectKeyImageSearchPost |
addLimit(Supplier<Integer> supplier)
add additional limit query parameter
|
<TValue> ByProjectKeyImageSearchPost |
addLimit(TValue limit)
add additional limit query parameter
|
<TValue> ByProjectKeyImageSearchPost |
addOffset(Collection<TValue> offset)
add additional offset query parameters
|
ByProjectKeyImageSearchPost |
addOffset(Function<StringBuilder,StringBuilder> op)
add additional offset query parameter
|
ByProjectKeyImageSearchPost |
addOffset(Supplier<Integer> supplier)
add additional offset query parameter
|
<TValue> ByProjectKeyImageSearchPost |
addOffset(TValue offset)
add additional offset query parameter
|
boolean |
equals(Object o) |
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) |
File |
getBody() |
List<String> |
getLimit() |
List<String> |
getOffset() |
String |
getProjectKey() |
int |
hashCode() |
void |
setProjectKey(String projectKey) |
ByProjectKeyImageSearchPost |
withBody(File file) |
<TValue> ByProjectKeyImageSearchPost |
withLimit(Collection<TValue> limit)
set limit with the specified values
|
ByProjectKeyImageSearchPost |
withLimit(Function<StringBuilder,StringBuilder> op)
set limit with the specified value
|
ByProjectKeyImageSearchPost |
withLimit(Supplier<Integer> supplier)
set limit with the specified value
|
<TValue> ByProjectKeyImageSearchPost |
withLimit(TValue limit)
set limit with the specified value
|
<TValue> ByProjectKeyImageSearchPost |
withOffset(Collection<TValue> offset)
set offset with the specified values
|
ByProjectKeyImageSearchPost |
withOffset(Function<StringBuilder,StringBuilder> op)
set offset with the specified value
|
ByProjectKeyImageSearchPost |
withOffset(Supplier<Integer> supplier)
set offset with the specified value
|
<TValue> ByProjectKeyImageSearchPost |
withOffset(TValue offset)
set offset with the specified value
|
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, withQueryParamspublic ByProjectKeyImageSearchPost(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, File file)
public ByProjectKeyImageSearchPost(ByProjectKeyImageSearchPost t)
public io.vrap.rmf.base.client.ApiHttpResponse<ImageSearchResponse> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout)
executeBlocking in interface io.vrap.rmf.base.client.ClientRequestCommand<ImageSearchResponse>executeBlocking in class io.vrap.rmf.base.client.ApiMethod<ByProjectKeyImageSearchPost,ImageSearchResponse>public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<ImageSearchResponse>> execute(io.vrap.rmf.base.client.ApiHttpClient client)
execute in interface io.vrap.rmf.base.client.ClientRequestCommand<ImageSearchResponse>execute in class io.vrap.rmf.base.client.ApiMethod<ByProjectKeyImageSearchPost,ImageSearchResponse>public String getProjectKey()
public void setProjectKey(String projectKey)
public <TValue> ByProjectKeyImageSearchPost withLimit(TValue limit)
public <TValue> ByProjectKeyImageSearchPost addLimit(TValue limit)
public ByProjectKeyImageSearchPost withLimit(Supplier<Integer> supplier)
public ByProjectKeyImageSearchPost addLimit(Supplier<Integer> supplier)
public ByProjectKeyImageSearchPost withLimit(Function<StringBuilder,StringBuilder> op)
public ByProjectKeyImageSearchPost addLimit(Function<StringBuilder,StringBuilder> op)
public <TValue> ByProjectKeyImageSearchPost withLimit(Collection<TValue> limit)
public <TValue> ByProjectKeyImageSearchPost addLimit(Collection<TValue> limit)
public <TValue> ByProjectKeyImageSearchPost withOffset(TValue offset)
public <TValue> ByProjectKeyImageSearchPost addOffset(TValue offset)
public ByProjectKeyImageSearchPost withOffset(Supplier<Integer> supplier)
public ByProjectKeyImageSearchPost addOffset(Supplier<Integer> supplier)
public ByProjectKeyImageSearchPost withOffset(Function<StringBuilder,StringBuilder> op)
public ByProjectKeyImageSearchPost addOffset(Function<StringBuilder,StringBuilder> op)
public <TValue> ByProjectKeyImageSearchPost withOffset(Collection<TValue> offset)
public <TValue> ByProjectKeyImageSearchPost addOffset(Collection<TValue> offset)
public File getBody()
getBody in class io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyImageSearchPost,ImageSearchResponse,File>public ByProjectKeyImageSearchPost withBody(File file)
withBody in class io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyImageSearchPost,ImageSearchResponse,File>public int hashCode()