Interface Associate


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

     Associate associate = Associate.builder()
             .plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
             .customer(customerBuilder -> customerBuilder)
             .build()
 
  • Method Details

    • getAssociateRoleAssignments

      @NotNull @Valid @NotNull @Valid List<AssociateRoleAssignment> getAssociateRoleAssignments()
      Returns:
      associateRoleAssignments
    • getCustomer

      @NotNull @Valid @NotNull @Valid Reference getCustomer()
      Returns:
      customer
    • setAssociateRoleAssignments

      void setAssociateRoleAssignments(AssociateRoleAssignment... associateRoleAssignments)
      set associateRoleAssignments
      Parameters:
      associateRoleAssignments - values to be set
    • setAssociateRoleAssignments

      void setAssociateRoleAssignments(List<AssociateRoleAssignment> associateRoleAssignments)
      set associateRoleAssignments
      Parameters:
      associateRoleAssignments - values to be set
    • setCustomer

      void setCustomer(Reference customer)
      set customer
      Parameters:
      customer - value to be set
    • of

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

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

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

      static AssociateBuilder builder()
      builder factory method for Associate
      Returns:
      builder
    • builder

      static AssociateBuilder builder(Associate template)
      create builder for Associate instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAssociate

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