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