public class

AddCommitLineCommentRequest

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

Class Overview

Request to create a line comment.

Summary

Nested Classes
class AddCommitLineCommentRequest.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.AbstractAddLineCommentRequest
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