Interface AssociateRoleAssignmentDraft

All Superinterfaces:
Draft<AssociateRoleAssignmentDraft>

public interface AssociateRoleAssignmentDraft extends Draft<AssociateRoleAssignmentDraft>

The role of an Associate in a Business Unit.


Example to create an instance using the builder pattern

     AssociateRoleAssignmentDraft associateRoleAssignmentDraft = AssociateRoleAssignmentDraft.builder()
             .associateRole(associateRoleBuilder -> associateRoleBuilder)
             .inheritance(AssociateRoleInheritanceMode.ENABLED)
             .build()
 
  • Method Details

    • getAssociateRole

      @NotNull @Valid @NotNull @Valid AssociateRoleKeyReference getAssociateRole()

      The role to assign to the Associate.

      Returns:
      associateRole
    • getInheritance

      @NotNull @NotNull AssociateRoleInheritanceMode getInheritance()

      Determines whether the AssociateRole is inherited. If Disabled, the AssociateRole is not inherited from a parent Business Unit.

      Returns:
      inheritance
    • setAssociateRole

      void setAssociateRole(AssociateRoleKeyReference associateRole)

      The role to assign to the Associate.

      Parameters:
      associateRole - value to be set
    • setInheritance

      void setInheritance(AssociateRoleInheritanceMode inheritance)

      Determines whether the AssociateRole is inherited. If Disabled, the AssociateRole is not inherited from a parent Business Unit.

      Parameters:
      inheritance - value to be set
    • of

      factory method
      Returns:
      instance of AssociateRoleAssignmentDraft
    • of

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

    • deepCopy

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

      builder factory method for AssociateRoleAssignmentDraft
      Returns:
      builder
    • builder

      create builder for AssociateRoleAssignmentDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withAssociateRoleAssignmentDraft

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