Interface Activity.Builder

    • Method Detail

      • type

        Activity.Builder type​(String type)

        The activity type.

        Parameters:
        type - The activity type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ActivityType, ActivityType
      • timeStamp

        Activity.Builder timeStamp​(Instant timeStamp)

        The timestamp when the action was performed.

        Parameters:
        timeStamp - The timestamp when the action was performed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isIndirectActivity

        Activity.Builder isIndirectActivity​(Boolean isIndirectActivity)

        Indicates whether an activity is indirect or direct. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).

        Parameters:
        isIndirectActivity - Indicates whether an activity is indirect or direct. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • organizationId

        Activity.Builder organizationId​(String organizationId)

        The ID of the organization.

        Parameters:
        organizationId - The ID of the organization.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • initiator

        Activity.Builder initiator​(UserMetadata initiator)

        The user who performed the action.

        Parameters:
        initiator - The user who performed the action.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • participants

        Activity.Builder participants​(Participants participants)

        The list of users or groups impacted by this action. This is an optional field and is filled for the following sharing activities: DOCUMENT_SHARED, DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.

        Parameters:
        participants - The list of users or groups impacted by this action. This is an optional field and is filled for the following sharing activities: DOCUMENT_SHARED, DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceMetadata

        Activity.Builder resourceMetadata​(ResourceMetadata resourceMetadata)

        The metadata of the resource involved in the user action.

        Parameters:
        resourceMetadata - The metadata of the resource involved in the user action.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • originalParent

        Activity.Builder originalParent​(ResourceMetadata originalParent)

        The original parent of the resource. This is an optional field and is filled for move activities.

        Parameters:
        originalParent - The original parent of the resource. This is an optional field and is filled for move activities.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • commentMetadata

        Activity.Builder commentMetadata​(CommentMetadata commentMetadata)

        Metadata of the commenting activity. This is an optional field and is filled for commenting activities.

        Parameters:
        commentMetadata - Metadata of the commenting activity. This is an optional field and is filled for commenting activities.
        Returns:
        Returns a reference to this object so that method calls can be chained together.