Package com.commercetools.api.client
Class ByProjectKeyProductProjectionsByIDVariantAttributesGet
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyProductProjectionsByIDVariantAttributesGet,VariantAttributes>
com.commercetools.api.client.ByProjectKeyProductProjectionsByIDVariantAttributesGet
- All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>,ErrorableTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>,LocaleprojectingTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>,ProjectionselectingTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>,SupplychannelfilteringTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>,VariantattributefilteringTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>,ClientRequestCommand<VariantAttributes>,CreateHttpRequestCommand,HttpRequestCommand<VariantAttributes>,RequestCommand<VariantAttributes>
public class ByProjectKeyProductProjectionsByIDVariantAttributesGet
extends TypeApiMethod<ByProjectKeyProductProjectionsByIDVariantAttributesGet,VariantAttributes>
implements ProjectionselectingTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>, LocaleprojectingTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>, VariantattributefilteringTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>, SupplychannelfilteringTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>, ErrorableTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>, Deprecatable200Trait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>
Returns a lightweight representation of all Variants for a Product, including only the requested variant-level Attributes and minimal availability data.
Designed for building attribute selectors on product detail pages (PDPs) with large numbers of variants. Only available for Projects with productCatalogModel set to Modular.
Product-level Attributes are omitted from the response.
Required access scopes:
- To retrieve the current representation of published Products (published data), the
view_published_products:{projectKey}orview_products:{projectKey}scope is required. - To retrieve the staged representation of Products (draft data), the API Client must have the
view_products:{projectKey}scope.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.variant_attributes.VariantAttributes>> result = apiRoot
.withProjectKey("{projectKey}")
.productProjections()
.withId("{ID}")
.variantAttributes()
.get()
.withFilterAttributes(filterAttributes)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionByProjectKeyProductProjectionsByIDVariantAttributesGet(ByProjectKeyProductProjectionsByIDVariantAttributesGet t) ByProjectKeyProductProjectionsByIDVariantAttributesGet(ApiHttpClient apiHttpClient, String projectKey, String ID) -
Method Summary
Modifier and TypeMethodDescriptionaddFilterAttributes(Collection<TValue> filterAttributes) add additional filterAttributes query parametersadd additional filterAttributes query parameteraddFilterAttributes(Supplier<String> supplier) add additional filterAttributes query parameteraddFilterAttributes(TValue filterAttributes) add additional filterAttributes query parameteraddFilterSupplyChannels(Collection<TValue> filterSupplyChannels) add additional filterSupplyChannels query parametersadd additional filterSupplyChannels query parameteraddFilterSupplyChannels(Supplier<String> supplier) add additional filterSupplyChannels query parameteraddFilterSupplyChannels(TValue filterSupplyChannels) add additional filterSupplyChannels query parameteraddLocaleProjection(Collection<TValue> localeProjection) add additional localeProjection query parametersadd additional localeProjection query parameteraddLocaleProjection(Supplier<String> supplier) add additional localeProjection query parameteraddLocaleProjection(TValue localeProjection) add additional localeProjection query parameteraddStaged(Collection<TValue> staged) add additional staged query parametersadd additional staged query parameteradd additional staged query parameteraddStaged(TValue staged) add additional staged query parameterbooleanexecute(ApiHttpClient client) executeBlocking(ApiHttpClient client, Duration timeout) getID()inthashCode()inttools.jackson.core.type.TypeReference<VariantAttributes>voidvoidsetProjectKey(String projectKey) toString()withFilterAttributes(Collection<TValue> filterAttributes) set filterAttributes with the specified valuesset filterAttributes with the specified valuewithFilterAttributes(Supplier<String> supplier) set filterAttributes with the specified valuewithFilterAttributes(TValue filterAttributes) set filterAttributes with the specified valuewithFilterSupplyChannels(Collection<TValue> filterSupplyChannels) set filterSupplyChannels with the specified valuesset filterSupplyChannels with the specified valuewithFilterSupplyChannels(Supplier<String> supplier) set filterSupplyChannels with the specified valuewithFilterSupplyChannels(TValue filterSupplyChannels) set filterSupplyChannels with the specified valuewithLocaleProjection(Collection<TValue> localeProjection) set localeProjection with the specified valuesset localeProjection with the specified valuewithLocaleProjection(Supplier<String> supplier) set localeProjection with the specified valuewithLocaleProjection(TValue localeProjection) set localeProjection with the specified valuewithStaged(Collection<TValue> staged) set staged with the specified valuesset staged with the specified valuewithStaged(Supplier<Boolean> supplier) set staged with the specified valuewithStaged(TValue staged) set staged 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, withQueryParamsMethods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlockingMethods inherited from interface io.vrap.rmf.base.client.CreateHttpRequestCommand
createHttpRequestMethods inherited from interface com.commercetools.api.client.Deprecatable200Trait
asDeprecatable200Trait, asDeprecatable200TraitToBaseTypeMethods inherited from interface com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseTypeMethods inherited from interface com.commercetools.api.client.LocaleprojectingTrait
asLocaleprojectingTrait, asLocaleprojectingTraitToBaseTypeMethods inherited from interface com.commercetools.api.client.ProjectionselectingTrait
asProjectionselectingTrait, asProjectionselectingTraitToBaseTypeMethods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlockingMethods inherited from interface com.commercetools.api.client.SupplychannelfilteringTrait
asSupplychannelfilteringTrait, asSupplychannelfilteringTraitToBaseTypeMethods inherited from interface com.commercetools.api.client.VariantattributefilteringTrait
asVariantattributefilteringTrait, asVariantattributefilteringTraitToBaseType
-
Constructor Details
-
ByProjectKeyProductProjectionsByIDVariantAttributesGet
public ByProjectKeyProductProjectionsByIDVariantAttributesGet(ApiHttpClient apiHttpClient, String projectKey, String ID) -
ByProjectKeyProductProjectionsByIDVariantAttributesGet
public ByProjectKeyProductProjectionsByIDVariantAttributesGet(ByProjectKeyProductProjectionsByIDVariantAttributesGet t)
-
-
Method Details
-
resultType
- Specified by:
resultTypein interfaceHttpRequestCommand<VariantAttributes>
-
executeBlocking
- Specified by:
executeBlockingin interfaceClientRequestCommand<VariantAttributes>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyProductProjectionsByIDVariantAttributesGet,VariantAttributes>
-
execute
- Specified by:
executein interfaceClientRequestCommand<VariantAttributes>- Specified by:
executein classApiMethod<ByProjectKeyProductProjectionsByIDVariantAttributesGet,VariantAttributes>
-
getProjectKey
-
getID
-
getStaged
- Specified by:
getStagedin interfaceProjectionselectingTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>
-
getLocaleProjection
- Specified by:
getLocaleProjectionin interfaceLocaleprojectingTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>
-
getFilterAttributes
- Specified by:
getFilterAttributesin interfaceVariantattributefilteringTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>
-
getFilterSupplyChannels
- Specified by:
getFilterSupplyChannelsin interfaceSupplychannelfilteringTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>
-
setProjectKey
-
setID
-
withStaged
set staged with the specified value- Specified by:
withStagedin interfaceProjectionselectingTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
staged- value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addStaged
add additional staged query parameter- Specified by:
addStagedin interfaceProjectionselectingTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
staged- value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withStaged
public ByProjectKeyProductProjectionsByIDVariantAttributesGet withStaged(Supplier<Boolean> supplier) set staged with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addStaged
add additional staged query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withStaged
public ByProjectKeyProductProjectionsByIDVariantAttributesGet withStaged(Function<StringBuilder, StringBuilder> op) set staged with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addStaged
public ByProjectKeyProductProjectionsByIDVariantAttributesGet addStaged(Function<StringBuilder, StringBuilder> op) add additional staged query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withStaged
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet withStaged(Collection<TValue> staged) set staged with the specified values- Type Parameters:
TValue- value type- Parameters:
staged- values to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addStaged
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet addStaged(Collection<TValue> staged) add additional staged query parameters- Type Parameters:
TValue- value type- Parameters:
staged- values to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withLocaleProjection
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet withLocaleProjection(TValue localeProjection) set localeProjection with the specified value- Specified by:
withLocaleProjectionin interfaceLocaleprojectingTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
localeProjection- value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addLocaleProjection
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet addLocaleProjection(TValue localeProjection) add additional localeProjection query parameter- Specified by:
addLocaleProjectionin interfaceLocaleprojectingTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
localeProjection- value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withLocaleProjection
public ByProjectKeyProductProjectionsByIDVariantAttributesGet withLocaleProjection(Supplier<String> supplier) set localeProjection with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addLocaleProjection
public ByProjectKeyProductProjectionsByIDVariantAttributesGet addLocaleProjection(Supplier<String> supplier) add additional localeProjection query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withLocaleProjection
public ByProjectKeyProductProjectionsByIDVariantAttributesGet withLocaleProjection(Function<StringBuilder, StringBuilder> op) set localeProjection with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addLocaleProjection
public ByProjectKeyProductProjectionsByIDVariantAttributesGet addLocaleProjection(Function<StringBuilder, StringBuilder> op) add additional localeProjection query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withLocaleProjection
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet withLocaleProjection(Collection<TValue> localeProjection) set localeProjection with the specified values- Type Parameters:
TValue- value type- Parameters:
localeProjection- values to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addLocaleProjection
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet addLocaleProjection(Collection<TValue> localeProjection) add additional localeProjection query parameters- Type Parameters:
TValue- value type- Parameters:
localeProjection- values to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withFilterAttributes
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet withFilterAttributes(TValue filterAttributes) set filterAttributes with the specified value- Specified by:
withFilterAttributesin interfaceVariantattributefilteringTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
filterAttributes- value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addFilterAttributes
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet addFilterAttributes(TValue filterAttributes) add additional filterAttributes query parameter- Specified by:
addFilterAttributesin interfaceVariantattributefilteringTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
filterAttributes- value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withFilterAttributes
public ByProjectKeyProductProjectionsByIDVariantAttributesGet withFilterAttributes(Supplier<String> supplier) set filterAttributes with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addFilterAttributes
public ByProjectKeyProductProjectionsByIDVariantAttributesGet addFilterAttributes(Supplier<String> supplier) add additional filterAttributes query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withFilterAttributes
public ByProjectKeyProductProjectionsByIDVariantAttributesGet withFilterAttributes(Function<StringBuilder, StringBuilder> op) set filterAttributes with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addFilterAttributes
public ByProjectKeyProductProjectionsByIDVariantAttributesGet addFilterAttributes(Function<StringBuilder, StringBuilder> op) add additional filterAttributes query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withFilterAttributes
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet withFilterAttributes(Collection<TValue> filterAttributes) set filterAttributes with the specified values- Type Parameters:
TValue- value type- Parameters:
filterAttributes- values to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addFilterAttributes
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet addFilterAttributes(Collection<TValue> filterAttributes) add additional filterAttributes query parameters- Type Parameters:
TValue- value type- Parameters:
filterAttributes- values to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withFilterSupplyChannels
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet withFilterSupplyChannels(TValue filterSupplyChannels) set filterSupplyChannels with the specified value- Specified by:
withFilterSupplyChannelsin interfaceSupplychannelfilteringTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
filterSupplyChannels- value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addFilterSupplyChannels
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet addFilterSupplyChannels(TValue filterSupplyChannels) add additional filterSupplyChannels query parameter- Specified by:
addFilterSupplyChannelsin interfaceSupplychannelfilteringTrait<ByProjectKeyProductProjectionsByIDVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
filterSupplyChannels- value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withFilterSupplyChannels
public ByProjectKeyProductProjectionsByIDVariantAttributesGet withFilterSupplyChannels(Supplier<String> supplier) set filterSupplyChannels with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addFilterSupplyChannels
public ByProjectKeyProductProjectionsByIDVariantAttributesGet addFilterSupplyChannels(Supplier<String> supplier) add additional filterSupplyChannels query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withFilterSupplyChannels
public ByProjectKeyProductProjectionsByIDVariantAttributesGet withFilterSupplyChannels(Function<StringBuilder, StringBuilder> op) set filterSupplyChannels with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addFilterSupplyChannels
public ByProjectKeyProductProjectionsByIDVariantAttributesGet addFilterSupplyChannels(Function<StringBuilder, StringBuilder> op) add additional filterSupplyChannels query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
withFilterSupplyChannels
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet withFilterSupplyChannels(Collection<TValue> filterSupplyChannels) set filterSupplyChannels with the specified values- Type Parameters:
TValue- value type- Parameters:
filterSupplyChannels- values to be set- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
addFilterSupplyChannels
public <TValue> ByProjectKeyProductProjectionsByIDVariantAttributesGet addFilterSupplyChannels(Collection<TValue> filterSupplyChannels) add additional filterSupplyChannels query parameters- Type Parameters:
TValue- value type- Parameters:
filterSupplyChannels- values to be added- Returns:
- ByProjectKeyProductProjectionsByIDVariantAttributesGet
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-