Interface BusinessUnitChangeApprovalRuleModeAction
- All Superinterfaces:
BusinessUnitUpdateAction,ResourceUpdateAction<BusinessUnitUpdateAction>
Updates Approval Rules inheritance behavior between Business Units.
Only Business Units of type Division can be changed to ExplicitAndFromParent.
This update action generates a BusinessUnitApprovalRuleModeChanged Message.
Example to create an instance using the builder pattern
BusinessUnitChangeApprovalRuleModeAction businessUnitChangeApprovalRuleModeAction = BusinessUnitChangeApprovalRuleModeAction.builder()
.approvalRuleMode(BusinessUnitApprovalRuleMode.EXPLICIT)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitChangeApprovalRuleModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitChangeApprovalRuleModeActioncreate builder for BusinessUnitChangeApprovalRuleModeAction instancecopyDeep()factory method to create a deep copy of BusinessUnitChangeApprovalRuleModeAction@NotNull BusinessUnitApprovalRuleModeThe new value forapprovalRuleMode.of()factory methodof(BusinessUnitChangeApprovalRuleModeAction template) factory method to create a shallow copy BusinessUnitChangeApprovalRuleModeActionvoidsetApprovalRuleMode(BusinessUnitApprovalRuleMode approvalRuleMode) The new value forapprovalRuleMode.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitChangeApprovalRuleModeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithBusinessUnitChangeApprovalRuleModeAction(Function<BusinessUnitChangeApprovalRuleModeAction, T> helper) accessor 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_APPROVAL_RULE_MODE
discriminator value for BusinessUnitChangeApprovalRuleModeAction- See Also:
-
-
Method Details
-
getApprovalRuleMode
The new value for
approvalRuleMode.- Returns:
- approvalRuleMode
-
setApprovalRuleMode
The new value for
approvalRuleMode.- Parameters:
approvalRuleMode- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitChangeApprovalRuleModeAction
-
of
static BusinessUnitChangeApprovalRuleModeAction of(BusinessUnitChangeApprovalRuleModeAction template) factory method to create a shallow copy BusinessUnitChangeApprovalRuleModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitChangeApprovalRuleModeAction copyDeep()- Specified by:
copyDeepin interfaceBusinessUnitUpdateAction
-
deepCopy
@Nullable static BusinessUnitChangeApprovalRuleModeAction deepCopy(@Nullable BusinessUnitChangeApprovalRuleModeAction template) factory method to create a deep copy of BusinessUnitChangeApprovalRuleModeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitChangeApprovalRuleModeAction- Returns:
- builder
-
builder
static BusinessUnitChangeApprovalRuleModeActionBuilder builder(BusinessUnitChangeApprovalRuleModeAction template) create builder for BusinessUnitChangeApprovalRuleModeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitChangeApprovalRuleModeAction
default <T> T withBusinessUnitChangeApprovalRuleModeAction(Function<BusinessUnitChangeApprovalRuleModeAction, 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<BusinessUnitChangeApprovalRuleModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-