Class PullRequestTarget
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<PullRequestTarget.Builder,
PullRequestTarget>
Returns information about a pull request target.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PullRequestTarget.Builder
builder()
final String
The full commit ID that is the tip of the destination branch.final String
The branch of the repository where the pull request changes are merged.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
The commit ID of the most recent commit that the source branch and the destination branch have in common.final MergeMetadata
Returns metadata about the state of the merge, including whether the merge has been made.final String
The name of the repository that contains the pull request source and destination branches.static Class
<? extends PullRequestTarget.Builder> final String
The full commit ID of the tip of the source branch used to create the pull request.final String
The branch of the repository that contains the changes for the pull request.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
repositoryName
The name of the repository that contains the pull request source and destination branches.
- Returns:
- The name of the repository that contains the pull request source and destination branches.
-
sourceReference
The branch of the repository that contains the changes for the pull request. Also known as the source branch.
- Returns:
- The branch of the repository that contains the changes for the pull request. Also known as the source branch.
-
destinationReference
The branch of the repository where the pull request changes are merged. Also known as the destination branch.
- Returns:
- The branch of the repository where the pull request changes are merged. Also known as the destination branch.
-
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.
- Returns:
- 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.
-
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.
- Returns:
- 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.
-
mergeBase
The commit ID of the most recent commit that the source branch and the destination branch have in common.
- Returns:
- The commit ID of the most recent commit that the source branch and the destination branch have in common.
-
mergeMetadata
Returns metadata about the state of the merge, including whether the merge has been made.
- Returns:
- Returns metadata about the state of the merge, including whether the merge has been made.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<PullRequestTarget.Builder,
PullRequestTarget> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-