Interface RuleApprover
public interface RuleApprover
RuleApprover
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RuleApprover ruleApprover = RuleApprover.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuleApproverBuilder
builder()
builder factory method for RuleApproverstatic RuleApproverBuilder
builder
(RuleApprover template) create builder for RuleApprover instancestatic RuleApprover
deepCopy
(RuleApprover template) factory method to create a deep copy of RuleApprover@NotNull @Valid AssociateRoleKeyReference
The Associate Role that is allowed to approve at a given stage in the approval process.static RuleApprover
of()
factory methodstatic RuleApprover
of
(RuleApprover template) factory method to create a shallow copy RuleApprovervoid
setAssociateRole
(AssociateRoleKeyReference associateRole) The Associate Role that is allowed to approve at a given stage in the approval process.static com.fasterxml.jackson.core.type.TypeReference<RuleApprover>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withRuleApprover
(Function<RuleApprover, T> helper) accessor map function
-
Method Details
-
getAssociateRole
The Associate Role that is allowed to approve at a given stage in the approval process.
- Returns:
- associateRole
-
setAssociateRole
The Associate Role that is allowed to approve at a given stage in the approval process.
- Parameters:
associateRole
- value to be set
-
of
factory method- Returns:
- instance of RuleApprover
-
of
factory method to create a shallow copy RuleApprover- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of RuleApprover- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RuleApprover- Returns:
- builder
-
builder
create builder for RuleApprover instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withRuleApprover
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
-