Interface SearchMemoriesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<SearchMemoriesResponse.Builder,,SearchMemoriesResponse> OpenSearchMemoryResponse.Builder,SdkBuilder<SearchMemoriesResponse.Builder,,SearchMemoriesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchMemoriesResponse
@Mutable
@NotThreadSafe
public static interface SearchMemoriesResponse.Builder
extends OpenSearchMemoryResponse.Builder, SdkPojo, CopyableBuilder<SearchMemoriesResponse.Builder,SearchMemoriesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmemories(Collection<MemorySearchSummary> memories) The matching memories, in the ordersortrequests, or most relevant first when it has none.memories(Consumer<MemorySearchSummary.Builder>... memories) The matching memories, in the ordersortrequests, or most relevant first when it has none.memories(MemorySearchSummary... memories) The matching memories, 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
-
memories
The matching memories, in the order
sortrequests, or most relevant first when it has none. Empty when nothing matches.- Parameters:
memories- The matching memories, in the ordersortrequests, or most relevant first when it has none. Empty when nothing matches.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memories
The matching memories, in the order
sortrequests, or most relevant first when it has none. Empty when nothing matches.- Parameters:
memories- The matching memories, in the ordersortrequests, or most relevant first when it has none. Empty when nothing matches.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memories
The matching memories, 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.MemorySearchSummary.Builderavoiding the need to create one manually viaMemorySearchSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemories(List<MemorySearchSummary>).- Parameters:
memories- a consumer that will call methods onMemorySearchSummary.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.
-