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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitSetStoreModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitSetStoreModeActionbuilder(BusinessUnitSetStoreModeAction template) create builder for BusinessUnitSetStoreModeAction instancecopyDeep()deepCopy(BusinessUnitSetStoreModeAction template) factory method to create a deep copy of BusinessUnitSetStoreModeAction@NotNull BusinessUnitStoreModeSet toExplicitto 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 BusinessUnitSetStoreModeActionvoidsetStoreMode(BusinessUnitStoreMode storeMode) Set toExplicitto specify Stores for the Business Unit.voidsetStores(StoreResourceIdentifier... stores) Set the Stores the Business Unit is associated with.voidsetStores(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.business_unit.BusinessUnitUpdateAction
getAction, withBusinessUnitUpdateActionMethods 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
Explicitto specify Stores for the Business Unit. Set toFromParentto inherit Stores from a parent.- Returns:
- storeMode
-
getStores
Set the Stores the Business Unit is associated with. Can only be set if
storeModeisExplicit.- Returns:
- stores
-
setStoreMode
Set to
Explicitto specify Stores for the Business Unit. Set toFromParentto 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
storeModeisExplicit.- Parameters:
stores- values to be set
-
setStores
Set the Stores the Business Unit is associated with. Can only be set if
storeModeisExplicit.- 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
-
copyDeep
BusinessUnitSetStoreModeAction copyDeep()- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
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
-