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)
.makeInheritedAssociatesExplicit(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitChangeAssociateModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitChangeAssociateModeActionbuilder(BusinessUnitChangeAssociateModeAction template) create builder for BusinessUnitChangeAssociateModeAction instancecopyDeep()factory method to create a deep copy of BusinessUnitChangeAssociateModeAction@NotNull BusinessUnitAssociateModeThe new value forassociateMode.@NotNull BooleanIf set totrueduring a change toassociateMode="Explicit", all inherited Associates will be converted to explicit Associates.of()factory methodof(BusinessUnitChangeAssociateModeAction template) factory method to create a shallow copy BusinessUnitChangeAssociateModeActionvoidsetAssociateMode(BusinessUnitAssociateMode associateMode) The new value forassociateMode.voidsetMakeInheritedAssociatesExplicit(Boolean makeInheritedAssociatesExplicit) If set totrueduring a change toassociateMode="Explicit", all inherited Associates will be converted to explicit Associates.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitChangeAssociateModeAction>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
-
CHANGE_ASSOCIATE_MODE
discriminator value for BusinessUnitChangeAssociateModeAction- See Also:
-
-
Method Details
-
getAssociateMode
The new value for
associateMode.- Returns:
- associateMode
-
getMakeInheritedAssociatesExplicit
If set to
trueduring a change toassociateMode="Explicit", all inherited Associates will be converted to explicit Associates.- Returns:
- makeInheritedAssociatesExplicit
-
setAssociateMode
The new value for
associateMode.- Parameters:
associateMode- value to be set
-
setMakeInheritedAssociatesExplicit
If set to
trueduring a change toassociateMode="Explicit", all inherited Associates will be converted to explicit Associates.- Parameters:
makeInheritedAssociatesExplicit- 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
-
copyDeep
BusinessUnitChangeAssociateModeAction copyDeep()- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
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
-