Interface ApprovalRuleStatusSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Status update action.
Example to create an instance using the builder pattern
ApprovalRuleStatusSetMessagePayload approvalRuleStatusSetMessagePayload = ApprovalRuleStatusSetMessagePayload.builder()
.status(ApprovalRuleStatus.ACTIVE)
.oldStatus(ApprovalRuleStatus.ACTIVE)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalRuleStatusSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalRuleStatusSetMessagePayloadbuilder
(ApprovalRuleStatusSetMessagePayload template) create builder for ApprovalRuleStatusSetMessagePayload instancedeepCopy
(ApprovalRuleStatusSetMessagePayload template) factory method to create a deep copy of ApprovalRuleStatusSetMessagePayload@NotNull ApprovalRuleStatus
Status of the ApprovalRule before the Set Status update action.@NotNull ApprovalRuleStatus
Status of the ApprovalRule after the Set Status update action.of()
factory methodof
(ApprovalRuleStatusSetMessagePayload template) factory method to create a shallow copy ApprovalRuleStatusSetMessagePayloadvoid
setOldStatus
(ApprovalRuleStatus oldStatus) Status of the ApprovalRule before the Set Status update action.void
setStatus
(ApprovalRuleStatus status) Status of the ApprovalRule after the Set Status update action.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleStatusSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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
-
APPROVAL_RULE_STATUS_SET
discriminator value for ApprovalRuleStatusSetMessagePayload- See Also:
-
-
Method Details
-
getStatus
Status of the ApprovalRule after the Set Status update action.
- Returns:
- status
-
getOldStatus
Status of the ApprovalRule before the Set Status update action.
- Returns:
- oldStatus
-
setStatus
Status of the ApprovalRule after the Set Status update action.
- Parameters:
status
- value to be set
-
setOldStatus
Status of the ApprovalRule before the Set Status update action.
- Parameters:
oldStatus
- value to be set
-
of
factory method- Returns:
- instance of ApprovalRuleStatusSetMessagePayload
-
of
factory method to create a shallow copy ApprovalRuleStatusSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalRuleStatusSetMessagePayload deepCopy(@Nullable ApprovalRuleStatusSetMessagePayload template) factory method to create a deep copy of ApprovalRuleStatusSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleStatusSetMessagePayload- Returns:
- builder
-
builder
static ApprovalRuleStatusSetMessagePayloadBuilder builder(ApprovalRuleStatusSetMessagePayload template) create builder for ApprovalRuleStatusSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleStatusSetMessagePayload
default <T> T withApprovalRuleStatusSetMessagePayload(Function<ApprovalRuleStatusSetMessagePayload, 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<ApprovalRuleStatusSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-