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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StoreChangeProductSelectionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StoreChangeProductSelectionActionbuilder(StoreChangeProductSelectionAction template) create builder for StoreChangeProductSelectionAction instancecopyDeep()deepCopy(StoreChangeProductSelectionAction template) factory method to create a deep copy of StoreChangeProductSelectionActionSet totrueif all Products assigned to the Product Selection should become part of the Store's assortment.@NotNull @Valid ProductSelectionResourceIdentifierCurrent Product Selection of the Store to be activated or deactivated.of()factory methodof(StoreChangeProductSelectionAction template) factory method to create a shallow copy StoreChangeProductSelectionActionvoidSet totrueif all Products assigned to the Product Selection should become part of the Store's assortment.voidsetProductSelection(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
trueif 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
trueif 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
-
copyDeep
StoreChangeProductSelectionAction copyDeep()- Specified by:
copyDeepin interfaceStoreUpdateAction
-
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
-