@Deprecated public class

AddCommitFileCommentRequest

extends AbstractAddFileCommentRequest
java.lang.Object
   ↳ com.atlassian.bitbucket.comment.AbstractAddFileCommentRequest
     ↳ com.atlassian.bitbucket.comment.commit.AddCommitFileCommentRequest

This class is deprecated.
in 4.11 to be removed in 5.0. The Comment API is going through a maintenance cycle. For more details see the API Changelog

Class Overview

Request to create a file comment.

Summary

Nested Classes
class AddCommitFileCommentRequest.Builder  
Public Methods
@Nonnull Optional<String> getFromHash()
@Nonnull Optional<Long> getPullRequestId()
@Nonnull Repository getRepository()
@Nonnull String getToHash()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.comment.AbstractAddFileCommentRequest
From class java.lang.Object

Public Methods

@Nonnull public Optional<String> getFromHash ()

Returns
  • the from hash to anchor the comment to. If the returned Optional is empty then it will automatically inferred

@Nonnull public Optional<Long> getPullRequestId ()

Returns
  • the ID for a pull request the comment must be anchored to

@Nonnull public Repository getRepository ()

Returns
  • the repository that holds the commit the comment must be added on

@Nonnull public String getToHash ()

Returns
  • the to hash to anchor the comment to