Interface StoreRemoveProductSelectionAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>,StoreUpdateAction
This action has no effect if the given Product Selection is not in the Store.
Example to create an instance using the builder pattern
StoreRemoveProductSelectionAction storeRemoveProductSelectionAction = StoreRemoveProductSelectionAction.builder()
.productSelection(productSelectionBuilder -> productSelectionBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StoreRemoveProductSelectionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StoreRemoveProductSelectionActionbuilder(StoreRemoveProductSelectionAction template) create builder for StoreRemoveProductSelectionAction instancecopyDeep()deepCopy(StoreRemoveProductSelectionAction template) factory method to create a deep copy of StoreRemoveProductSelectionAction@NotNull @Valid ProductSelectionResourceIdentifierValue to remove.of()factory methodof(StoreRemoveProductSelectionAction template) factory method to create a shallow copy StoreRemoveProductSelectionActionvoidsetProductSelection(ProductSelectionResourceIdentifier productSelection) Value to remove.static com.fasterxml.jackson.core.type.TypeReference<StoreRemoveProductSelectionAction>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
-
REMOVE_PRODUCT_SELECTION
discriminator value for StoreRemoveProductSelectionAction- See Also:
-
-
Method Details
-
getProductSelection
Value to remove. The removed Product Selection is made offline.
- Returns:
- productSelection
-
setProductSelection
Value to remove. The removed Product Selection is made offline.
- Parameters:
productSelection- value to be set
-
of
factory method- Returns:
- instance of StoreRemoveProductSelectionAction
-
of
factory method to create a shallow copy StoreRemoveProductSelectionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StoreRemoveProductSelectionAction copyDeep()- Specified by:
copyDeepin interfaceStoreUpdateAction
-
deepCopy
@Nullable static StoreRemoveProductSelectionAction deepCopy(@Nullable StoreRemoveProductSelectionAction template) factory method to create a deep copy of StoreRemoveProductSelectionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreRemoveProductSelectionAction- Returns:
- builder
-
builder
create builder for StoreRemoveProductSelectionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStoreRemoveProductSelectionAction
default <T> T withStoreRemoveProductSelectionAction(Function<StoreRemoveProductSelectionAction, 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<StoreRemoveProductSelectionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-