Interface MyBusinessUnitAssociateDraft

All Superinterfaces:
Draft<MyBusinessUnitAssociateDraft>

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

     MyBusinessUnitAssociateDraft myBusinessUnitAssociateDraft = MyBusinessUnitAssociateDraft.builder()
             .version(0.3)
             .customer(customerBuilder -> customerBuilder)
             .plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
             .build()
 
  • Method Details

    • getVersion

      @NotNull @NotNull Long getVersion()

      Expected version of the BusinessUnit on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.

      Returns:
      version
    • getCustomer

      @NotNull @Valid @NotNull @Valid MyCustomerDraft getCustomer()

      Customer to create and assign to the Business Unit.

      Returns:
      customer
    • getAssociateRoleAssignments

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

      Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the buyerAssignable property set to true.

      Returns:
      associateRoleAssignments
    • setVersion

      void setVersion(Long version)

      Expected version of the BusinessUnit on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.

      Parameters:
      version - value to be set
    • setCustomer

      void setCustomer(MyCustomerDraft customer)

      Customer to create and assign to the Business Unit.

      Parameters:
      customer - value to be set
    • setAssociateRoleAssignments

      void setAssociateRoleAssignments(AssociateRoleAssignmentDraft... associateRoleAssignments)

      Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the buyerAssignable property set to true.

      Parameters:
      associateRoleAssignments - values to be set
    • setAssociateRoleAssignments

      void setAssociateRoleAssignments(List<AssociateRoleAssignmentDraft> associateRoleAssignments)

      Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the buyerAssignable property set to true.

      Parameters:
      associateRoleAssignments - values to be set
    • of

      factory method
      Returns:
      instance of MyBusinessUnitAssociateDraft
    • of

      factory method to create a shallow copy MyBusinessUnitAssociateDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      builder factory method for MyBusinessUnitAssociateDraft
      Returns:
      builder
    • builder

      create builder for MyBusinessUnitAssociateDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyBusinessUnitAssociateDraft

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