Package com.commercetools.api.client
Class ByProjectKeyProductsKeyByKeyPost
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<ByProjectKeyProductsKeyByKeyPost,Product,ProductUpdate>
com.commercetools.api.client.ByProjectKeyProductsKeyByKeyPost
- All Implemented Interfaces:
ConflictingTrait<ByProjectKeyProductsKeyByKeyPost>
,Deprecatable200Trait<ByProjectKeyProductsKeyByKeyPost>
,ErrorableTrait<ByProjectKeyProductsKeyByKeyPost>
,ExpandableTrait<ByProjectKeyProductsKeyByKeyPost>
,PriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
,ClientRequestCommand<Product>
,CreateHttpRequestCommand
,HttpRequestCommand<Product>
,RequestCommand<Product>
public class ByProjectKeyProductsKeyByKeyPost
extends TypeBodyApiMethod<ByProjectKeyProductsKeyByKeyPost,Product,ProductUpdate>
implements PriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>, ConflictingTrait<ByProjectKeyProductsKeyByKeyPost>, ExpandableTrait<ByProjectKeyProductsKeyByKeyPost>, Deprecatable200Trait<ByProjectKeyProductsKeyByKeyPost>, ErrorableTrait<ByProjectKeyProductsKeyByKeyPost>
A failed response can return a DuplicatePriceScope, DuplicateVariantValues, DuplicateAttributeValue, or DuplicateAttributeValues error.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.product.Product>> result = apiRoot
.withProjectKey("{projectKey}")
.products()
.withKey("{key}")
.post(null)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyProductsKeyByKeyPost
(ApiHttpClient apiHttpClient, String projectKey, String key, ProductUpdate productUpdate) -
Method Summary
Modifier and TypeMethodDescription<TValue> ByProjectKeyProductsKeyByKeyPost
addExpand
(Collection<TValue> expand) add additional expand query parametersadd additional expand query parameteradd additional expand query parameter<TValue> ByProjectKeyProductsKeyByKeyPost
addExpand
(TValue expand) add additional expand query parameter<TValue> ByProjectKeyProductsKeyByKeyPost
addPriceChannel
(Collection<TValue> priceChannel) add additional priceChannel query parametersadd additional priceChannel query parameteraddPriceChannel
(Supplier<String> supplier) add additional priceChannel query parameter<TValue> ByProjectKeyProductsKeyByKeyPost
addPriceChannel
(TValue priceChannel) add additional priceChannel query parameter<TValue> ByProjectKeyProductsKeyByKeyPost
addPriceCountry
(Collection<TValue> priceCountry) add additional priceCountry query parametersadd additional priceCountry query parameteraddPriceCountry
(Supplier<String> supplier) add additional priceCountry query parameter<TValue> ByProjectKeyProductsKeyByKeyPost
addPriceCountry
(TValue priceCountry) add additional priceCountry query parameter<TValue> ByProjectKeyProductsKeyByKeyPost
addPriceCurrency
(Collection<TValue> priceCurrency) add additional priceCurrency query parametersadd additional priceCurrency query parameteraddPriceCurrency
(Supplier<String> supplier) add additional priceCurrency query parameter<TValue> ByProjectKeyProductsKeyByKeyPost
addPriceCurrency
(TValue priceCurrency) add additional priceCurrency query parameter<TValue> ByProjectKeyProductsKeyByKeyPost
addPriceCustomerGroup
(Collection<TValue> priceCustomerGroup) add additional priceCustomerGroup query parametersadd additional priceCustomerGroup query parameteraddPriceCustomerGroup
(Supplier<String> supplier) add additional priceCustomerGroup query parameter<TValue> ByProjectKeyProductsKeyByKeyPost
addPriceCustomerGroup
(TValue priceCustomerGroup) add additional priceCustomerGroup query parameterboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getBody()
getKey()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<Product>
void
void
setProjectKey
(String projectKey) toString()
withBody
(ProductUpdate productUpdate) <TValue> ByProjectKeyProductsKeyByKeyPost
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> ByProjectKeyProductsKeyByKeyPost
withExpand
(TValue expand) set expand with the specified value<TValue> ByProjectKeyProductsKeyByKeyPost
withPriceChannel
(Collection<TValue> priceChannel) set priceChannel with the specified valuesset priceChannel with the specified valuewithPriceChannel
(Supplier<String> supplier) set priceChannel with the specified value<TValue> ByProjectKeyProductsKeyByKeyPost
withPriceChannel
(TValue priceChannel) set priceChannel with the specified value<TValue> ByProjectKeyProductsKeyByKeyPost
withPriceCountry
(Collection<TValue> priceCountry) set priceCountry with the specified valuesset priceCountry with the specified valuewithPriceCountry
(Supplier<String> supplier) set priceCountry with the specified value<TValue> ByProjectKeyProductsKeyByKeyPost
withPriceCountry
(TValue priceCountry) set priceCountry with the specified value<TValue> ByProjectKeyProductsKeyByKeyPost
withPriceCurrency
(Collection<TValue> priceCurrency) set priceCurrency with the specified valuesset priceCurrency with the specified valuewithPriceCurrency
(Supplier<String> supplier) set priceCurrency with the specified value<TValue> ByProjectKeyProductsKeyByKeyPost
withPriceCurrency
(TValue priceCurrency) set priceCurrency with the specified value<TValue> ByProjectKeyProductsKeyByKeyPost
withPriceCustomerGroup
(Collection<TValue> priceCustomerGroup) set priceCustomerGroup with the specified valuesset priceCustomerGroup with the specified valuewithPriceCustomerGroup
(Supplier<String> supplier) set priceCustomerGroup with the specified value<TValue> ByProjectKeyProductsKeyByKeyPost
withPriceCustomerGroup
(TValue priceCustomerGroup) set priceCustomerGroup 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 com.commercetools.api.client.ConflictingTrait
asConflictingTrait, asConflictingTraitToBaseType
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.PriceselectingTrait
asPriceselectingTrait, asPriceselectingTraitToBaseType
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyProductsKeyByKeyPost
public ByProjectKeyProductsKeyByKeyPost(ApiHttpClient apiHttpClient, String projectKey, String key, ProductUpdate productUpdate) -
ByProjectKeyProductsKeyByKeyPost
-
-
Method Details
-
resultType
- Specified by:
resultType
in interfaceHttpRequestCommand<Product>
-
executeBlocking
- Specified by:
executeBlocking
in interfaceClientRequestCommand<Product>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyProductsKeyByKeyPost,
Product>
-
execute
- Specified by:
execute
in interfaceClientRequestCommand<Product>
- Specified by:
execute
in classApiMethod<ByProjectKeyProductsKeyByKeyPost,
Product>
-
getProjectKey
-
getKey
-
getPriceCurrency
- Specified by:
getPriceCurrency
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
-
getPriceCountry
- Specified by:
getPriceCountry
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
-
getPriceCustomerGroup
- Specified by:
getPriceCustomerGroup
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
-
getPriceChannel
- Specified by:
getPriceChannel
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
-
getExpand
- Specified by:
getExpand
in interfaceExpandableTrait<ByProjectKeyProductsKeyByKeyPost>
-
setProjectKey
-
setKey
-
withPriceCurrency
set priceCurrency with the specified value- Specified by:
withPriceCurrency
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
- Type Parameters:
TValue
- value type- Parameters:
priceCurrency
- value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCurrency
add additional priceCurrency query parameter- Specified by:
addPriceCurrency
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
- Type Parameters:
TValue
- value type- Parameters:
priceCurrency
- value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCurrency
set priceCurrency with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCurrency
add additional priceCurrency query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCurrency
set priceCurrency with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCurrency
add additional priceCurrency query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCurrency
public <TValue> ByProjectKeyProductsKeyByKeyPost withPriceCurrency(Collection<TValue> priceCurrency) set priceCurrency with the specified values- Type Parameters:
TValue
- value type- Parameters:
priceCurrency
- values to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCurrency
add additional priceCurrency query parameters- Type Parameters:
TValue
- value type- Parameters:
priceCurrency
- values to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCountry
set priceCountry with the specified value- Specified by:
withPriceCountry
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
- Type Parameters:
TValue
- value type- Parameters:
priceCountry
- value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCountry
add additional priceCountry query parameter- Specified by:
addPriceCountry
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
- Type Parameters:
TValue
- value type- Parameters:
priceCountry
- value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCountry
set priceCountry with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCountry
add additional priceCountry query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCountry
set priceCountry with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCountry
add additional priceCountry query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCountry
set priceCountry with the specified values- Type Parameters:
TValue
- value type- Parameters:
priceCountry
- values to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCountry
add additional priceCountry query parameters- Type Parameters:
TValue
- value type- Parameters:
priceCountry
- values to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCustomerGroup
set priceCustomerGroup with the specified value- Specified by:
withPriceCustomerGroup
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
- Type Parameters:
TValue
- value type- Parameters:
priceCustomerGroup
- value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCustomerGroup
add additional priceCustomerGroup query parameter- Specified by:
addPriceCustomerGroup
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
- Type Parameters:
TValue
- value type- Parameters:
priceCustomerGroup
- value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCustomerGroup
set priceCustomerGroup with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCustomerGroup
add additional priceCustomerGroup query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCustomerGroup
public ByProjectKeyProductsKeyByKeyPost withPriceCustomerGroup(Function<StringBuilder, StringBuilder> op) set priceCustomerGroup with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCustomerGroup
public ByProjectKeyProductsKeyByKeyPost addPriceCustomerGroup(Function<StringBuilder, StringBuilder> op) add additional priceCustomerGroup query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceCustomerGroup
public <TValue> ByProjectKeyProductsKeyByKeyPost withPriceCustomerGroup(Collection<TValue> priceCustomerGroup) set priceCustomerGroup with the specified values- Type Parameters:
TValue
- value type- Parameters:
priceCustomerGroup
- values to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceCustomerGroup
public <TValue> ByProjectKeyProductsKeyByKeyPost addPriceCustomerGroup(Collection<TValue> priceCustomerGroup) add additional priceCustomerGroup query parameters- Type Parameters:
TValue
- value type- Parameters:
priceCustomerGroup
- values to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceChannel
set priceChannel with the specified value- Specified by:
withPriceChannel
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
- Type Parameters:
TValue
- value type- Parameters:
priceChannel
- value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceChannel
add additional priceChannel query parameter- Specified by:
addPriceChannel
in interfacePriceselectingTrait<ByProjectKeyProductsKeyByKeyPost>
- Type Parameters:
TValue
- value type- Parameters:
priceChannel
- value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceChannel
set priceChannel with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceChannel
add additional priceChannel query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceChannel
set priceChannel with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceChannel
add additional priceChannel query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withPriceChannel
set priceChannel with the specified values- Type Parameters:
TValue
- value type- Parameters:
priceChannel
- values to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addPriceChannel
add additional priceChannel query parameters- Type Parameters:
TValue
- value type- Parameters:
priceChannel
- values to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withExpand
set expand with the specified value- Specified by:
withExpand
in interfaceExpandableTrait<ByProjectKeyProductsKeyByKeyPost>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addExpand
add additional expand query parameter- Specified by:
addExpand
in interfaceExpandableTrait<ByProjectKeyProductsKeyByKeyPost>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withExpand
set expand with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addExpand
add additional expand query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withExpand
set expand with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addExpand
add additional expand query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
withExpand
set expand with the specified values- Type Parameters:
TValue
- value type- Parameters:
expand
- values to be set- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
addExpand
add additional expand query parameters- Type Parameters:
TValue
- value type- Parameters:
expand
- values to be added- Returns:
- ByProjectKeyProductsKeyByKeyPost
-
getBody
- Overrides:
getBody
in classTypeBodyApiMethod<ByProjectKeyProductsKeyByKeyPost,
Product, ProductUpdate>
-
withBody
- Overrides:
withBody
in classTypeBodyApiMethod<ByProjectKeyProductsKeyByKeyPost,
Product, ProductUpdate>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-