Package com.commercetools.api.client
Class ByProjectKeyBusinessUnitsSearchPost
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<ByProjectKeyBusinessUnitsSearchPost,BusinessUnitPagedSearchResponse,BusinessUnitSearchRequest>
com.commercetools.api.client.ByProjectKeyBusinessUnitsSearchPost
- All Implemented Interfaces:
ErrorableTrait<ByProjectKeyBusinessUnitsSearchPost>
,ClientRequestCommand<BusinessUnitPagedSearchResponse>
,CreateHttpRequestCommand
,HttpRequestCommand<BusinessUnitPagedSearchResponse>
,RequestCommand<BusinessUnitPagedSearchResponse>
public class ByProjectKeyBusinessUnitsSearchPost
extends TypeBodyApiMethod<ByProjectKeyBusinessUnitsSearchPost,BusinessUnitPagedSearchResponse,BusinessUnitSearchRequest>
implements ErrorableTrait<ByProjectKeyBusinessUnitsSearchPost>
If the initial indexing is in progress or the feature is inactive, A SearchNotReady error is returned. If inactive, you can reactivate it.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.business_unit_search.BusinessUnitPagedSearchResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.businessUnits()
.search()
.post(null)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyBusinessUnitsSearchPost
(ApiHttpClient apiHttpClient, String projectKey, BusinessUnitSearchRequest businessUnitSearchRequest) -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getBody()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<BusinessUnitPagedSearchResponse>
void
setProjectKey
(String projectKey) toString()
withBody
(BusinessUnitSearchRequest businessUnitSearchRequest) 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 com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseType
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyBusinessUnitsSearchPost
public ByProjectKeyBusinessUnitsSearchPost(ApiHttpClient apiHttpClient, String projectKey, BusinessUnitSearchRequest businessUnitSearchRequest) -
ByProjectKeyBusinessUnitsSearchPost
-
-
Method Details
-
resultType
- Specified by:
resultType
in interfaceHttpRequestCommand<BusinessUnitPagedSearchResponse>
-
executeBlocking
public ApiHttpResponse<BusinessUnitPagedSearchResponse> executeBlocking(ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceClientRequestCommand<BusinessUnitPagedSearchResponse>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyBusinessUnitsSearchPost,
BusinessUnitPagedSearchResponse>
-
execute
public CompletableFuture<ApiHttpResponse<BusinessUnitPagedSearchResponse>> execute(ApiHttpClient client) - Specified by:
execute
in interfaceClientRequestCommand<BusinessUnitPagedSearchResponse>
- Specified by:
execute
in classApiMethod<ByProjectKeyBusinessUnitsSearchPost,
BusinessUnitPagedSearchResponse>
-
getProjectKey
-
setProjectKey
-
getBody
-
withBody
public ByProjectKeyBusinessUnitsSearchPost withBody(BusinessUnitSearchRequest businessUnitSearchRequest) -
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-