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
Modifier and TypeMethodDescriptiondestinationReference
(String destinationReference) The name of the branch that the pull request is merged into.mergeMetadata
(Consumer<MergeMetadata.Builder> mergeMetadata) Information about the merge state change event.mergeMetadata
(MergeMetadata mergeMetadata) Information about the merge state change event.repositoryName
(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 Details
-
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
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.Builder
avoiding the need to create one manually viaMergeMetadata.builder()
.When the
Consumer
completes,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:
-