Package com.commercetools.api.client
Class ByProjectKeyCustomerGroupsPost
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyCustomerGroupsPost,CustomerGroup,CustomerGroupDraft>
com.commercetools.api.client.ByProjectKeyCustomerGroupsPost
- All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyCustomerGroupsPost>
,ErrorableTrait<ByProjectKeyCustomerGroupsPost>
,ExpandableTrait<ByProjectKeyCustomerGroupsPost>
,io.vrap.rmf.base.client.ClientRequestCommand<CustomerGroup>
,io.vrap.rmf.base.client.RequestCommand<CustomerGroup>
public class ByProjectKeyCustomerGroupsPost
extends io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyCustomerGroupsPost,CustomerGroup,CustomerGroupDraft>
implements ExpandableTrait<ByProjectKeyCustomerGroupsPost>, Deprecatable201Trait<ByProjectKeyCustomerGroupsPost>, ErrorableTrait<ByProjectKeyCustomerGroupsPost>
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.customer_group.CustomerGroup>> result = apiRoot
.withProjectKey("{projectKey}")
.customerGroups()
.post(null)
.execute()
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionByProjectKeyCustomerGroupsPost
(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, CustomerGroupDraft customerGroupDraft) -
Method Summary
Modifier and TypeMethodDescription<TValue> ByProjectKeyCustomerGroupsPost
addExpand
(Collection<TValue> expand) add additional expand query parametersadd additional expand query parameteradd additional expand query parameter<TValue> ByProjectKeyCustomerGroupsPost
addExpand
(TValue expand) add additional expand query parameterboolean
CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<CustomerGroup>>
execute
(io.vrap.rmf.base.client.ApiHttpClient client) io.vrap.rmf.base.client.ApiHttpResponse<CustomerGroup>
executeBlocking
(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) getBody()
int
hashCode()
int
void
setProjectKey
(String projectKey) toString()
withBody
(CustomerGroupDraft customerGroupDraft) <TValue> ByProjectKeyCustomerGroupsPost
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> ByProjectKeyCustomerGroupsPost
withExpand
(TValue expand) set expand 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
Methods inherited from interface com.commercetools.api.client.Deprecatable201Trait
asDeprecatable201Trait, asDeprecatable201TraitToBaseType
Methods inherited from interface com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseType
Methods inherited from interface com.commercetools.api.client.ExpandableTrait
asExpandableTrait, asExpandableTraitToBaseType
-
Constructor Details
-
ByProjectKeyCustomerGroupsPost
public ByProjectKeyCustomerGroupsPost(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, CustomerGroupDraft customerGroupDraft) -
ByProjectKeyCustomerGroupsPost
-
-
Method Details
-
executeBlocking
public io.vrap.rmf.base.client.ApiHttpResponse<CustomerGroup> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<CustomerGroup>
- Specified by:
executeBlocking
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyCustomerGroupsPost,
CustomerGroup>
-
execute
public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<CustomerGroup>> execute(io.vrap.rmf.base.client.ApiHttpClient client) - Specified by:
execute
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<CustomerGroup>
- Specified by:
execute
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyCustomerGroupsPost,
CustomerGroup>
-
getProjectKey
-
getExpand
- Specified by:
getExpand
in interfaceExpandableTrait<ByProjectKeyCustomerGroupsPost>
-
setProjectKey
-
withExpand
set expand with the specified value- Specified by:
withExpand
in interfaceExpandableTrait<ByProjectKeyCustomerGroupsPost>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be set- Returns:
- ByProjectKeyCustomerGroupsPost
-
addExpand
add additional expand query parameter- Specified by:
addExpand
in interfaceExpandableTrait<ByProjectKeyCustomerGroupsPost>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be added- Returns:
- ByProjectKeyCustomerGroupsPost
-
withExpand
set expand with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyCustomerGroupsPost
-
addExpand
add additional expand query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyCustomerGroupsPost
-
withExpand
set expand with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyCustomerGroupsPost
-
addExpand
add additional expand query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyCustomerGroupsPost
-
withExpand
set expand with the specified values- Type Parameters:
TValue
- value type- Parameters:
expand
- values to be set- Returns:
- ByProjectKeyCustomerGroupsPost
-
addExpand
add additional expand query parameters- Type Parameters:
TValue
- value type- Parameters:
expand
- values to be added- Returns:
- ByProjectKeyCustomerGroupsPost
-
getBody
- Overrides:
getBody
in classio.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyCustomerGroupsPost,
CustomerGroup, CustomerGroupDraft>
-
withBody
- Overrides:
withBody
in classio.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyCustomerGroupsPost,
CustomerGroup, CustomerGroupDraft>
-
equals
-
hashCode
-
toString
-
reflectionHashCode
public int reflectionHashCode()
-