Interface ApproverHierarchyDraft
- All Superinterfaces:
Draft<ApproverHierarchyDraft>
Describes the sequence in which Associates can approve an Order.
Example to create an instance using the builder pattern
ApproverHierarchyDraft approverHierarchyDraft = ApproverHierarchyDraft.builder()
.plusTiers(tiersBuilder -> tiersBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApproverHierarchyDraftbuilder
(ApproverHierarchyDraft template) create builder for ApproverHierarchyDraft instancestatic ApproverHierarchyDraft
deepCopy
(ApproverHierarchyDraft template) factory method to create a deep copy of ApproverHierarchyDraft@NotNull @Valid List<ApproverConjunctionDraft>
getTiers()
Nested conjunctions representing tiers of approvers in a hierarchy.static ApproverHierarchyDraft
of()
factory methodstatic ApproverHierarchyDraft
of
(ApproverHierarchyDraft template) factory method to create a shallow copy ApproverHierarchyDraftvoid
setTiers
(ApproverConjunctionDraft... tiers) Nested conjunctions representing tiers of approvers in a hierarchy.void
setTiers
(List<ApproverConjunctionDraft> tiers) Nested conjunctions representing tiers of approvers in a hierarchy.static com.fasterxml.jackson.core.type.TypeReference<ApproverHierarchyDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getTiers
Nested conjunctions representing tiers of approvers in a hierarchy.
- Returns:
- tiers
-
setTiers
Nested conjunctions representing tiers of approvers in a hierarchy.
- Parameters:
tiers
- values to be set
-
setTiers
Nested conjunctions representing tiers of approvers in a hierarchy.
- Parameters:
tiers
- values to be set
-
of
factory method- Returns:
- instance of ApproverHierarchyDraft
-
of
factory method to create a shallow copy ApproverHierarchyDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ApproverHierarchyDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApproverHierarchyDraft- Returns:
- builder
-
builder
create builder for ApproverHierarchyDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApproverHierarchyDraft
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-