Package com.commercetools.ml.client
Class ByProjectKeyImageSearchConfigPost
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<ByProjectKeyImageSearchConfigPost,ImageSearchConfigResponse,ImageSearchConfigRequest>
com.commercetools.ml.client.ByProjectKeyImageSearchConfigPost
- All Implemented Interfaces:
ClientRequestCommand<ImageSearchConfigResponse>
,CreateHttpRequestCommand
,HttpRequestCommand<ImageSearchConfigResponse>
,RequestCommand<ImageSearchConfigResponse>
public class ByProjectKeyImageSearchConfigPost
extends TypeBodyApiMethod<ByProjectKeyImageSearchConfigPost,ImageSearchConfigResponse,ImageSearchConfigRequest>
Endpoint to update the image search config.
CompletableFuture<ApiHttpResponse<com.commercetools.ml.models.image_search_config.ImageSearchConfigResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.imageSearch()
.config()
.post(null)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyImageSearchConfigPost
(ApiHttpClient apiHttpClient, String projectKey, ImageSearchConfigRequest imageSearchConfigRequest) -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getBody()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<ImageSearchConfigResponse>
void
setProjectKey
(String projectKey) toString()
withBody
(ImageSearchConfigRequest imageSearchConfigRequest) 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
-
ByProjectKeyImageSearchConfigPost
public ByProjectKeyImageSearchConfigPost(ApiHttpClient apiHttpClient, String projectKey, ImageSearchConfigRequest imageSearchConfigRequest) -
ByProjectKeyImageSearchConfigPost
-
-
Method Details
-
resultType
-
executeBlocking
public ApiHttpResponse<ImageSearchConfigResponse> executeBlocking(ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceClientRequestCommand<ImageSearchConfigResponse>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyImageSearchConfigPost,
ImageSearchConfigResponse>
-
execute
- Specified by:
execute
in interfaceClientRequestCommand<ImageSearchConfigResponse>
- Specified by:
execute
in classApiMethod<ByProjectKeyImageSearchConfigPost,
ImageSearchConfigResponse>
-
getProjectKey
-
setProjectKey
-
getBody
-
withBody
public ByProjectKeyImageSearchConfigPost withBody(ImageSearchConfigRequest imageSearchConfigRequest) -
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-