Package com.commercetools.api.client
Class ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet,VariantAttributes>
com.commercetools.api.client.ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
- All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>,ErrorableTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>,LocaleprojectingTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>,ProjectionselectingTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>,SupplychannelfilteringTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>,VariantattributefilteringTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>,ClientRequestCommand<VariantAttributes>,CreateHttpRequestCommand,HttpRequestCommand<VariantAttributes>,RequestCommand<VariantAttributes>
public class ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
extends TypeApiMethod<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet,VariantAttributes>
implements ProjectionselectingTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>, LocaleprojectingTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>, VariantattributefilteringTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>, SupplychannelfilteringTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>, ErrorableTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>, Deprecatable200Trait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>
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()
.withKey("{key}")
.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
ConstructorsConstructorDescriptionByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet(ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet t) ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet(ApiHttpClient apiHttpClient, String projectKey, String key) -
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) getKey()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
-
ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet(ApiHttpClient apiHttpClient, String projectKey, String key) -
ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet(ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet t)
-
-
Method Details
-
resultType
- Specified by:
resultTypein interfaceHttpRequestCommand<VariantAttributes>
-
executeBlocking
- Specified by:
executeBlockingin interfaceClientRequestCommand<VariantAttributes>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet,VariantAttributes>
-
execute
- Specified by:
executein interfaceClientRequestCommand<VariantAttributes>- Specified by:
executein classApiMethod<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet,VariantAttributes>
-
getProjectKey
-
getKey
-
getStaged
- Specified by:
getStagedin interfaceProjectionselectingTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>
-
getLocaleProjection
- Specified by:
getLocaleProjectionin interfaceLocaleprojectingTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>
-
getFilterAttributes
- Specified by:
getFilterAttributesin interfaceVariantattributefilteringTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>
-
getFilterSupplyChannels
- Specified by:
getFilterSupplyChannelsin interfaceSupplychannelfilteringTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>
-
setProjectKey
-
setKey
-
withStaged
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withStaged(TValue staged) set staged with the specified value- Specified by:
withStagedin interfaceProjectionselectingTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
staged- value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addStaged
add additional staged query parameter- Specified by:
addStagedin interfaceProjectionselectingTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
staged- value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withStaged
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withStaged(Supplier<Boolean> supplier) set staged with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addStaged
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addStaged(Supplier<Boolean> supplier) add additional staged query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withStaged
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withStaged(Function<StringBuilder, StringBuilder> op) set staged with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addStaged
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addStaged(Function<StringBuilder, StringBuilder> op) add additional staged query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withStaged
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withStaged(Collection<TValue> staged) set staged with the specified values- Type Parameters:
TValue- value type- Parameters:
staged- values to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addStaged
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addStaged(Collection<TValue> staged) add additional staged query parameters- Type Parameters:
TValue- value type- Parameters:
staged- values to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withLocaleProjection
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withLocaleProjection(TValue localeProjection) set localeProjection with the specified value- Specified by:
withLocaleProjectionin interfaceLocaleprojectingTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
localeProjection- value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addLocaleProjection
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addLocaleProjection(TValue localeProjection) add additional localeProjection query parameter- Specified by:
addLocaleProjectionin interfaceLocaleprojectingTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
localeProjection- value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withLocaleProjection
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withLocaleProjection(Supplier<String> supplier) set localeProjection with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addLocaleProjection
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addLocaleProjection(Supplier<String> supplier) add additional localeProjection query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withLocaleProjection
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withLocaleProjection(Function<StringBuilder, StringBuilder> op) set localeProjection with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addLocaleProjection
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addLocaleProjection(Function<StringBuilder, StringBuilder> op) add additional localeProjection query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withLocaleProjection
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withLocaleProjection(Collection<TValue> localeProjection) set localeProjection with the specified values- Type Parameters:
TValue- value type- Parameters:
localeProjection- values to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addLocaleProjection
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addLocaleProjection(Collection<TValue> localeProjection) add additional localeProjection query parameters- Type Parameters:
TValue- value type- Parameters:
localeProjection- values to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withFilterAttributes
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withFilterAttributes(TValue filterAttributes) set filterAttributes with the specified value- Specified by:
withFilterAttributesin interfaceVariantattributefilteringTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
filterAttributes- value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addFilterAttributes
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addFilterAttributes(TValue filterAttributes) add additional filterAttributes query parameter- Specified by:
addFilterAttributesin interfaceVariantattributefilteringTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
filterAttributes- value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withFilterAttributes
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withFilterAttributes(Supplier<String> supplier) set filterAttributes with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addFilterAttributes
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addFilterAttributes(Supplier<String> supplier) add additional filterAttributes query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withFilterAttributes
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withFilterAttributes(Function<StringBuilder, StringBuilder> op) set filterAttributes with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addFilterAttributes
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addFilterAttributes(Function<StringBuilder, StringBuilder> op) add additional filterAttributes query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withFilterAttributes
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withFilterAttributes(Collection<TValue> filterAttributes) set filterAttributes with the specified values- Type Parameters:
TValue- value type- Parameters:
filterAttributes- values to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addFilterAttributes
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addFilterAttributes(Collection<TValue> filterAttributes) add additional filterAttributes query parameters- Type Parameters:
TValue- value type- Parameters:
filterAttributes- values to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withFilterSupplyChannels
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withFilterSupplyChannels(TValue filterSupplyChannels) set filterSupplyChannels with the specified value- Specified by:
withFilterSupplyChannelsin interfaceSupplychannelfilteringTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
filterSupplyChannels- value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addFilterSupplyChannels
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addFilterSupplyChannels(TValue filterSupplyChannels) add additional filterSupplyChannels query parameter- Specified by:
addFilterSupplyChannelsin interfaceSupplychannelfilteringTrait<ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet>- Type Parameters:
TValue- value type- Parameters:
filterSupplyChannels- value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withFilterSupplyChannels
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withFilterSupplyChannels(Supplier<String> supplier) set filterSupplyChannels with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addFilterSupplyChannels
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addFilterSupplyChannels(Supplier<String> supplier) add additional filterSupplyChannels query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withFilterSupplyChannels
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withFilterSupplyChannels(Function<StringBuilder, StringBuilder> op) set filterSupplyChannels with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addFilterSupplyChannels
public ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addFilterSupplyChannels(Function<StringBuilder, StringBuilder> op) add additional filterSupplyChannels query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
withFilterSupplyChannels
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet withFilterSupplyChannels(Collection<TValue> filterSupplyChannels) set filterSupplyChannels with the specified values- Type Parameters:
TValue- value type- Parameters:
filterSupplyChannels- values to be set- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
addFilterSupplyChannels
public <TValue> ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet addFilterSupplyChannels(Collection<TValue> filterSupplyChannels) add additional filterSupplyChannels query parameters- Type Parameters:
TValue- value type- Parameters:
filterSupplyChannels- values to be added- Returns:
- ByProjectKeyProductProjectionsKeyByKeyVariantAttributesGet
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-