@Generated(value="software.amazon.awssdk:codegen") public final class CommentsForPullRequest extends Object implements StructuredPojo, 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()
he 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
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).
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
pullRequestId()
The system-generated ID of the pull request.
|
String |
repositoryName()
The name of the repository that contains the pull request.
|
static Class<? extends CommentsForPullRequest.Builder> |
serializableBuilderClass() |
CommentsForPullRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String pullRequestId()
The system-generated ID of the pull request.
public String repositoryName()
The name of the repository that contains the pull request.
public 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 will be superceded by the after commit in the source branch when and if you merge the source branch into the destination branch.
public String afterCommitId()
he full commit ID of the commit that was the tip of the source branch at the time the comment was made.
public String beforeBlobId()
The full blob ID of the file on which you want to comment on the destination commit.
public String afterBlobId()
The full blob ID of the file on which you want to comment on the source commit.
public 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 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.
public CommentsForPullRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CommentsForPullRequest.Builder,CommentsForPullRequest>
public static CommentsForPullRequest.Builder builder()
public static Class<? extends CommentsForPullRequest.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.