@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 will be merged into.
|
boolean |
equals(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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public 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 will be merged into. 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 will change 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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PullRequestTarget.Builder,PullRequestTarget>
public static PullRequestTarget.Builder builder()
public static Class<? extends PullRequestTarget.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.