Interface RuleRequesterDraft
- All Superinterfaces:
Draft<RuleRequesterDraft>
RuleRequesterDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
RuleRequesterDraft ruleRequesterDraft = RuleRequesterDraft.builder()
.associateRole(associateRoleBuilder -> associateRoleBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuleRequesterDraftBuilderbuilder()builder factory method for RuleRequesterDraftstatic RuleRequesterDraftBuilderbuilder(RuleRequesterDraft template) create builder for RuleRequesterDraft instancecopyDeep()static RuleRequesterDraftdeepCopy(RuleRequesterDraft template) factory method to create a deep copy of RuleRequesterDraft@NotNull @Valid AssociateRoleResourceIdentifierThe Associate Role that an Associate must hold for the Approval Rule to apply to the Orders they create.static RuleRequesterDraftof()factory methodstatic RuleRequesterDraftof(RuleRequesterDraft template) factory method to create a shallow copy RuleRequesterDraftvoidsetAssociateRole(AssociateRoleResourceIdentifier 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<RuleRequesterDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithRuleRequesterDraft(Function<RuleRequesterDraft, 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 RuleRequesterDraft
-
of
factory method to create a shallow copy RuleRequesterDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
RuleRequesterDraft copyDeep() -
deepCopy
factory method to create a deep copy of RuleRequesterDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RuleRequesterDraft- Returns:
- builder
-
builder
create builder for RuleRequesterDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withRuleRequesterDraft
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
-