Interface AssociateDraft

All Superinterfaces:
Draft<AssociateDraft>

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

     AssociateDraft associateDraft = AssociateDraft.builder()
             .plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
             .customer(customerBuilder -> customerBuilder)
             .build()
 
  • Method Details

    • getAssociateRoleAssignments

      @NotNull @Valid @NotNull @Valid List<AssociateRoleAssignmentDraft> getAssociateRoleAssignments()

      Roles assigned to the Associate within a Business Unit.

      Returns:
      associateRoleAssignments
    • getCustomer

      @NotNull @Valid @NotNull @Valid CustomerResourceIdentifier getCustomer()

      The Customer to be part of the Business Unit.

      Returns:
      customer
    • setAssociateRoleAssignments

      void setAssociateRoleAssignments(AssociateRoleAssignmentDraft... associateRoleAssignments)

      Roles assigned to the Associate within a Business Unit.

      Parameters:
      associateRoleAssignments - values to be set
    • setAssociateRoleAssignments

      void setAssociateRoleAssignments(List<AssociateRoleAssignmentDraft> associateRoleAssignments)

      Roles assigned to the Associate within a Business Unit.

      Parameters:
      associateRoleAssignments - values to be set
    • setCustomer

      void setCustomer(CustomerResourceIdentifier customer)

      The Customer to be part of the Business Unit.

      Parameters:
      customer - value to be set
    • of

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

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

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

      static AssociateDraftBuilder builder()
      builder factory method for AssociateDraft
      Returns:
      builder
    • builder

      static AssociateDraftBuilder builder(AssociateDraft template)
      create builder for AssociateDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAssociateDraft

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