Class TeamEvent.Builder

java.lang.Object
com.dropbox.core.v2.teamlog.TeamEvent.Builder
Enclosing class:
TeamEvent

public static class TeamEvent.Builder extends Object
Builder for TeamEvent.
  • Field Details

  • Constructor Details

  • Method Details

    • withActor

      public TeamEvent.Builder withActor(ActorLogInfo actor)
      Set value for optional field.
      Parameters:
      actor - The entity who actually performed the action.
      Returns:
      this builder
    • withOrigin

      public TeamEvent.Builder withOrigin(OriginLogInfo origin)
      Set value for optional field.
      Parameters:
      origin - The origin from which the actor performed the action including information about host, ip address, location, session, etc. If the action was performed programmatically via the API the origin represents the API client.
      Returns:
      this builder
    • withInvolveNonTeamMember

      public TeamEvent.Builder withInvolveNonTeamMember(Boolean involveNonTeamMember)
      Set value for optional field.
      Parameters:
      involveNonTeamMember - True if the action involved a non team member either as the actor or as one of the affected users.
      Returns:
      this builder
    • withContext

      public TeamEvent.Builder withContext(ContextLogInfo context)
      Set value for optional field.
      Parameters:
      context - The user or team on whose behalf the actor performed the action.
      Returns:
      this builder
    • withParticipants

      public TeamEvent.Builder withParticipants(List<ParticipantLogInfo> participants)
      Set value for optional field.
      Parameters:
      participants - Zero or more users and/or groups that are affected by the action. Note that this list doesn't include any actors or users in context. Must not contain a null item.
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • withAssets

      public TeamEvent.Builder withAssets(List<AssetLogInfo> assets)
      Set value for optional field.
      Parameters:
      assets - Zero or more content assets involved in the action. Currently these include Dropbox files and folders but in the future we might add other asset types such as Paper documents, folders, projects, etc. Must not contain a null item.
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • build

      public TeamEvent build()
      Builds an instance of TeamEvent configured with this builder's values
      Returns:
      new instance of TeamEvent