Class BusinessUnitSetStoreModeActionImpl
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitSetStoreModeActionImpl
- All Implemented Interfaces:
BusinessUnitSetStoreModeAction
,BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class BusinessUnitSetStoreModeActionImpl
extends Object
implements BusinessUnitSetStoreModeAction, io.vrap.rmf.base.client.ModelBase
Only Business Units of type Division
can be have a store mode of FromParent
. Changing the storeMode
to FromParent
empties the stores
array on the BusinessUnit. This update action generates a BusinessUnitStoreModeChanged Message.
-
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.business_unit.BusinessUnitSetStoreModeAction
SET_STORE_MODE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Set toExplicit
to specify Stores for the Business Unit.Set the Stores the Business Unit is associated with.int
hashCode()
void
setStoreMode
(BusinessUnitStoreMode storeMode) Set toExplicit
to specify Stores for the Business Unit.void
setStores
(StoreResourceIdentifier... stores) Set the Stores the Business Unit is associated with.void
setStores
(List<StoreResourceIdentifier> stores) Set the Stores the Business Unit is associated with.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitSetStoreModeAction
withBusinessUnitSetStoreModeAction
Methods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
withBusinessUnitUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
BusinessUnitSetStoreModeActionImpl
public BusinessUnitSetStoreModeActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceBusinessUnitUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<BusinessUnitUpdateAction>
- Returns:
- action
-
getStoreMode
Set to
Explicit
to specify Stores for the Business Unit. Set toFromParent
to inherit Stores from a parent.- Specified by:
getStoreMode
in interfaceBusinessUnitSetStoreModeAction
- Returns:
- storeMode
-
getStores
Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Specified by:
getStores
in interfaceBusinessUnitSetStoreModeAction
- Returns:
- stores
-
setStoreMode
Description copied from interface:BusinessUnitSetStoreModeAction
Set to
Explicit
to specify Stores for the Business Unit. Set toFromParent
to inherit Stores from a parent.- Specified by:
setStoreMode
in interfaceBusinessUnitSetStoreModeAction
- Parameters:
storeMode
- value to be set
-
setStores
Description copied from interface:BusinessUnitSetStoreModeAction
Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Specified by:
setStores
in interfaceBusinessUnitSetStoreModeAction
- Parameters:
stores
- values to be set
-
setStores
Description copied from interface:BusinessUnitSetStoreModeAction
Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Specified by:
setStores
in interfaceBusinessUnitSetStoreModeAction
- Parameters:
stores
- values to be set
-
equals
-
hashCode
public int hashCode()
-