@Generated(value="software.amazon.awssdk:codegen") public final class CommentsForPullRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CommentsForPullRequest.Builder,CommentsForPullRequest>
Returns information about comments on a pull request.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CommentsForPullRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
afterBlobId()
The full blob ID of the file on which you want to comment on the source commit.
|
String |
afterCommitId()
The full commit ID of the commit that was the tip of the source branch at the time the comment was made.
|
String |
beforeBlobId()
The full blob ID of the file on which you want to comment on the destination commit.
|
String |
beforeCommitId()
The full commit ID of the commit that was the tip of the destination branch when the pull request was created.
|
static CommentsForPullRequest.Builder |
builder() |
List<Comment> |
comments()
An array of comment objects.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasComments()
For responses, this returns true if the service returned a value for the Comments property.
|
int |
hashCode() |
Location |
location()
Location information about the comment on the pull request, including the file name, line number, and whether the
version of the file where the comment was made is BEFORE (destination branch) or AFTER (source branch).
|
String |
pullRequestId()
The system-generated ID of the pull request.
|
String |
repositoryName()
The name of the repository that contains the pull request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CommentsForPullRequest.Builder> |
serializableBuilderClass() |
CommentsForPullRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String pullRequestId()
The system-generated ID of the pull request.
public final String repositoryName()
The name of the repository that contains the pull request.
public final String beforeCommitId()
The full commit ID of the commit that was the tip of the destination branch when the pull request was created. This commit is superceded by the after commit in the source branch when and if you merge the source branch into the destination branch.
public final String afterCommitId()
The full commit ID of the commit that was the tip of the source branch at the time the comment was made.
public final String beforeBlobId()
The full blob ID of the file on which you want to comment on the destination commit.
public final String afterBlobId()
The full blob ID of the file on which you want to comment on the source commit.
public final Location location()
Location information about the comment on the pull request, including the file name, line number, and whether the version of the file where the comment was made is BEFORE (destination branch) or AFTER (source branch).
public final boolean hasComments()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Comment> comments()
An array of comment objects. Each comment object contains information about a comment on the pull request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasComments() method.
public CommentsForPullRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CommentsForPullRequest.Builder,CommentsForPullRequest>public static CommentsForPullRequest.Builder builder()
public static Class<? extends CommentsForPullRequest.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.