Interface ListMemoriesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListMemoriesResponse.Builder,,ListMemoriesResponse> OpenSearchMemoryResponse.Builder,SdkBuilder<ListMemoriesResponse.Builder,,ListMemoriesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListMemoriesResponse
@Mutable
@NotThreadSafe
public static interface ListMemoriesResponse.Builder
extends OpenSearchMemoryResponse.Builder, SdkPojo, CopyableBuilder<ListMemoriesResponse.Builder,ListMemoriesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmemories(Collection<MemoryListSummary> memories) The memories, in the requested order.memories(Consumer<MemoryListSummary.Builder>... memories) The memories, in the requested order.memories(MemoryListSummary... memories) The memories, in the requested order.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 memories, in the requested order. Empty when there are none.
- Parameters:
memories- The memories, in the requested order. Empty when there are none.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memories
The memories, in the requested order. Empty when there are none.
- Parameters:
memories- The memories, in the requested order. Empty when there are none.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memories
The memories, in the requested order. Empty when there are none.
This is a convenience method that creates an instance of theMemoryListSummary.Builderavoiding the need to create one manually viaMemoryListSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemories(List<MemoryListSummary>).- Parameters:
memories- a consumer that will call methods onMemoryListSummary.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.
-