Class PullRequestTarget
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PullRequestTarget.Builder,PullRequestTarget>
Returns information about a pull request target.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PullRequestTarget.Builderbuilder()final StringThe full commit ID that is the tip of the destination branch.final StringThe branch of the repository where the pull request changes are merged.final booleanfinal booleanequalsBySdkFields(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 inthashCode()final StringThe commit ID of the most recent commit that the source branch and the destination branch have in common.final MergeMetadataReturns metadata about the state of the merge, including whether the merge has been made.final StringThe name of the repository that contains the pull request source and destination branches.static Class<? extends PullRequestTarget.Builder> final StringThe full commit ID of the tip of the source branch used to create the pull request.final StringThe 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 StringtoString()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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PullRequestTarget.Builder,PullRequestTarget> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-