Interface CreateMemoryResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateMemoryResponse.Builder,,CreateMemoryResponse> OpenSearchMemoryResponse.Builder,SdkBuilder<CreateMemoryResponse.Builder,,CreateMemoryResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateMemoryResponse
@Mutable
@NotThreadSafe
public static interface CreateMemoryResponse.Builder
extends OpenSearchMemoryResponse.Builder, SdkPojo, CopyableBuilder<CreateMemoryResponse.Builder,CreateMemoryResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateMemoryResponse.Buildermemory(Consumer<CreateMemoryDetail.Builder> memory) The memory, identified but not yet indexed.memory(CreateMemoryDetail memory) The memory, identified but not yet indexed.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
-
memory
The memory, identified but not yet indexed.
- Parameters:
memory- The memory, identified but not yet indexed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memory
The memory, identified but not yet indexed.
This is a convenience method that creates an instance of theCreateMemoryDetail.Builderavoiding the need to create one manually viaCreateMemoryDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomemory(CreateMemoryDetail).- Parameters:
memory- a consumer that will call methods onCreateMemoryDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-