Package com.commercetools.api.client
Class ByProjectKeyMeBusinessUnitsGet
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyMeBusinessUnitsGet,BusinessUnitPagedQueryResponse>
com.commercetools.api.client.ByProjectKeyMeBusinessUnitsGet
- All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyMeBusinessUnitsGet>
,ErrorableTrait<ByProjectKeyMeBusinessUnitsGet>
,ExpandableTrait<ByProjectKeyMeBusinessUnitsGet>
,PagingTrait<ByProjectKeyMeBusinessUnitsGet>
,QueryTrait<ByProjectKeyMeBusinessUnitsGet>
,SortableTrait<ByProjectKeyMeBusinessUnitsGet>
,ClientRequestCommand<BusinessUnitPagedQueryResponse>
,CreateHttpRequestCommand
,HttpRequestCommand<BusinessUnitPagedQueryResponse>
,RequestCommand<BusinessUnitPagedQueryResponse>
public class ByProjectKeyMeBusinessUnitsGet
extends TypeApiMethod<ByProjectKeyMeBusinessUnitsGet,BusinessUnitPagedQueryResponse>
implements ExpandableTrait<ByProjectKeyMeBusinessUnitsGet>, SortableTrait<ByProjectKeyMeBusinessUnitsGet>, PagingTrait<ByProjectKeyMeBusinessUnitsGet>, QueryTrait<ByProjectKeyMeBusinessUnitsGet>, ErrorableTrait<ByProjectKeyMeBusinessUnitsGet>, Deprecatable200Trait<ByProjectKeyMeBusinessUnitsGet>
Returns all of the authenticated Customer’s Business Units in a Project. Returns a 200 OK
status if successful, or a ResourceNotFound error otherwise.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.business_unit.BusinessUnitPagedQueryResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.me()
.businessUnits()
.get()
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyMeBusinessUnitsGet
(ApiHttpClient apiHttpClient, String projectKey) -
Method Summary
Modifier and TypeMethodDescription<TValue> ByProjectKeyMeBusinessUnitsGet
addExpand
(Collection<TValue> expand) add additional expand query parametersadd additional expand query parameteradd additional expand query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addExpand
(TValue expand) add additional expand query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addLimit
(Collection<TValue> limit) add additional limit query parametersadd additional limit query parameteradd additional limit query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addLimit
(TValue limit) add additional limit query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addOffset
(Collection<TValue> offset) add additional offset query parametersadd additional offset query parameteradd additional offset query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addOffset
(TValue offset) add additional offset query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addPredicateVar
(String varName, Collection<TValue> predicateVar) add additional predicateVar query parameters<TValue> ByProjectKeyMeBusinessUnitsGet
addPredicateVar
(String varName, TValue predicateVar) add additional predicateVar query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addSort
(Collection<TValue> sort) add additional sort query parametersadd additional sort query parameteradd additional sort query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addSort
(TValue sort) add additional sort query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addWhere
(Collection<TValue> where) add additional where query parametersadd additional where query parameteradd additional where query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addWhere
(TValue where) add additional where query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addWithTotal
(Collection<TValue> withTotal) add additional withTotal query parametersadd additional withTotal query parameteraddWithTotal
(Supplier<Boolean> supplier) add additional withTotal query parameter<TValue> ByProjectKeyMeBusinessUnitsGet
addWithTotal
(TValue withTotal) add additional withTotal query parameterboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getLimit()
getSort()
getWhere()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<BusinessUnitPagedQueryResponse>
void
setProjectKey
(String projectKey) toString()
<TValue> ByProjectKeyMeBusinessUnitsGet
withExpand
(Collection<TValue> expand) set expand with the specified valuesset expand with the specified valuewithExpand
(Supplier<String> supplier) set expand with the specified value<TValue> ByProjectKeyMeBusinessUnitsGet
withExpand
(TValue expand) set expand with the specified value<TValue> ByProjectKeyMeBusinessUnitsGet
withLimit
(Collection<TValue> limit) set limit with the specified valuesset limit with the specified valueset limit with the specified value<TValue> ByProjectKeyMeBusinessUnitsGet
withLimit
(TValue limit) set limit with the specified value<TValue> ByProjectKeyMeBusinessUnitsGet
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> ByProjectKeyMeBusinessUnitsGet
withOffset
(TValue offset) set offset with the specified value<TValue> ByProjectKeyMeBusinessUnitsGet
withPredicateVar
(String varName, Collection<TValue> predicateVar) set predicateVar with the specificied values<TValue> ByProjectKeyMeBusinessUnitsGet
withPredicateVar
(String varName, TValue predicateVar) set predicateVar with the specificied value<TValue> ByProjectKeyMeBusinessUnitsGet
withSort
(Collection<TValue> sort) set sort with the specified valuesset sort with the specified valueset sort with the specified value<TValue> ByProjectKeyMeBusinessUnitsGet
withSort
(TValue sort) set sort with the specified value<TValue> ByProjectKeyMeBusinessUnitsGet
withWhere
(Collection<TValue> where) set where with the specified valuesset where with the specified valueset where with the specified value<TValue> ByProjectKeyMeBusinessUnitsGet
withWhere
(TValue where) set where with the specified value<TValue> ByProjectKeyMeBusinessUnitsGet
withWithTotal
(Collection<TValue> withTotal) set withTotal with the specified valuesset withTotal with the specified valuewithWithTotal
(Supplier<Boolean> supplier) set withTotal with the specified value<TValue> ByProjectKeyMeBusinessUnitsGet
withWithTotal
(TValue withTotal) set withTotal 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 com.commercetools.api.client.Deprecatable200Trait
asDeprecatable200Trait, asDeprecatable200TraitToBaseType
Methods inherited from interface com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseType
Methods inherited from interface com.commercetools.api.client.ExpandableTrait
asExpandableTrait, asExpandableTraitToBaseType
Methods inherited from interface com.commercetools.api.client.PagingTrait
asPagingTrait, asPagingTraitToBaseType
Methods inherited from interface com.commercetools.api.client.QueryTrait
asQueryTrait, asQueryTraitToBaseType
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
Methods inherited from interface com.commercetools.api.client.SortableTrait
asSortableTrait, asSortableTraitToBaseType
-
Constructor Details
-
ByProjectKeyMeBusinessUnitsGet
-
ByProjectKeyMeBusinessUnitsGet
-
-
Method Details
-
resultType
- Specified by:
resultType
in interfaceHttpRequestCommand<BusinessUnitPagedQueryResponse>
-
executeBlocking
public ApiHttpResponse<BusinessUnitPagedQueryResponse> executeBlocking(ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceClientRequestCommand<BusinessUnitPagedQueryResponse>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyMeBusinessUnitsGet,
BusinessUnitPagedQueryResponse>
-
execute
public CompletableFuture<ApiHttpResponse<BusinessUnitPagedQueryResponse>> execute(ApiHttpClient client) - Specified by:
execute
in interfaceClientRequestCommand<BusinessUnitPagedQueryResponse>
- Specified by:
execute
in classApiMethod<ByProjectKeyMeBusinessUnitsGet,
BusinessUnitPagedQueryResponse>
-
getProjectKey
-
getExpand
- Specified by:
getExpand
in interfaceExpandableTrait<ByProjectKeyMeBusinessUnitsGet>
-
getSort
- Specified by:
getSort
in interfaceSortableTrait<ByProjectKeyMeBusinessUnitsGet>
-
getLimit
- Specified by:
getLimit
in interfacePagingTrait<ByProjectKeyMeBusinessUnitsGet>
-
getOffset
- Specified by:
getOffset
in interfacePagingTrait<ByProjectKeyMeBusinessUnitsGet>
-
getWithTotal
- Specified by:
getWithTotal
in interfacePagingTrait<ByProjectKeyMeBusinessUnitsGet>
-
getWhere
- Specified by:
getWhere
in interfaceQueryTrait<ByProjectKeyMeBusinessUnitsGet>
-
setProjectKey
-
withExpand
set expand with the specified value- Specified by:
withExpand
in interfaceExpandableTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addExpand
add additional expand query parameter- Specified by:
addExpand
in interfaceExpandableTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withExpand
set expand with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addExpand
add additional expand query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withExpand
set expand with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addExpand
add additional expand query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withExpand
set expand with the specified values- Type Parameters:
TValue
- value type- Parameters:
expand
- values to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addExpand
add additional expand query parameters- Type Parameters:
TValue
- value type- Parameters:
expand
- values to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withSort
set sort with the specified value- Specified by:
withSort
in interfaceSortableTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
sort
- value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addSort
add additional sort query parameter- Specified by:
addSort
in interfaceSortableTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
sort
- value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withSort
set sort with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addSort
add additional sort query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withSort
set sort with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addSort
add additional sort query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withSort
set sort with the specified values- Type Parameters:
TValue
- value type- Parameters:
sort
- values to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addSort
add additional sort query parameters- Type Parameters:
TValue
- value type- Parameters:
sort
- values to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withLimit
set limit with the specified value- Specified by:
withLimit
in interfacePagingTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
limit
- value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addLimit
add additional limit query parameter- Specified by:
addLimit
in interfacePagingTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
limit
- value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withLimit
set limit with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addLimit
add additional limit query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withLimit
set limit with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addLimit
add additional limit query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withLimit
set limit with the specified values- Type Parameters:
TValue
- value type- Parameters:
limit
- values to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addLimit
add additional limit query parameters- Type Parameters:
TValue
- value type- Parameters:
limit
- values to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withOffset
set offset with the specified value- Specified by:
withOffset
in interfacePagingTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
offset
- value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addOffset
add additional offset query parameter- Specified by:
addOffset
in interfacePagingTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
offset
- value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withOffset
set offset with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addOffset
add additional offset query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withOffset
set offset with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addOffset
add additional offset query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withOffset
set offset with the specified values- Type Parameters:
TValue
- value type- Parameters:
offset
- values to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addOffset
add additional offset query parameters- Type Parameters:
TValue
- value type- Parameters:
offset
- values to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withWithTotal
set withTotal with the specified value- Specified by:
withWithTotal
in interfacePagingTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
withTotal
- value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addWithTotal
add additional withTotal query parameter- Specified by:
addWithTotal
in interfacePagingTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
withTotal
- value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withWithTotal
set withTotal with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addWithTotal
add additional withTotal query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withWithTotal
set withTotal with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addWithTotal
add additional withTotal query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withWithTotal
set withTotal with the specified values- Type Parameters:
TValue
- value type- Parameters:
withTotal
- values to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addWithTotal
add additional withTotal query parameters- Type Parameters:
TValue
- value type- Parameters:
withTotal
- values to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withWhere
set where with the specified value- Specified by:
withWhere
in interfaceQueryTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
where
- value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addWhere
add additional where query parameter- Specified by:
addWhere
in interfaceQueryTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
where
- value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withWhere
set where with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addWhere
add additional where query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withWhere
set where with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addWhere
add additional where query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withWhere
set where with the specified values- Type Parameters:
TValue
- value type- Parameters:
where
- values to be set- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addWhere
add additional where query parameters- Type Parameters:
TValue
- value type- Parameters:
where
- values to be added- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withPredicateVar
public <TValue> ByProjectKeyMeBusinessUnitsGet withPredicateVar(String varName, TValue predicateVar) set predicateVar with the specificied value- Specified by:
withPredicateVar
in interfaceQueryTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
varName
- parameter namepredicateVar
- parameter value- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addPredicateVar
add additional predicateVar query parameter- Specified by:
addPredicateVar
in interfaceQueryTrait<ByProjectKeyMeBusinessUnitsGet>
- Type Parameters:
TValue
- value type- Parameters:
varName
- parameter namepredicateVar
- parameter value- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
withPredicateVar
public <TValue> ByProjectKeyMeBusinessUnitsGet withPredicateVar(String varName, Collection<TValue> predicateVar) set predicateVar with the specificied values- Type Parameters:
TValue
- value type- Parameters:
varName
- parameter namepredicateVar
- parameter values- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
addPredicateVar
public <TValue> ByProjectKeyMeBusinessUnitsGet addPredicateVar(String varName, Collection<TValue> predicateVar) add additional predicateVar query parameters- Type Parameters:
TValue
- value type- Parameters:
varName
- parameter namepredicateVar
- parameter values- Returns:
- ByProjectKeyMeBusinessUnitsGet
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-