Interface CommentMetadata.Builder

  • Method Details

    • commentId

      CommentMetadata.Builder commentId(String commentId)

      The ID of the comment.

      Parameters:
      commentId - The ID of the comment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contributor

      CommentMetadata.Builder contributor(User contributor)

      The user who made the comment.

      Parameters:
      contributor - The user who made the comment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contributor

      default CommentMetadata.Builder contributor(Consumer<User.Builder> contributor)

      The user who made the comment.

      This is a convenience method that creates an instance of the User.Builder avoiding the need to create one manually via User.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to contributor(User).

      Parameters:
      contributor - a consumer that will call methods on User.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdTimestamp

      CommentMetadata.Builder createdTimestamp(Instant createdTimestamp)

      The timestamp that the comment was created.

      Parameters:
      createdTimestamp - The timestamp that the comment was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • commentStatus

      CommentMetadata.Builder commentStatus(String commentStatus)

      The status of the comment.

      Parameters:
      commentStatus - The status of the comment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • commentStatus

      CommentMetadata.Builder commentStatus(CommentStatusType commentStatus)

      The status of the comment.

      Parameters:
      commentStatus - The status of the comment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • recipientId

      CommentMetadata.Builder recipientId(String recipientId)

      The ID of the user being replied to.

      Parameters:
      recipientId - The ID of the user being replied to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contributorId

      CommentMetadata.Builder contributorId(String contributorId)

      The ID of the user who made the comment.

      Parameters:
      contributorId - The ID of the user who made the comment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.