@Generated(value="software.amazon.awssdk:codegen") public final class PullRequestTarget extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PullRequestTarget.Builder,PullRequestTarget>
Returns information about a pull request target.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PullRequestTarget.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PullRequestTarget.Builder |
builder() |
String |
destinationCommit()
The full commit ID that is the tip of the destination branch.
|
String |
destinationReference()
The branch of the repository where the pull request changes are merged.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
mergeBase()
The commit ID of the most recent commit that the source branch and the destination branch have in common.
|
MergeMetadata |
mergeMetadata()
Returns metadata about the state of the merge, including whether the merge has been made.
|
String |
repositoryName()
The name of the repository that contains the pull request source and destination branches.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PullRequestTarget.Builder> |
serializableBuilderClass() |
String |
sourceCommit()
The full commit ID of the tip of the source branch used to create the pull request.
|
String |
sourceReference()
The branch of the repository that contains the changes for the pull request.
|
PullRequestTarget.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String repositoryName()
The name of the repository that contains the pull request source and destination branches.
public String sourceReference()
The branch of the repository that contains the changes for the pull request. Also known as the source branch.
public String destinationReference()
The branch of the repository where the pull request changes are merged. Also known as the destination branch.
public 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.
public 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.
public String mergeBase()
The commit ID of the most recent commit that the source branch and the destination branch have in common.
public MergeMetadata mergeMetadata()
Returns metadata about the state of the merge, including whether the merge has been made.
public PullRequestTarget.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PullRequestTarget.Builder,PullRequestTarget>public static PullRequestTarget.Builder builder()
public static Class<? extends PullRequestTarget.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.