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