@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PullRequest extends Object implements Serializable, Cloneable, StructuredPojo
Returns information about a pull request.
Constructor and Description |
---|
PullRequest() |
Modifier and Type | Method and Description |
---|---|
PullRequest |
clone() |
boolean |
equals(Object obj) |
List<ApprovalRule> |
getApprovalRules()
The approval rules applied to the pull request.
|
String |
getAuthorArn()
The Amazon Resource Name (ARN) of the user who created the pull request.
|
String |
getClientRequestToken()
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
Date |
getCreationDate()
The date and time the pull request was originally created, in timestamp format.
|
String |
getDescription()
The user-defined description of the pull request.
|
Date |
getLastActivityDate()
The day and time of the last user or system activity on the pull request, in timestamp format.
|
String |
getPullRequestId()
The system-generated ID of the pull request.
|
String |
getPullRequestStatus()
The status of the pull request.
|
List<PullRequestTarget> |
getPullRequestTargets()
The targets of the pull request, including the source branch and destination branch for the pull request.
|
String |
getRevisionId()
The system-generated revision ID for the pull request.
|
String |
getTitle()
The user-defined title of the pull request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApprovalRules(Collection<ApprovalRule> approvalRules)
The approval rules applied to the pull request.
|
void |
setAuthorArn(String authorArn)
The Amazon Resource Name (ARN) of the user who created the pull request.
|
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 |
setCreationDate(Date creationDate)
The date and time the pull request was originally created, in timestamp format.
|
void |
setDescription(String description)
The user-defined description of the pull request.
|
void |
setLastActivityDate(Date lastActivityDate)
The day and time of the last user or system activity on the pull request, in timestamp format.
|
void |
setPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
|
void |
setPullRequestStatus(String pullRequestStatus)
The status of the pull request.
|
void |
setPullRequestTargets(Collection<PullRequestTarget> pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
|
void |
setRevisionId(String revisionId)
The system-generated revision ID for the pull request.
|
void |
setTitle(String title)
The user-defined title of the pull request.
|
String |
toString()
Returns a string representation of this object.
|
PullRequest |
withApprovalRules(ApprovalRule... approvalRules)
The approval rules applied to the pull request.
|
PullRequest |
withApprovalRules(Collection<ApprovalRule> approvalRules)
The approval rules applied to the pull request.
|
PullRequest |
withAuthorArn(String authorArn)
The Amazon Resource Name (ARN) of the user who created the pull request.
|
PullRequest |
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.
|
PullRequest |
withCreationDate(Date creationDate)
The date and time the pull request was originally created, in timestamp format.
|
PullRequest |
withDescription(String description)
The user-defined description of the pull request.
|
PullRequest |
withLastActivityDate(Date lastActivityDate)
The day and time of the last user or system activity on the pull request, in timestamp format.
|
PullRequest |
withPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
|
PullRequest |
withPullRequestStatus(PullRequestStatusEnum pullRequestStatus)
The status of the pull request.
|
PullRequest |
withPullRequestStatus(String pullRequestStatus)
The status of the pull request.
|
PullRequest |
withPullRequestTargets(Collection<PullRequestTarget> pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
|
PullRequest |
withPullRequestTargets(PullRequestTarget... pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
|
PullRequest |
withRevisionId(String revisionId)
The system-generated revision ID for the pull request.
|
PullRequest |
withTitle(String title)
The user-defined title of 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 PullRequest withPullRequestId(String pullRequestId)
The system-generated ID of the pull request.
pullRequestId
- The system-generated ID of the pull request.public void setTitle(String title)
The user-defined title of the pull request. This title is displayed in the list of pull requests to other repository users.
title
- The user-defined title of the pull request. This title is displayed in the list of pull requests to other
repository users.public String getTitle()
The user-defined title of the pull request. This title is displayed in the list of pull requests to other repository users.
public PullRequest withTitle(String title)
The user-defined title of the pull request. This title is displayed in the list of pull requests to other repository users.
title
- The user-defined title of the pull request. This title is displayed in the list of pull requests to other
repository users.public void setDescription(String description)
The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.
description
- The user-defined description of the pull request. This description can be used to clarify what should be
reviewed and other details of the request.public String getDescription()
The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.
public PullRequest withDescription(String description)
The user-defined description of the pull request. This description can be used to clarify what should be reviewed and other details of the request.
description
- The user-defined description of the pull request. This description can be used to clarify what should be
reviewed and other details of the request.public void setLastActivityDate(Date lastActivityDate)
The day and time of the last user or system activity on the pull request, in timestamp format.
lastActivityDate
- The day and time of the last user or system activity on the pull request, in timestamp format.public Date getLastActivityDate()
The day and time of the last user or system activity on the pull request, in timestamp format.
public PullRequest withLastActivityDate(Date lastActivityDate)
The day and time of the last user or system activity on the pull request, in timestamp format.
lastActivityDate
- The day and time of the last user or system activity on the pull request, in timestamp format.public void setCreationDate(Date creationDate)
The date and time the pull request was originally created, in timestamp format.
creationDate
- The date and time the pull request was originally created, in timestamp format.public Date getCreationDate()
The date and time the pull request was originally created, in timestamp format.
public PullRequest withCreationDate(Date creationDate)
The date and time the pull request was originally created, in timestamp format.
creationDate
- The date and time the pull request was originally created, in timestamp format.public void setPullRequestStatus(String pullRequestStatus)
The status of the pull request. Pull request status can only change from OPEN
to CLOSED
.
pullRequestStatus
- The status of the pull request. Pull request status can only change from OPEN
to
CLOSED
.PullRequestStatusEnum
public String getPullRequestStatus()
The status of the pull request. Pull request status can only change from OPEN
to CLOSED
.
OPEN
to
CLOSED
.PullRequestStatusEnum
public PullRequest withPullRequestStatus(String pullRequestStatus)
The status of the pull request. Pull request status can only change from OPEN
to CLOSED
.
pullRequestStatus
- The status of the pull request. Pull request status can only change from OPEN
to
CLOSED
.PullRequestStatusEnum
public PullRequest withPullRequestStatus(PullRequestStatusEnum pullRequestStatus)
The status of the pull request. Pull request status can only change from OPEN
to CLOSED
.
pullRequestStatus
- The status of the pull request. Pull request status can only change from OPEN
to
CLOSED
.PullRequestStatusEnum
public void setAuthorArn(String authorArn)
The Amazon Resource Name (ARN) of the user who created the pull request.
authorArn
- The Amazon Resource Name (ARN) of the user who created the pull request.public String getAuthorArn()
The Amazon Resource Name (ARN) of the user who created the pull request.
public PullRequest withAuthorArn(String authorArn)
The Amazon Resource Name (ARN) of the user who created the pull request.
authorArn
- The Amazon Resource Name (ARN) of the user who created the pull request.public List<PullRequestTarget> getPullRequestTargets()
The targets of the pull request, including the source branch and destination branch for the pull request.
public void setPullRequestTargets(Collection<PullRequestTarget> pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
pullRequestTargets
- The targets of the pull request, including the source branch and destination branch for the pull request.public PullRequest withPullRequestTargets(PullRequestTarget... pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
NOTE: This method appends the values to the existing list (if any). Use
setPullRequestTargets(java.util.Collection)
or withPullRequestTargets(java.util.Collection)
if
you want to override the existing values.
pullRequestTargets
- The targets of the pull request, including the source branch and destination branch for the pull request.public PullRequest withPullRequestTargets(Collection<PullRequestTarget> pullRequestTargets)
The targets of the pull request, including the source branch and destination branch for the pull request.
pullRequestTargets
- The targets of the pull request, including the source branch and destination branch for the pull request.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 PullRequest 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 void setRevisionId(String revisionId)
The system-generated revision ID for the pull request.
revisionId
- The system-generated revision ID for the pull request.public String getRevisionId()
The system-generated revision ID for the pull request.
public PullRequest withRevisionId(String revisionId)
The system-generated revision ID for the pull request.
revisionId
- The system-generated revision ID for the pull request.public List<ApprovalRule> getApprovalRules()
The approval rules applied to the pull request.
public void setApprovalRules(Collection<ApprovalRule> approvalRules)
The approval rules applied to the pull request.
approvalRules
- The approval rules applied to the pull request.public PullRequest withApprovalRules(ApprovalRule... approvalRules)
The approval rules applied to the pull request.
NOTE: This method appends the values to the existing list (if any). Use
setApprovalRules(java.util.Collection)
or withApprovalRules(java.util.Collection)
if you want
to override the existing values.
approvalRules
- The approval rules applied to the pull request.public PullRequest withApprovalRules(Collection<ApprovalRule> approvalRules)
The approval rules applied to the pull request.
approvalRules
- The approval rules applied to the pull request.public String toString()
toString
in class Object
Object.toString()
public PullRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.