Interface BusinessUnitSetStoreModeAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
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.
Example to create an instance using the builder pattern
BusinessUnitSetStoreModeAction businessUnitSetStoreModeAction = BusinessUnitSetStoreModeAction.builder()
.storeMode(BusinessUnitStoreMode.EXPLICIT)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitSetStoreModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitSetStoreModeActionbuilder
(BusinessUnitSetStoreModeAction template) create builder for BusinessUnitSetStoreModeAction instancedeepCopy
(BusinessUnitSetStoreModeAction template) factory method to create a deep copy of BusinessUnitSetStoreModeAction@NotNull BusinessUnitStoreMode
Set toExplicit
to specify Stores for the Business Unit.@Valid List<StoreResourceIdentifier>
Set the Stores the Business Unit is associated with.of()
factory methodof
(BusinessUnitSetStoreModeAction template) factory method to create a shallow copy BusinessUnitSetStoreModeActionvoid
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.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitSetStoreModeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_STORE_MODE
discriminator value for BusinessUnitSetStoreModeAction- See Also:
-
-
Method Details
-
getStoreMode
Set to
Explicit
to specify Stores for the Business Unit. Set toFromParent
to inherit Stores from a parent.- Returns:
- storeMode
-
getStores
Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Returns:
- stores
-
setStoreMode
Set to
Explicit
to specify Stores for the Business Unit. Set toFromParent
to inherit Stores from a parent.- Parameters:
storeMode
- value to be set
-
setStores
Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Parameters:
stores
- values to be set
-
setStores
Set the Stores the Business Unit is associated with. Can only be set if
storeMode
isExplicit
.- Parameters:
stores
- values to be set
-
of
factory method- Returns:
- instance of BusinessUnitSetStoreModeAction
-
of
factory method to create a shallow copy BusinessUnitSetStoreModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitSetStoreModeAction deepCopy(@Nullable BusinessUnitSetStoreModeAction template) factory method to create a deep copy of BusinessUnitSetStoreModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitSetStoreModeAction- Returns:
- builder
-
builder
create builder for BusinessUnitSetStoreModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitSetStoreModeAction
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<BusinessUnitSetStoreModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-