Interface RuleRequester


public interface RuleRequester
RuleRequester
Example to create an instance using the builder pattern

     RuleRequester ruleRequester = RuleRequester.builder()
             .associateRole(associateRoleBuilder -> associateRoleBuilder)
             .build()
 
  • Method Details

    • getAssociateRole

      @NotNull @Valid @NotNull @Valid AssociateRoleKeyReference 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(AssociateRoleKeyReference 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 RuleRequester of()
      factory method
      Returns:
      instance of RuleRequester
    • of

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

      @Nullable static RuleRequester deepCopy(@Nullable RuleRequester template)
      factory method to create a deep copy of RuleRequester
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static RuleRequesterBuilder builder()
      builder factory method for RuleRequester
      Returns:
      builder
    • builder

      static RuleRequesterBuilder builder(RuleRequester template)
      create builder for RuleRequester instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withRuleRequester

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