Package com.commercetools.api.client
Class ByProjectKeyProductsByIDDelete
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyProductsByIDDelete,Product>
com.commercetools.api.client.ByProjectKeyProductsByIDDelete
- All Implemented Interfaces:
ApiDeleteMethod<ByProjectKeyProductsByIDDelete,
,Product> ConflictingTrait<ByProjectKeyProductsByIDDelete>
,Deprecatable200Trait<ByProjectKeyProductsByIDDelete>
,ErrorableTrait<ByProjectKeyProductsByIDDelete>
,ExpandableTrait<ByProjectKeyProductsByIDDelete>
,PriceselectingTrait<ByProjectKeyProductsByIDDelete>
,VersionedTrait<ByProjectKeyProductsByIDDelete>
,ClientRequestCommand<Product>
,CreateHttpRequestCommand
,HttpRequestCommand<Product>
,RequestCommand<Product>
public class ByProjectKeyProductsByIDDelete
extends TypeApiMethod<ByProjectKeyProductsByIDDelete,Product>
implements ApiDeleteMethod<ByProjectKeyProductsByIDDelete,Product>, PriceselectingTrait<ByProjectKeyProductsByIDDelete>, VersionedTrait<ByProjectKeyProductsByIDDelete>, ConflictingTrait<ByProjectKeyProductsByIDDelete>, ExpandableTrait<ByProjectKeyProductsByIDDelete>, ErrorableTrait<ByProjectKeyProductsByIDDelete>, Deprecatable200Trait<ByProjectKeyProductsByIDDelete>
If Product price selection query parameters are provided, the selected Prices are added to the response. Produces the ProductDeleted Message.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.product.Product>> result = apiRoot
.withProjectKey("{projectKey}")
.products()
.withId("{ID}")
.delete()
.withVersion(version)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyProductsByIDDelete
(ApiHttpClient apiHttpClient, String projectKey, String ID) -
Method Summary
Modifier and TypeMethodDescription<TValue> ByProjectKeyProductsByIDDelete
addExpand
(Collection<TValue> expand) add additional expand query parametersadd additional expand query parameteradd additional expand query parameter<TValue> ByProjectKeyProductsByIDDelete
addExpand
(TValue expand) add additional expand query parameter<TValue> ByProjectKeyProductsByIDDelete
addPriceChannel
(Collection<TValue> priceChannel) add additional priceChannel query parametersadd additional priceChannel query parameteraddPriceChannel
(Supplier<String> supplier) add additional priceChannel query parameter<TValue> ByProjectKeyProductsByIDDelete
addPriceChannel
(TValue priceChannel) add additional priceChannel query parameter<TValue> ByProjectKeyProductsByIDDelete
addPriceCountry
(Collection<TValue> priceCountry) add additional priceCountry query parametersadd additional priceCountry query parameteraddPriceCountry
(Supplier<String> supplier) add additional priceCountry query parameter<TValue> ByProjectKeyProductsByIDDelete
addPriceCountry
(TValue priceCountry) add additional priceCountry query parameter<TValue> ByProjectKeyProductsByIDDelete
addPriceCurrency
(Collection<TValue> priceCurrency) add additional priceCurrency query parametersadd additional priceCurrency query parameteraddPriceCurrency
(Supplier<String> supplier) add additional priceCurrency query parameter<TValue> ByProjectKeyProductsByIDDelete
addPriceCurrency
(TValue priceCurrency) add additional priceCurrency query parameter<TValue> ByProjectKeyProductsByIDDelete
addPriceCustomerGroup
(Collection<TValue> priceCustomerGroup) add additional priceCustomerGroup query parametersadd additional priceCustomerGroup query parameteraddPriceCustomerGroup
(Supplier<String> supplier) add additional priceCustomerGroup query parameter<TValue> ByProjectKeyProductsByIDDelete
addPriceCustomerGroup
(TValue priceCustomerGroup) add additional priceCustomerGroup query parameter<TValue> ByProjectKeyProductsByIDDelete
addVersion
(Collection<TValue> version) add additional version query parametersadd additional version query parameteraddVersion
(Supplier<Long> supplier) add additional version query parameter<TValue> ByProjectKeyProductsByIDDelete
addVersion
(TValue version) add additional version query parameterboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getID()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<Product>
void
void
setProjectKey
(String projectKey) toString()
<TValue> ByProjectKeyProductsByIDDelete
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> ByProjectKeyProductsByIDDelete
withExpand
(TValue expand) set expand with the specified value<TValue> ByProjectKeyProductsByIDDelete
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> ByProjectKeyProductsByIDDelete
withPriceChannel
(TValue priceChannel) set priceChannel with the specified value<TValue> ByProjectKeyProductsByIDDelete
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> ByProjectKeyProductsByIDDelete
withPriceCountry
(TValue priceCountry) set priceCountry with the specified value<TValue> ByProjectKeyProductsByIDDelete
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> ByProjectKeyProductsByIDDelete
withPriceCurrency
(TValue priceCurrency) set priceCurrency with the specified value<TValue> ByProjectKeyProductsByIDDelete
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> ByProjectKeyProductsByIDDelete
withPriceCustomerGroup
(TValue priceCustomerGroup) set priceCustomerGroup with the specified value<TValue> ByProjectKeyProductsByIDDelete
withVersion
(Collection<TValue> version) set version with the specified valuesset version with the specified valuewithVersion
(Supplier<Long> supplier) set version with the specified value<TValue> ByProjectKeyProductsByIDDelete
withVersion
(TValue version) set version 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 com.commercetools.api.client.ApiDeleteMethod
asBaseType
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
execute, executeBlocking, executeBlocking
Methods inherited from interface com.commercetools.api.client.VersionedTrait
asVersionedTrait, asVersionedTraitToBaseType
-
Constructor Details
-
ByProjectKeyProductsByIDDelete
-
ByProjectKeyProductsByIDDelete
-
-
Method Details
-
resultType
- Specified by:
resultType
in interfaceHttpRequestCommand<Product>
-
executeBlocking
- Specified by:
executeBlocking
in interfaceClientRequestCommand<Product>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyProductsByIDDelete,
Product>
-
execute
- Specified by:
execute
in interfaceClientRequestCommand<Product>
- Specified by:
execute
in classApiMethod<ByProjectKeyProductsByIDDelete,
Product>
-
getProjectKey
-
getID
-
getPriceCurrency
- Specified by:
getPriceCurrency
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
-
getPriceCountry
- Specified by:
getPriceCountry
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
-
getPriceCustomerGroup
- Specified by:
getPriceCustomerGroup
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
-
getPriceChannel
- Specified by:
getPriceChannel
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
-
getVersion
- Specified by:
getVersion
in interfaceApiDeleteMethod<ByProjectKeyProductsByIDDelete,
Product> - Specified by:
getVersion
in interfaceVersionedTrait<ByProjectKeyProductsByIDDelete>
-
getExpand
- Specified by:
getExpand
in interfaceExpandableTrait<ByProjectKeyProductsByIDDelete>
-
setProjectKey
-
setID
-
withPriceCurrency
set priceCurrency with the specified value- Specified by:
withPriceCurrency
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
priceCurrency
- value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCurrency
add additional priceCurrency query parameter- Specified by:
addPriceCurrency
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
priceCurrency
- value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCurrency
set priceCurrency with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCurrency
add additional priceCurrency query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCurrency
set priceCurrency with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCurrency
add additional priceCurrency query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCurrency
set priceCurrency with the specified values- Type Parameters:
TValue
- value type- Parameters:
priceCurrency
- values to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCurrency
add additional priceCurrency query parameters- Type Parameters:
TValue
- value type- Parameters:
priceCurrency
- values to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCountry
set priceCountry with the specified value- Specified by:
withPriceCountry
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
priceCountry
- value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCountry
add additional priceCountry query parameter- Specified by:
addPriceCountry
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
priceCountry
- value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCountry
set priceCountry with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCountry
add additional priceCountry query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCountry
set priceCountry with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCountry
add additional priceCountry query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCountry
set priceCountry with the specified values- Type Parameters:
TValue
- value type- Parameters:
priceCountry
- values to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCountry
add additional priceCountry query parameters- Type Parameters:
TValue
- value type- Parameters:
priceCountry
- values to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCustomerGroup
set priceCustomerGroup with the specified value- Specified by:
withPriceCustomerGroup
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
priceCustomerGroup
- value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCustomerGroup
add additional priceCustomerGroup query parameter- Specified by:
addPriceCustomerGroup
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
priceCustomerGroup
- value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCustomerGroup
set priceCustomerGroup with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCustomerGroup
add additional priceCustomerGroup query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCustomerGroup
public ByProjectKeyProductsByIDDelete withPriceCustomerGroup(Function<StringBuilder, StringBuilder> op) set priceCustomerGroup with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCustomerGroup
public ByProjectKeyProductsByIDDelete addPriceCustomerGroup(Function<StringBuilder, StringBuilder> op) add additional priceCustomerGroup query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceCustomerGroup
public <TValue> ByProjectKeyProductsByIDDelete withPriceCustomerGroup(Collection<TValue> priceCustomerGroup) set priceCustomerGroup with the specified values- Type Parameters:
TValue
- value type- Parameters:
priceCustomerGroup
- values to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceCustomerGroup
public <TValue> ByProjectKeyProductsByIDDelete addPriceCustomerGroup(Collection<TValue> priceCustomerGroup) add additional priceCustomerGroup query parameters- Type Parameters:
TValue
- value type- Parameters:
priceCustomerGroup
- values to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceChannel
set priceChannel with the specified value- Specified by:
withPriceChannel
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
priceChannel
- value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceChannel
add additional priceChannel query parameter- Specified by:
addPriceChannel
in interfacePriceselectingTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
priceChannel
- value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceChannel
set priceChannel with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceChannel
add additional priceChannel query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceChannel
set priceChannel with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceChannel
add additional priceChannel query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withPriceChannel
set priceChannel with the specified values- Type Parameters:
TValue
- value type- Parameters:
priceChannel
- values to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addPriceChannel
add additional priceChannel query parameters- Type Parameters:
TValue
- value type- Parameters:
priceChannel
- values to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withVersion
set version with the specified value- Specified by:
withVersion
in interfaceApiDeleteMethod<ByProjectKeyProductsByIDDelete,
Product> - Specified by:
withVersion
in interfaceVersionedTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
version
- value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addVersion
add additional version query parameter- Specified by:
addVersion
in interfaceApiDeleteMethod<ByProjectKeyProductsByIDDelete,
Product> - Specified by:
addVersion
in interfaceVersionedTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
version
- value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withVersion
set version with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addVersion
add additional version query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withVersion
set version with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addVersion
add additional version query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withVersion
set version with the specified values- Type Parameters:
TValue
- value type- Parameters:
version
- values to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addVersion
add additional version query parameters- Type Parameters:
TValue
- value type- Parameters:
version
- values to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withExpand
set expand with the specified value- Specified by:
withExpand
in interfaceExpandableTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addExpand
add additional expand query parameter- Specified by:
addExpand
in interfaceExpandableTrait<ByProjectKeyProductsByIDDelete>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withExpand
set expand with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addExpand
add additional expand query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withExpand
set expand with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addExpand
add additional expand query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
withExpand
set expand with the specified values- Type Parameters:
TValue
- value type- Parameters:
expand
- values to be set- Returns:
- ByProjectKeyProductsByIDDelete
-
addExpand
add additional expand query parameters- Type Parameters:
TValue
- value type- Parameters:
expand
- values to be added- Returns:
- ByProjectKeyProductsByIDDelete
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-