Interface BusinessUnitChangeAssociateModeAction
- All Superinterfaces:
BusinessUnitUpdateAction
,ResourceUpdateAction<BusinessUnitUpdateAction>
Only Business Units of type Division
can be changed to ExplicitAndFromParent
. This update action generates a BusinessUnitAssociateModeChanged Message.
Example to create an instance using the builder pattern
BusinessUnitChangeAssociateModeAction businessUnitChangeAssociateModeAction = BusinessUnitChangeAssociateModeAction.builder()
.associateMode(BusinessUnitAssociateMode.EXPLICIT)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitChangeAssociateModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitChangeAssociateModeActionbuilder
(BusinessUnitChangeAssociateModeAction template) create builder for BusinessUnitChangeAssociateModeAction instancefactory method to create a deep copy of BusinessUnitChangeAssociateModeAction@NotNull BusinessUnitAssociateMode
The new value forassociateMode
.of()
factory methodof
(BusinessUnitChangeAssociateModeAction template) factory method to create a shallow copy BusinessUnitChangeAssociateModeActionvoid
setAssociateMode
(BusinessUnitAssociateMode associateMode) The new value forassociateMode
.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitChangeAssociateModeAction>
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
-
CHANGE_ASSOCIATE_MODE
discriminator value for BusinessUnitChangeAssociateModeAction- See Also:
-
-
Method Details
-
getAssociateMode
The new value for
associateMode
.- Returns:
- associateMode
-
setAssociateMode
The new value for
associateMode
.- Parameters:
associateMode
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitChangeAssociateModeAction
-
of
factory method to create a shallow copy BusinessUnitChangeAssociateModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitChangeAssociateModeAction deepCopy(@Nullable BusinessUnitChangeAssociateModeAction template) factory method to create a deep copy of BusinessUnitChangeAssociateModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitChangeAssociateModeAction- Returns:
- builder
-
builder
static BusinessUnitChangeAssociateModeActionBuilder builder(BusinessUnitChangeAssociateModeAction template) create builder for BusinessUnitChangeAssociateModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitChangeAssociateModeAction
default <T> T withBusinessUnitChangeAssociateModeAction(Function<BusinessUnitChangeAssociateModeAction, 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<BusinessUnitChangeAssociateModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-