Interface RuleRequester
public interface RuleRequester
RuleRequester
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RuleRequester ruleRequester = RuleRequester.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuleRequesterBuilder
builder()
builder factory method for RuleRequesterstatic RuleRequesterBuilder
builder
(RuleRequester template) create builder for RuleRequester instancestatic RuleRequester
deepCopy
(RuleRequester template) factory method to create a deep copy of RuleRequester@NotNull @Valid AssociateRoleKeyReference
The Associate Role that an Associate must hold for the Approval Rule to apply to the Orders they create.static RuleRequester
of()
factory methodstatic RuleRequester
of
(RuleRequester template) factory method to create a shallow copy RuleRequestervoid
setAssociateRole
(AssociateRoleKeyReference associateRole) The Associate Role that an Associate must hold for the Approval Rule to apply to the Orders they create.static com.fasterxml.jackson.core.type.TypeReference<RuleRequester>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withRuleRequester
(Function<RuleRequester, T> helper) accessor map function
-
Method Details
-
getAssociateRole
The Associate Role that an Associate must hold for the Approval Rule to apply to the Orders they create.
- Returns:
- associateRole
-
setAssociateRole
The Associate Role that an Associate must hold for the Approval Rule to apply to the Orders they create.
- Parameters:
associateRole
- value to be set
-
of
factory method- Returns:
- instance of RuleRequester
-
of
factory method to create a shallow copy RuleRequester- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of RuleRequester- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RuleRequester- Returns:
- builder
-
builder
create builder for RuleRequester instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withRuleRequester
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
-