Interface ApprovalFlowCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after an Approval Flow is created.
Example to create an instance using the builder pattern
ApprovalFlowCreatedMessagePayload approvalFlowCreatedMessagePayload = ApprovalFlowCreatedMessagePayload.builder()
.approvalFlow(approvalFlowBuilder -> approvalFlowBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalFlowCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalFlowCreatedMessagePayloadbuilder
(ApprovalFlowCreatedMessagePayload template) create builder for ApprovalFlowCreatedMessagePayload instancedeepCopy
(ApprovalFlowCreatedMessagePayload template) factory method to create a deep copy of ApprovalFlowCreatedMessagePayload@NotNull @Valid ApprovalFlow
The Approval Flow that was created.of()
factory methodof
(ApprovalFlowCreatedMessagePayload template) factory method to create a shallow copy ApprovalFlowCreatedMessagePayloadvoid
setApprovalFlow
(ApprovalFlow approvalFlow) The Approval Flow that was created.static com.fasterxml.jackson.core.type.TypeReference<ApprovalFlowCreatedMessagePayload>
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_FLOW_CREATED
discriminator value for ApprovalFlowCreatedMessagePayload- See Also:
-
-
Method Details
-
getApprovalFlow
The Approval Flow that was created.
- Returns:
- approvalFlow
-
setApprovalFlow
The Approval Flow that was created.
- Parameters:
approvalFlow
- value to be set
-
of
factory method- Returns:
- instance of ApprovalFlowCreatedMessagePayload
-
of
factory method to create a shallow copy ApprovalFlowCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalFlowCreatedMessagePayload deepCopy(@Nullable ApprovalFlowCreatedMessagePayload template) factory method to create a deep copy of ApprovalFlowCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalFlowCreatedMessagePayload- Returns:
- builder
-
builder
create builder for ApprovalFlowCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalFlowCreatedMessagePayload
default <T> T withApprovalFlowCreatedMessagePayload(Function<ApprovalFlowCreatedMessagePayload, 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<ApprovalFlowCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-