Interface StoreAddProductSelectionAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>
,StoreUpdateAction
To make all included Products available to your customers of a given Store, add the Product Selections to the respective Store. This action has no effect if the given Product Selection is already present in the Store and has the same active
flag.
Example to create an instance using the builder pattern
StoreAddProductSelectionAction storeAddProductSelectionAction = StoreAddProductSelectionAction.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreAddProductSelectionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreAddProductSelectionActionbuilder
(StoreAddProductSelectionAction template) create builder for StoreAddProductSelectionAction instancedeepCopy
(StoreAddProductSelectionAction template) factory method to create a deep copy of StoreAddProductSelectionActionSet totrue
to make all Products assigned to the referenced Product Selection available in the Store.@NotNull @Valid ProductSelectionResourceIdentifier
Product Selection to add to the Store either activated or deactivated.of()
factory methodof
(StoreAddProductSelectionAction template) factory method to create a shallow copy StoreAddProductSelectionActionvoid
Set totrue
to make all Products assigned to the referenced Product Selection available in the Store.void
setProductSelection
(ProductSelectionResourceIdentifier productSelection) Product Selection to add to the Store either activated or deactivated.static com.fasterxml.jackson.core.type.TypeReference<StoreAddProductSelectionAction>
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
-
ADD_PRODUCT_SELECTION
discriminator value for StoreAddProductSelectionAction- See Also:
-
-
Method Details
-
getProductSelection
Product Selection to add to the Store either activated or deactivated.
- Returns:
- productSelection
-
getActive
Boolean getActive()Set to
true
to make all Products assigned to the referenced Product Selection available in the Store.- Returns:
- active
-
setProductSelection
Product Selection to add to the Store either activated or deactivated.
- Parameters:
productSelection
- value to be set
-
setActive
Set to
true
to make all Products assigned to the referenced Product Selection available in the Store.- Parameters:
active
- value to be set
-
of
factory method- Returns:
- instance of StoreAddProductSelectionAction
-
of
factory method to create a shallow copy StoreAddProductSelectionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StoreAddProductSelectionAction deepCopy(@Nullable StoreAddProductSelectionAction template) factory method to create a deep copy of StoreAddProductSelectionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreAddProductSelectionAction- Returns:
- builder
-
builder
create builder for StoreAddProductSelectionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreAddProductSelectionAction
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<StoreAddProductSelectionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-