Class TeamEvent.Builder

  • Enclosing class:
    TeamEvent

    public static class TeamEvent.Builder
    extends java.lang.Object
    Builder for TeamEvent.
    • Method Detail

      • withActor

        public TeamEvent.Builder withActor​(ActorLogInfo actor)
        Set value for optional field.
        Parameters:
        actor - The entity who actually performed the action. Might be missing due to historical data gap.
        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​(java.lang.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. Might be missing due to historical data gap.
        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. Might be missing due to historical data gap.
        Returns:
        this builder
      • withParticipants

        public TeamEvent.Builder withParticipants​(java.util.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:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withAssets

        public TeamEvent.Builder withAssets​(java.util.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:
        java.lang.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