@Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public final class PullRequestComment extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
User comments created by reviewers during the pull request review.
Note: Objects should always be created or deserialized using the PullRequestComment.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the PullRequestComment.Builder
, which maintain a
set of all explicitly set fields called PullRequestComment.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
PullRequestComment.Builder |
static class |
PullRequestComment.ContextStatus
Shows the status of an inline comments context
|
static class |
PullRequestComment.FileType
File path in the target commit
|
static class |
PullRequestComment.Status
Status of the Comment
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
PullRequestComment(String id,
String pullRequestId,
String data,
String parentId,
String filePath,
String commitId,
PullRequestComment.FileType fileType,
Integer lineNumber,
PullRequestCommentLikeCollection likes,
PullRequestComment.Status status,
Date timeCreated,
PrincipalDetails createdBy,
Date timeUpdated,
PrincipalDetails updatedBy,
PullRequestComment.ContextStatus contextStatus,
List<DiffLineDetails> commentContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PullRequestComment.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<DiffLineDetails> |
getCommentContext()
4 line snippet to be displayed as context for inline comments
|
String |
getCommitId()
Commit SHA
|
PullRequestComment.ContextStatus |
getContextStatus()
Shows the status of an inline comments context
|
PrincipalDetails |
getCreatedBy() |
String |
getData()
Content of the Comment.
|
String |
getFilePath()
File path in the commit
|
PullRequestComment.FileType |
getFileType()
File path in the target commit
|
String |
getId()
Unique identifier that is immutable on creation
|
PullRequestCommentLikeCollection |
getLikes() |
Integer |
getLineNumber()
Line number in the file
|
String |
getParentId()
ID of parent Comment
|
String |
getPullRequestId()
OCID of the pull request that this comment belongs to
|
PullRequestComment.Status |
getStatus()
Status of the Comment
|
Date |
getTimeCreated()
Creation timestamp.
|
Date |
getTimeUpdated()
Latest update timestamp.
|
PrincipalDetails |
getUpdatedBy() |
int |
hashCode() |
PullRequestComment.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","pullRequestId","data","parentId","filePath","commitId","fileType","lineNumber","likes","status","timeCreated","createdBy","timeUpdated","updatedBy","contextStatus","commentContext"}) public PullRequestComment(String id, String pullRequestId, String data, String parentId, String filePath, String commitId, PullRequestComment.FileType fileType, Integer lineNumber, PullRequestCommentLikeCollection likes, PullRequestComment.Status status, Date timeCreated, PrincipalDetails createdBy, Date timeUpdated, PrincipalDetails updatedBy, PullRequestComment.ContextStatus contextStatus, List<DiffLineDetails> commentContext)
public static PullRequestComment.Builder builder()
Create a new builder.
public PullRequestComment.Builder toBuilder()
public String getId()
Unique identifier that is immutable on creation
public String getPullRequestId()
OCID of the pull request that this comment belongs to
public String getData()
Content of the Comment.
public String getParentId()
ID of parent Comment
public String getFilePath()
File path in the commit
public String getCommitId()
Commit SHA
public PullRequestComment.FileType getFileType()
File path in the target commit
public Integer getLineNumber()
Line number in the file
public PullRequestCommentLikeCollection getLikes()
public PullRequestComment.Status getStatus()
Status of the Comment
public Date getTimeCreated()
Creation timestamp. Format defined by RFC3339.
public PrincipalDetails getCreatedBy()
public Date getTimeUpdated()
Latest update timestamp. Format defined by RFC3339.
public PrincipalDetails getUpdatedBy()
public PullRequestComment.ContextStatus getContextStatus()
Shows the status of an inline comments context
public List<DiffLineDetails> getCommentContext()
4 line snippet to be displayed as context for inline comments
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.