@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PullRequestTarget extends Object implements Serializable, Cloneable, StructuredPojo
Returns information about a pull request target.
Constructor and Description |
---|
PullRequestTarget() |
Modifier and Type | Method and Description |
---|---|
PullRequestTarget |
clone() |
boolean |
equals(Object obj) |
String |
getDestinationCommit()
The full commit ID that is the tip of the destination branch.
|
String |
getDestinationReference()
The branch of the repository where the pull request changes are merged.
|
String |
getMergeBase()
The commit ID of the most recent commit that the source branch and the destination branch have in common.
|
MergeMetadata |
getMergeMetadata()
Returns metadata about the state of the merge, including whether the merge has been made.
|
String |
getRepositoryName()
The name of the repository that contains the pull request source and destination branches.
|
String |
getSourceCommit()
The full commit ID of the tip of the source branch used to create the pull request.
|
String |
getSourceReference()
The branch of the repository that contains the changes for the pull request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDestinationCommit(String destinationCommit)
The full commit ID that is the tip of the destination branch.
|
void |
setDestinationReference(String destinationReference)
The branch of the repository where the pull request changes are merged.
|
void |
setMergeBase(String mergeBase)
The commit ID of the most recent commit that the source branch and the destination branch have in common.
|
void |
setMergeMetadata(MergeMetadata mergeMetadata)
Returns metadata about the state of the merge, including whether the merge has been made.
|
void |
setRepositoryName(String repositoryName)
The name of the repository that contains the pull request source and destination branches.
|
void |
setSourceCommit(String sourceCommit)
The full commit ID of the tip of the source branch used to create the pull request.
|
void |
setSourceReference(String sourceReference)
The branch of the repository that contains the changes for the pull request.
|
String |
toString()
Returns a string representation of this object.
|
PullRequestTarget |
withDestinationCommit(String destinationCommit)
The full commit ID that is the tip of the destination branch.
|
PullRequestTarget |
withDestinationReference(String destinationReference)
The branch of the repository where the pull request changes are merged.
|
PullRequestTarget |
withMergeBase(String mergeBase)
The commit ID of the most recent commit that the source branch and the destination branch have in common.
|
PullRequestTarget |
withMergeMetadata(MergeMetadata mergeMetadata)
Returns metadata about the state of the merge, including whether the merge has been made.
|
PullRequestTarget |
withRepositoryName(String repositoryName)
The name of the repository that contains the pull request source and destination branches.
|
PullRequestTarget |
withSourceCommit(String sourceCommit)
The full commit ID of the tip of the source branch used to create the pull request.
|
PullRequestTarget |
withSourceReference(String sourceReference)
The branch of the repository that contains the changes for the pull request.
|
public void setRepositoryName(String repositoryName)
The name of the repository that contains the pull request source and destination branches.
repositoryName
- The name of the repository that contains the pull request source and destination branches.public String getRepositoryName()
The name of the repository that contains the pull request source and destination branches.
public PullRequestTarget withRepositoryName(String repositoryName)
The name of the repository that contains the pull request source and destination branches.
repositoryName
- The name of the repository that contains the pull request source and destination branches.public void setSourceReference(String sourceReference)
The branch of the repository that contains the changes for the pull request. Also known as the source branch.
sourceReference
- The branch of the repository that contains the changes for the pull request. Also known as the source
branch.public String getSourceReference()
The branch of the repository that contains the changes for the pull request. Also known as the source branch.
public PullRequestTarget withSourceReference(String sourceReference)
The branch of the repository that contains the changes for the pull request. Also known as the source branch.
sourceReference
- The branch of the repository that contains the changes for the pull request. Also known as the source
branch.public void setDestinationReference(String destinationReference)
The branch of the repository where the pull request changes are merged. Also known as the destination branch.
destinationReference
- The branch of the repository where the pull request changes are merged. Also known as the destination
branch.public String getDestinationReference()
The branch of the repository where the pull request changes are merged. Also known as the destination branch.
public PullRequestTarget withDestinationReference(String destinationReference)
The branch of the repository where the pull request changes are merged. Also known as the destination branch.
destinationReference
- The branch of the repository where the pull request changes are merged. Also known as the destination
branch.public void setDestinationCommit(String destinationCommit)
The full commit ID that is the tip of the destination branch. This is the commit where the pull request was or will be merged.
destinationCommit
- The full commit ID that is the tip of the destination branch. This is the commit where the pull request
was or will be merged.public String getDestinationCommit()
The full commit ID that is the tip of the destination branch. This is the commit where the pull request was or will be merged.
public PullRequestTarget withDestinationCommit(String destinationCommit)
The full commit ID that is the tip of the destination branch. This is the commit where the pull request was or will be merged.
destinationCommit
- The full commit ID that is the tip of the destination branch. This is the commit where the pull request
was or will be merged.public void setSourceCommit(String sourceCommit)
The full commit ID of the tip of the source branch used to create the pull request. If the pull request branch is updated by a push while the pull request is open, the commit ID changes to reflect the new tip of the branch.
sourceCommit
- The full commit ID of the tip of the source branch used to create the pull request. If the pull request
branch is updated by a push while the pull request is open, the commit ID changes to reflect the new tip
of the branch.public String getSourceCommit()
The full commit ID of the tip of the source branch used to create the pull request. If the pull request branch is updated by a push while the pull request is open, the commit ID changes to reflect the new tip of the branch.
public PullRequestTarget withSourceCommit(String sourceCommit)
The full commit ID of the tip of the source branch used to create the pull request. If the pull request branch is updated by a push while the pull request is open, the commit ID changes to reflect the new tip of the branch.
sourceCommit
- The full commit ID of the tip of the source branch used to create the pull request. If the pull request
branch is updated by a push while the pull request is open, the commit ID changes to reflect the new tip
of the branch.public void setMergeBase(String mergeBase)
The commit ID of the most recent commit that the source branch and the destination branch have in common.
mergeBase
- The commit ID of the most recent commit that the source branch and the destination branch have in common.public String getMergeBase()
The commit ID of the most recent commit that the source branch and the destination branch have in common.
public PullRequestTarget withMergeBase(String mergeBase)
The commit ID of the most recent commit that the source branch and the destination branch have in common.
mergeBase
- The commit ID of the most recent commit that the source branch and the destination branch have in common.public void setMergeMetadata(MergeMetadata mergeMetadata)
Returns metadata about the state of the merge, including whether the merge has been made.
mergeMetadata
- Returns metadata about the state of the merge, including whether the merge has been made.public MergeMetadata getMergeMetadata()
Returns metadata about the state of the merge, including whether the merge has been made.
public PullRequestTarget withMergeMetadata(MergeMetadata mergeMetadata)
Returns metadata about the state of the merge, including whether the merge has been made.
mergeMetadata
- Returns metadata about the state of the merge, including whether the merge has been made.public String toString()
toString
in class Object
Object.toString()
public PullRequestTarget clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.