@Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public final class PullRequestCommentSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
summary of a pullRequest comment
Note: Objects should always be created or deserialized using the PullRequestCommentSummary.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 PullRequestCommentSummary.Builder
, which maintain a
set of all explicitly set fields called PullRequestCommentSummary.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 |
PullRequestCommentSummary.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
PullRequestCommentSummary(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 PullRequestCommentSummary.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() |
PullRequestCommentSummary.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 PullRequestCommentSummary(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 PullRequestCommentSummary.Builder builder()
Create a new builder.
public PullRequestCommentSummary.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.