Interface RuleRequesterDraft

All Superinterfaces:
Draft<RuleRequesterDraft>

public interface RuleRequesterDraft extends Draft<RuleRequesterDraft>
RuleRequesterDraft
Example to create an instance using the builder pattern

     RuleRequesterDraft ruleRequesterDraft = RuleRequesterDraft.builder()
             .associateRole(associateRoleBuilder -> associateRoleBuilder)
             .build()
 
  • Method Details

    • getAssociateRole

      @NotNull @Valid @NotNull @Valid AssociateRoleResourceIdentifier getAssociateRole()

      The Associate Role that an Associate must hold for the Approval Rule to apply to the Orders they create.

      Returns:
      associateRole
    • setAssociateRole

      void setAssociateRole(AssociateRoleResourceIdentifier associateRole)

      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

      static RuleRequesterDraft of()
      factory method
      Returns:
      instance of RuleRequesterDraft
    • of

      static RuleRequesterDraft of(RuleRequesterDraft template)
      factory method to create a shallow copy RuleRequesterDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of RuleRequesterDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static RuleRequesterDraftBuilder builder()
      builder factory method for RuleRequesterDraft
      Returns:
      builder
    • builder

      static RuleRequesterDraftBuilder builder(RuleRequesterDraft template)
      create builder for RuleRequesterDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withRuleRequesterDraft

      default <T> T withRuleRequesterDraft(Function<RuleRequesterDraft,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<RuleRequesterDraft> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference