Interface BusinessUnitApprovalRuleModeChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Change Approval Rule Mode update action.
Example to create an instance using the builder pattern
BusinessUnitApprovalRuleModeChangedMessagePayload businessUnitApprovalRuleModeChangedMessagePayload = BusinessUnitApprovalRuleModeChangedMessagePayload.builder()
.approvalRuleMode(BusinessUnitApprovalRuleMode.EXPLICIT)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitApprovalRuleModeChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitApprovalRuleModeChangedMessagePayloadcreate builder for BusinessUnitApprovalRuleModeChangedMessagePayload instancefactory method to create a deep copy of BusinessUnitApprovalRuleModeChangedMessagePayload@NotNull BusinessUnitApprovalRuleMode
BusinessUnitApprovalRuleMode of the Business Unit after the Change Approval Rule Mode update action.BusinessUnitApprovalRuleMode of the Business Unit before the Change Approval Rule Mode update action.of()
factory methodfactory method to create a shallow copy BusinessUnitApprovalRuleModeChangedMessagePayloadvoid
setApprovalRuleMode
(BusinessUnitApprovalRuleMode approvalRuleMode) BusinessUnitApprovalRuleMode of the Business Unit after the Change Approval Rule Mode update action.void
setOldApprovalRuleMode
(BusinessUnitApprovalRuleMode oldApprovalRuleMode) BusinessUnitApprovalRuleMode of the Business Unit before the Change Approval Rule Mode update action.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitApprovalRuleModeChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBusinessUnitApprovalRuleModeChangedMessagePayload
(Function<BusinessUnitApprovalRuleModeChangedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
BUSINESS_UNIT_APPROVAL_RULE_MODE_CHANGED
discriminator value for BusinessUnitApprovalRuleModeChangedMessagePayload- See Also:
-
-
Method Details
-
getApprovalRuleMode
BusinessUnitApprovalRuleMode of the Business Unit after the Change Approval Rule Mode update action.
- Returns:
- approvalRuleMode
-
getOldApprovalRuleMode
BusinessUnitApprovalRuleMode getOldApprovalRuleMode()BusinessUnitApprovalRuleMode of the Business Unit before the Change Approval Rule Mode update action.
- Returns:
- oldApprovalRuleMode
-
setApprovalRuleMode
BusinessUnitApprovalRuleMode of the Business Unit after the Change Approval Rule Mode update action.
- Parameters:
approvalRuleMode
- value to be set
-
setOldApprovalRuleMode
BusinessUnitApprovalRuleMode of the Business Unit before the Change Approval Rule Mode update action.
- Parameters:
oldApprovalRuleMode
- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitApprovalRuleModeChangedMessagePayload
-
of
static BusinessUnitApprovalRuleModeChangedMessagePayload of(BusinessUnitApprovalRuleModeChangedMessagePayload template) factory method to create a shallow copy BusinessUnitApprovalRuleModeChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static BusinessUnitApprovalRuleModeChangedMessagePayload deepCopy(@Nullable BusinessUnitApprovalRuleModeChangedMessagePayload template) factory method to create a deep copy of BusinessUnitApprovalRuleModeChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitApprovalRuleModeChangedMessagePayload- Returns:
- builder
-
builder
static BusinessUnitApprovalRuleModeChangedMessagePayloadBuilder builder(BusinessUnitApprovalRuleModeChangedMessagePayload template) create builder for BusinessUnitApprovalRuleModeChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitApprovalRuleModeChangedMessagePayload
default <T> T withBusinessUnitApprovalRuleModeChangedMessagePayload(Function<BusinessUnitApprovalRuleModeChangedMessagePayload, 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<BusinessUnitApprovalRuleModeChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-