Interface SearchEventsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<SearchEventsResponse.Builder,,SearchEventsResponse> OpenSearchMemoryResponse.Builder,SdkBuilder<SearchEventsResponse.Builder,,SearchEventsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchEventsResponse
-
Method Summary
Modifier and TypeMethodDescriptionevents(Collection<EventSearchSummary> events) The matching event chunks, in the ordersortrequests, or most relevant first when it has none.events(Consumer<EventSearchSummary.Builder>... events) The matching event chunks, in the ordersortrequests, or most relevant first when it has none.events(EventSearchSummary... events) The matching event chunks, in the ordersortrequests, or most relevant first when it has none.The token for the next set of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opensearchmemory.model.OpenSearchMemoryResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
events
The matching event chunks, in the order
sortrequests, or most relevant first when it has none. Empty when nothing matches. Each result is the matching chunk of an event. CallGetEventfor the whole event.- Parameters:
events- The matching event chunks, in the ordersortrequests, or most relevant first when it has none. Empty when nothing matches. Each result is the matching chunk of an event. CallGetEventfor the whole event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
The matching event chunks, in the order
sortrequests, or most relevant first when it has none. Empty when nothing matches. Each result is the matching chunk of an event. CallGetEventfor the whole event.- Parameters:
events- The matching event chunks, in the ordersortrequests, or most relevant first when it has none. Empty when nothing matches. Each result is the matching chunk of an event. CallGetEventfor the whole event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
The matching event chunks, in the order
This is a convenience method that creates an instance of thesortrequests, or most relevant first when it has none. Empty when nothing matches. Each result is the matching chunk of an event. CallGetEventfor the whole event.EventSearchSummary.Builderavoiding the need to create one manually viaEventSearchSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevents(List<EventSearchSummary>).- Parameters:
events- a consumer that will call methods onEventSearchSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token for the next set of results. Absent when there are no more results.
- Parameters:
nextToken- The token for the next set of results. Absent when there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-