Interface DescribePullRequestEventsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeCommitResponse.Builder,CopyableBuilder<DescribePullRequestEventsResponse.Builder,,DescribePullRequestEventsResponse> SdkBuilder<DescribePullRequestEventsResponse.Builder,,DescribePullRequestEventsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribePullRequestEventsResponse
public static interface DescribePullRequestEventsResponse.Builder
extends CodeCommitResponse.Builder, SdkPojo, CopyableBuilder<DescribePullRequestEventsResponse.Builder,DescribePullRequestEventsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionAn enumeration token that can be used in a request to return the next batch of the results.pullRequestEvents(Collection<PullRequestEvent> pullRequestEvents) Information about the pull request events.pullRequestEvents(Consumer<PullRequestEvent.Builder>... pullRequestEvents) Information about the pull request events.pullRequestEvents(PullRequestEvent... pullRequestEvents) Information about the pull request events.Methods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
pullRequestEvents
DescribePullRequestEventsResponse.Builder pullRequestEvents(Collection<PullRequestEvent> pullRequestEvents) Information about the pull request events.
- Parameters:
pullRequestEvents- Information about the pull request events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pullRequestEvents
Information about the pull request events.
- Parameters:
pullRequestEvents- Information about the pull request events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pullRequestEvents
DescribePullRequestEventsResponse.Builder pullRequestEvents(Consumer<PullRequestEvent.Builder>... pullRequestEvents) Information about the pull request events.
This is a convenience method that creates an instance of thePullRequestEvent.Builderavoiding the need to create one manually viaPullRequestEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topullRequestEvents(List<PullRequestEvent>).- Parameters:
pullRequestEvents- a consumer that will call methods onPullRequestEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
An enumeration token that can be used in a request to return the next batch of the results.
- Parameters:
nextToken- An enumeration token that can be used in a request to return the next batch of the results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-