Package com.oracle.bmc.devops.model
Class PullRequestComment.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.PullRequestComment.Builder
-
- Enclosing class:
- PullRequestComment
public static class PullRequestComment.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public PullRequestComment.Builder id(String id)
Unique identifier that is immutable on creation- Parameters:
id
- the value to set- Returns:
- this builder
-
pullRequestId
public PullRequestComment.Builder pullRequestId(String pullRequestId)
OCID of the pull request that this comment belongs to- Parameters:
pullRequestId
- the value to set- Returns:
- this builder
-
data
public PullRequestComment.Builder data(String data)
Content of the Comment.- Parameters:
data
- the value to set- Returns:
- this builder
-
parentId
public PullRequestComment.Builder parentId(String parentId)
ID of parent Comment- Parameters:
parentId
- the value to set- Returns:
- this builder
-
filePath
public PullRequestComment.Builder filePath(String filePath)
File path in the commit- Parameters:
filePath
- the value to set- Returns:
- this builder
-
commitId
public PullRequestComment.Builder commitId(String commitId)
Commit SHA- Parameters:
commitId
- the value to set- Returns:
- this builder
-
fileType
public PullRequestComment.Builder fileType(PullRequestComment.FileType fileType)
File path in the target commit- Parameters:
fileType
- the value to set- Returns:
- this builder
-
lineNumber
public PullRequestComment.Builder lineNumber(Integer lineNumber)
Line number in the file- Parameters:
lineNumber
- the value to set- Returns:
- this builder
-
likes
public PullRequestComment.Builder likes(PullRequestCommentLikeCollection likes)
-
status
public PullRequestComment.Builder status(PullRequestComment.Status status)
Status of the Comment- Parameters:
status
- the value to set- Returns:
- this builder
-
timeCreated
public PullRequestComment.Builder timeCreated(Date timeCreated)
Creation timestamp.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
createdBy
public PullRequestComment.Builder createdBy(PrincipalDetails createdBy)
-
timeUpdated
public PullRequestComment.Builder timeUpdated(Date timeUpdated)
Latest update timestamp.Format defined by RFC3339.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
updatedBy
public PullRequestComment.Builder updatedBy(PrincipalDetails updatedBy)
-
contextStatus
public PullRequestComment.Builder contextStatus(PullRequestComment.ContextStatus contextStatus)
Shows the status of an inline comments context- Parameters:
contextStatus
- the value to set- Returns:
- this builder
-
commentContext
public PullRequestComment.Builder commentContext(List<DiffLineDetails> commentContext)
4 line snippet to be displayed as context for inline comments- Parameters:
commentContext
- the value to set- Returns:
- this builder
-
build
public PullRequestComment build()
-
copy
public PullRequestComment.Builder copy(PullRequestComment model)
-
-