@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CommentsForPullRequest extends Object implements Serializable, Cloneable, StructuredPojo
Returns information about comments on a pull request.
Constructor and Description |
---|
CommentsForPullRequest() |
Modifier and Type | Method and Description |
---|---|
CommentsForPullRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAfterBlobId()
The full blob ID of the file on which you want to comment on the source commit.
|
String |
getAfterCommitId()
he full commit ID of the commit that was the tip of the source branch at the time the comment was made.
|
String |
getBeforeBlobId()
The full blob ID of the file on which you want to comment on the destination commit.
|
String |
getBeforeCommitId()
The full commit ID of the commit that was the tip of the destination branch when the pull request was created.
|
List<Comment> |
getComments()
An array of comment objects.
|
Location |
getLocation()
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 |
getPullRequestId()
The system-generated ID of the pull request.
|
String |
getRepositoryName()
The name of the repository that contains the pull request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAfterBlobId(String afterBlobId)
The full blob ID of the file on which you want to comment on the source commit.
|
void |
setAfterCommitId(String afterCommitId)
he full commit ID of the commit that was the tip of the source branch at the time the comment was made.
|
void |
setBeforeBlobId(String beforeBlobId)
The full blob ID of the file on which you want to comment on the destination commit.
|
void |
setBeforeCommitId(String beforeCommitId)
The full commit ID of the commit that was the tip of the destination branch when the pull request was created.
|
void |
setComments(Collection<Comment> comments)
An array of comment objects.
|
void |
setLocation(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 |
setPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
|
void |
setRepositoryName(String repositoryName)
The name of the repository that contains the pull request.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CommentsForPullRequest |
withAfterBlobId(String afterBlobId)
The full blob ID of the file on which you want to comment on the source commit.
|
CommentsForPullRequest |
withAfterCommitId(String afterCommitId)
he full commit ID of the commit that was the tip of the source branch at the time the comment was made.
|
CommentsForPullRequest |
withBeforeBlobId(String beforeBlobId)
The full blob ID of the file on which you want to comment on the destination commit.
|
CommentsForPullRequest |
withBeforeCommitId(String beforeCommitId)
The full commit ID of the commit that was the tip of the destination branch when the pull request was created.
|
CommentsForPullRequest |
withComments(Collection<Comment> comments)
An array of comment objects.
|
CommentsForPullRequest |
withComments(Comment... comments)
An array of comment objects.
|
CommentsForPullRequest |
withLocation(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).
|
CommentsForPullRequest |
withPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
|
CommentsForPullRequest |
withRepositoryName(String repositoryName)
The name of the repository that contains the pull request.
|
public void setPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
pullRequestId
- The system-generated ID of the pull request.public String getPullRequestId()
The system-generated ID of the pull request.
public CommentsForPullRequest withPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
pullRequestId
- The system-generated ID of the pull request.public void setRepositoryName(String repositoryName)
The name of the repository that contains the pull request.
repositoryName
- The name of the repository that contains the pull request.public String getRepositoryName()
The name of the repository that contains the pull request.
public CommentsForPullRequest withRepositoryName(String repositoryName)
The name of the repository that contains the pull request.
repositoryName
- The name of the repository that contains the pull request.public void setBeforeCommitId(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.
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 getBeforeCommitId()
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 CommentsForPullRequest withBeforeCommitId(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.
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 void setAfterCommitId(String afterCommitId)
he full commit ID of the commit that was the tip of the source branch at the time the comment was made.
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 getAfterCommitId()
he full commit ID of the commit that was the tip of the source branch at the time the comment was made.
public CommentsForPullRequest withAfterCommitId(String afterCommitId)
he full commit ID of the commit that was the tip of the source branch at the time the comment was made.
afterCommitId
- he full commit ID of the commit that was the tip of the source branch at the time the comment was made.public void setBeforeBlobId(String beforeBlobId)
The full blob ID of the file on which you want to comment on the destination commit.
beforeBlobId
- The full blob ID of the file on which you want to comment on the destination commit.public String getBeforeBlobId()
The full blob ID of the file on which you want to comment on the destination commit.
public CommentsForPullRequest withBeforeBlobId(String beforeBlobId)
The full blob ID of the file on which you want to comment on the destination commit.
beforeBlobId
- The full blob ID of the file on which you want to comment on the destination commit.public void setAfterBlobId(String afterBlobId)
The full blob ID of the file on which you want to comment on the source commit.
afterBlobId
- The full blob ID of the file on which you want to comment on the source commit.public String getAfterBlobId()
The full blob ID of the file on which you want to comment on the source commit.
public CommentsForPullRequest withAfterBlobId(String afterBlobId)
The full blob ID of the file on which you want to comment on the source commit.
afterBlobId
- The full blob ID of the file on which you want to comment on the source commit.public void setLocation(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).
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 Location getLocation()
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 CommentsForPullRequest withLocation(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).
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> getComments()
An array of comment objects. Each comment object contains information about a comment on the pull request.
public void setComments(Collection<Comment> comments)
An array of comment objects. Each comment object contains information about a comment on the pull request.
comments
- An array of comment objects. Each comment object contains information about a comment on the pull request.public CommentsForPullRequest withComments(Comment... comments)
An array of comment objects. Each comment object contains information about a comment on the pull request.
NOTE: This method appends the values to the existing list (if any). Use
setComments(java.util.Collection)
or withComments(java.util.Collection)
if you want to override
the existing values.
comments
- An array of comment objects. Each comment object contains information about a comment on the pull request.public CommentsForPullRequest withComments(Collection<Comment> comments)
An array of comment objects. Each comment object contains information about a comment on the pull request.
comments
- An array of comment objects. Each comment object contains information about a comment on the pull request.public String toString()
toString
in class Object
Object.toString()
public CommentsForPullRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.