Interface PullRequestMergedStateChangedEventMetadata.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PullRequestMergedStateChangedEventMetadata.Builder,PullRequestMergedStateChangedEventMetadata>,SdkBuilder<PullRequestMergedStateChangedEventMetadata.Builder,PullRequestMergedStateChangedEventMetadata>,SdkPojo
- Enclosing class:
- PullRequestMergedStateChangedEventMetadata
public static interface PullRequestMergedStateChangedEventMetadata.Builder extends SdkPojo, CopyableBuilder<PullRequestMergedStateChangedEventMetadata.Builder,PullRequestMergedStateChangedEventMetadata>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PullRequestMergedStateChangedEventMetadata.BuilderdestinationReference(String destinationReference)The name of the branch that the pull request is merged into.default PullRequestMergedStateChangedEventMetadata.BuildermergeMetadata(Consumer<MergeMetadata.Builder> mergeMetadata)Information about the merge state change event.PullRequestMergedStateChangedEventMetadata.BuildermergeMetadata(MergeMetadata mergeMetadata)Information about the merge state change event.PullRequestMergedStateChangedEventMetadata.BuilderrepositoryName(String repositoryName)The name of the repository where the pull request was created.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
repositoryName
PullRequestMergedStateChangedEventMetadata.Builder repositoryName(String repositoryName)
The name of the repository where the pull request was created.
- Parameters:
repositoryName- The name of the repository where the pull request was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationReference
PullRequestMergedStateChangedEventMetadata.Builder destinationReference(String destinationReference)
The name of the branch that the pull request is merged into.
- Parameters:
destinationReference- The name of the branch that the pull request is merged into.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mergeMetadata
PullRequestMergedStateChangedEventMetadata.Builder mergeMetadata(MergeMetadata mergeMetadata)
Information about the merge state change event.
- Parameters:
mergeMetadata- Information about the merge state change event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mergeMetadata
default PullRequestMergedStateChangedEventMetadata.Builder mergeMetadata(Consumer<MergeMetadata.Builder> mergeMetadata)
Information about the merge state change event.
This is a convenience method that creates an instance of theMergeMetadata.Builderavoiding the need to create one manually viaMergeMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomergeMetadata(MergeMetadata).- Parameters:
mergeMetadata- a consumer that will call methods onMergeMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
mergeMetadata(MergeMetadata)
-
-