Class StoreSetProductSelectionsActionImpl
java.lang.Object
com.commercetools.api.models.store.StoreSetProductSelectionsActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<StoreUpdateAction>
,StoreSetProductSelectionsAction
,StoreUpdateAction
,io.vrap.rmf.base.client.ModelBase
public class StoreSetProductSelectionsActionImpl
extends Object
implements StoreSetProductSelectionsAction, io.vrap.rmf.base.client.ModelBase
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.store.StoreSetProductSelectionsAction
SET_PRODUCT_SELECTIONS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.int
hashCode()
void
setProductSelections
(ProductSelectionSettingDraft... productSelections) Value to set.void
setProductSelections
(List<ProductSelectionSettingDraft> productSelections) Value to set.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.store.StoreSetProductSelectionsAction
withStoreSetProductSelectionsAction
Methods inherited from interface com.commercetools.api.models.store.StoreUpdateAction
withStoreUpdateAction
-
Constructor Details
-
StoreSetProductSelectionsActionImpl
public StoreSetProductSelectionsActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StoreUpdateAction>
- Specified by:
getAction
in interfaceStoreUpdateAction
- Returns:
- action
-
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.
- Specified by:
getProductSelections
in interfaceStoreSetProductSelectionsAction
- Returns:
- productSelections
- If provided, Product Selections for which
-
setProductSelections
Description copied from interface:StoreSetProductSelectionsAction
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.
- Specified by:
setProductSelections
in interfaceStoreSetProductSelectionsAction
- Parameters:
productSelections
- values to be set
- If provided, Product Selections for which
-
setProductSelections
Description copied from interface:StoreSetProductSelectionsAction
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.
- Specified by:
setProductSelections
in interfaceStoreSetProductSelectionsAction
- Parameters:
productSelections
- values to be set
- If provided, Product Selections for which
-
equals
-
hashCode
public int hashCode()
-