Interface StoreChangeProductSelectionAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>
,StoreUpdateAction
ProductSelection in a Store can be activated or deactivated using this update action.
Example to create an instance using the builder pattern
StoreChangeProductSelectionAction storeChangeProductSelectionAction = StoreChangeProductSelectionAction.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreChangeProductSelectionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreChangeProductSelectionActionbuilder
(StoreChangeProductSelectionAction template) create builder for StoreChangeProductSelectionAction instancedeepCopy
(StoreChangeProductSelectionAction template) factory method to create a deep copy of StoreChangeProductSelectionActionSet totrue
if all Products assigned to the Product Selection should become part of the Store's assortment.@NotNull @Valid ProductSelectionResourceIdentifier
Current Product Selection of the Store to be activated or deactivated.of()
factory methodof
(StoreChangeProductSelectionAction template) factory method to create a shallow copy StoreChangeProductSelectionActionvoid
Set totrue
if all Products assigned to the Product Selection should become part of the Store's assortment.void
setProductSelection
(ProductSelectionResourceIdentifier productSelection) Current Product Selection of the Store to be activated or deactivated.static com.fasterxml.jackson.core.type.TypeReference<StoreChangeProductSelectionAction>
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
-
CHANGE_PRODUCT_SELECTION_ACTIVE
discriminator value for StoreChangeProductSelectionAction- See Also:
-
-
Method Details
-
getProductSelection
Current Product Selection of the Store to be activated or deactivated.
- Returns:
- productSelection
-
getActive
Boolean getActive()Set to
true
if all Products assigned to the Product Selection should become part of the Store's assortment.- Returns:
- active
-
setProductSelection
Current Product Selection of the Store to be activated or deactivated.
- Parameters:
productSelection
- value to be set
-
setActive
Set to
true
if all Products assigned to the Product Selection should become part of the Store's assortment.- Parameters:
active
- value to be set
-
of
factory method- Returns:
- instance of StoreChangeProductSelectionAction
-
of
factory method to create a shallow copy StoreChangeProductSelectionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StoreChangeProductSelectionAction deepCopy(@Nullable StoreChangeProductSelectionAction template) factory method to create a deep copy of StoreChangeProductSelectionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreChangeProductSelectionAction- Returns:
- builder
-
builder
create builder for StoreChangeProductSelectionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreChangeProductSelectionAction
default <T> T withStoreChangeProductSelectionAction(Function<StoreChangeProductSelectionAction, 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<StoreChangeProductSelectionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-