@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PostCommentForPullRequestRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PostCommentForPullRequestRequest() |
Modifier and Type | Method and Description |
---|---|
PostCommentForPullRequestRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAfterCommitId()
The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request
when you post the comment.
|
String |
getBeforeCommitId()
The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull
request was created.
|
String |
getClientRequestToken()
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
String |
getContent()
The content of your comment on the change.
|
Location |
getLocation()
The location of the change where you want to post your comment.
|
String |
getPullRequestId()
The system-generated ID of the pull request.
|
String |
getRepositoryName()
The name of the repository where you want to post a comment on a pull request.
|
int |
hashCode() |
void |
setAfterCommitId(String afterCommitId)
The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request
when you post the comment.
|
void |
setBeforeCommitId(String beforeCommitId)
The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull
request was created.
|
void |
setClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
void |
setContent(String content)
The content of your comment on the change.
|
void |
setLocation(Location location)
The location of the change where you want to post your comment.
|
void |
setPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
|
void |
setRepositoryName(String repositoryName)
The name of the repository where you want to post a comment on a pull request.
|
String |
toString()
Returns a string representation of this object.
|
PostCommentForPullRequestRequest |
withAfterCommitId(String afterCommitId)
The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request
when you post the comment.
|
PostCommentForPullRequestRequest |
withBeforeCommitId(String beforeCommitId)
The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull
request was created.
|
PostCommentForPullRequestRequest |
withClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
PostCommentForPullRequestRequest |
withContent(String content)
The content of your comment on the change.
|
PostCommentForPullRequestRequest |
withLocation(Location location)
The location of the change where you want to post your comment.
|
PostCommentForPullRequestRequest |
withPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
|
PostCommentForPullRequestRequest |
withRepositoryName(String repositoryName)
The name of the repository where you want to post a comment on a pull request.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setPullRequestId(String pullRequestId)
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
pullRequestId
- The system-generated ID of the pull request. To get this ID, use ListPullRequests.public String getPullRequestId()
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
public PostCommentForPullRequestRequest withPullRequestId(String pullRequestId)
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
pullRequestId
- The system-generated ID of the pull request. To get this ID, use ListPullRequests.public void setRepositoryName(String repositoryName)
The name of the repository where you want to post a comment on a pull request.
repositoryName
- The name of the repository where you want to post a comment on a pull request.public String getRepositoryName()
The name of the repository where you want to post a comment on a pull request.
public PostCommentForPullRequestRequest withRepositoryName(String repositoryName)
The name of the repository where you want to post a comment on a pull request.
repositoryName
- The name of the repository where you want to post a comment on a pull request.public void setBeforeCommitId(String beforeCommitId)
The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
beforeCommitId
- The full commit ID of the commit in the destination branch that was the tip of the branch at the time the
pull request was created.public String getBeforeCommitId()
The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
public PostCommentForPullRequestRequest withBeforeCommitId(String beforeCommitId)
The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.
beforeCommitId
- The full commit ID of the commit in the destination branch that was the tip of the branch at the time the
pull request was created.public void setAfterCommitId(String afterCommitId)
The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.
afterCommitId
- The full commit ID of the commit in the source branch that is the current tip of the branch for the pull
request when you post the comment.public String getAfterCommitId()
The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.
public PostCommentForPullRequestRequest withAfterCommitId(String afterCommitId)
The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.
afterCommitId
- The full commit ID of the commit in the source branch that is the current tip of the branch for the pull
request when you post the comment.public void setLocation(Location location)
The location of the change where you want to post your comment. If no location is provided, the comment is posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
location
- The location of the change where you want to post your comment. If no location is provided, the comment is
posted as a general comment on the pull request difference between the before commit ID and the after
commit ID.public Location getLocation()
The location of the change where you want to post your comment. If no location is provided, the comment is posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
public PostCommentForPullRequestRequest withLocation(Location location)
The location of the change where you want to post your comment. If no location is provided, the comment is posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
location
- The location of the change where you want to post your comment. If no location is provided, the comment is
posted as a general comment on the pull request difference between the before commit ID and the after
commit ID.public void setContent(String content)
The content of your comment on the change.
content
- The content of your comment on the change.public String getContent()
The content of your comment on the change.
public PostCommentForPullRequestRequest withContent(String content)
The content of your comment on the change.
content
- The content of your comment on the change.public void setClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
clientRequestToken
- A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot
be repeated with a changed parameter. If a request is received with the same parameters and a token is
included, the request returns information about the initial request that used that token.public String getClientRequestToken()
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
public PostCommentForPullRequestRequest withClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
clientRequestToken
- A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot
be repeated with a changed parameter. If a request is received with the same parameters and a token is
included, the request returns information about the initial request that used that token.public String toString()
toString
in class Object
Object.toString()
public PostCommentForPullRequestRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()