Interface StoreSetProductSelectionsAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>
,StoreUpdateAction
Instead of adding or removing Product Selections individually, you can also change all the Store's Product Selections in one go using this update action. The Store will only contain the Product Selections specified in the request.
Example to create an instance using the builder pattern
StoreSetProductSelectionsAction storeSetProductSelectionsAction = StoreSetProductSelectionsAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreSetProductSelectionsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreSetProductSelectionsActionbuilder
(StoreSetProductSelectionsAction template) create builder for StoreSetProductSelectionsAction instancedeepCopy
(StoreSetProductSelectionsAction template) factory method to create a deep copy of StoreSetProductSelectionsAction@Valid List<ProductSelectionSettingDraft>
Value to set.of()
factory methodof
(StoreSetProductSelectionsAction template) factory method to create a shallow copy StoreSetProductSelectionsActionvoid
setProductSelections
(ProductSelectionSettingDraft... productSelections) Value to set.void
setProductSelections
(List<ProductSelectionSettingDraft> productSelections) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StoreSetProductSelectionsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.store.StoreUpdateAction
getAction, withStoreUpdateAction
-
Field Details
-
SET_PRODUCT_SELECTIONS
discriminator value for StoreSetProductSelectionsAction- See Also:
-
-
Method Details
-
getProductSelections
Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Returns:
- productSelections
- If provided, Product Selections for which
-
setProductSelections
Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Parameters:
productSelections
- values to be set
- If provided, Product Selections for which
-
setProductSelections
Value to set.
- If provided, Product Selections for which
active
is set totrue
are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the Project are available in this Store.
- Parameters:
productSelections
- values to be set
- If provided, Product Selections for which
-
of
factory method- Returns:
- instance of StoreSetProductSelectionsAction
-
of
factory method to create a shallow copy StoreSetProductSelectionsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StoreSetProductSelectionsAction deepCopy(@Nullable StoreSetProductSelectionsAction template) factory method to create a deep copy of StoreSetProductSelectionsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreSetProductSelectionsAction- Returns:
- builder
-
builder
create builder for StoreSetProductSelectionsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreSetProductSelectionsAction
default <T> T withStoreSetProductSelectionsAction(Function<StoreSetProductSelectionsAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StoreSetProductSelectionsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-