Interface ApprovalRuleCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after an Approval Rule is created.
Example to create an instance using the builder pattern
ApprovalRuleCreatedMessagePayload approvalRuleCreatedMessagePayload = ApprovalRuleCreatedMessagePayload.builder()
.approvalRule(approvalRuleBuilder -> approvalRuleBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalRuleCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalRuleCreatedMessagePayloadbuilder
(ApprovalRuleCreatedMessagePayload template) create builder for ApprovalRuleCreatedMessagePayload instancedeepCopy
(ApprovalRuleCreatedMessagePayload template) factory method to create a deep copy of ApprovalRuleCreatedMessagePayload@NotNull @Valid ApprovalRule
The Approval Rule that was created.of()
factory methodof
(ApprovalRuleCreatedMessagePayload template) factory method to create a shallow copy ApprovalRuleCreatedMessagePayloadvoid
setApprovalRule
(ApprovalRule approvalRule) The Approval Rule that was created.static com.fasterxml.jackson.core.type.TypeReference<ApprovalRuleCreatedMessagePayload>
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_CREATED
discriminator value for ApprovalRuleCreatedMessagePayload- See Also:
-
-
Method Details
-
getApprovalRule
The Approval Rule that was created.
- Returns:
- approvalRule
-
setApprovalRule
The Approval Rule that was created.
- Parameters:
approvalRule
- value to be set
-
of
factory method- Returns:
- instance of ApprovalRuleCreatedMessagePayload
-
of
factory method to create a shallow copy ApprovalRuleCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalRuleCreatedMessagePayload deepCopy(@Nullable ApprovalRuleCreatedMessagePayload template) factory method to create a deep copy of ApprovalRuleCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalRuleCreatedMessagePayload- Returns:
- builder
-
builder
create builder for ApprovalRuleCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalRuleCreatedMessagePayload
default <T> T withApprovalRuleCreatedMessagePayload(Function<ApprovalRuleCreatedMessagePayload, 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<ApprovalRuleCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-