Interface UpdateMemoryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateMemoryRequest.Builder,,UpdateMemoryRequest> OpenSearchMemoryRequest.Builder,SdkBuilder<UpdateMemoryRequest.Builder,,UpdateMemoryRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateMemoryRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the actor that the memory must belong to.Replacement memory text.The ID of the memory to update.The metadata tags to apply.metadataMode(String metadataMode) Howmetadatacombines with what is stored.metadataMode(MetadataMode metadataMode) Howmetadatacombines with what is stored.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The ID of the space that owns the memory, for examplesp-02864597b164.strategyName(String strategyName) The name of the strategy that the memory must belong to.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opensearchmemory.model.OpenSearchMemoryRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
spaceId
The ID of the space that owns the memory, for example
sp-02864597b164.- Parameters:
spaceId- The ID of the space that owns the memory, for examplesp-02864597b164.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memoryId
The ID of the memory to update.
- Parameters:
memoryId- The ID of the memory to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
Replacement memory text. Supplying it re-embeds the memory. Omit to leave the text unchanged.
- Parameters:
content- Replacement memory text. Supplying it re-embeds the memory. Omit to leave the text unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
The metadata tags to apply. By default this map replaces the stored metadata, and any key not present is removed. Set
metadataModetoMERGEto keep the keys you don't supply. Limits apply to the resulting metadata, not to the request. Keys that begin withx-amz-and the keydocumentS3Sourceare reserved: a request that sets one fails withValidationException.A space can use at most 50 distinct metadata keys across all of its events and memories. A request that would add a key beyond that fails with
ValidationException. Reuse an existing key instead.- Parameters:
metadata- The metadata tags to apply. By default this map replaces the stored metadata, and any key not present is removed. SetmetadataModetoMERGEto keep the keys you don't supply. Limits apply to the resulting metadata, not to the request. Keys that begin withx-amz-and the keydocumentS3Sourceare reserved: a request that sets one fails withValidationException.A space can use at most 50 distinct metadata keys across all of its events and memories. A request that would add a key beyond that fails with
ValidationException. Reuse an existing key instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataMode
How
metadatacombines with what is stored. The default isREPLACE.- Parameters:
metadataMode- Howmetadatacombines with what is stored. The default isREPLACE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadataMode
How
metadatacombines with what is stored. The default isREPLACE.- Parameters:
metadataMode- Howmetadatacombines with what is stored. The default isREPLACE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actorId
The ID of the actor that the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails with
ResourceNotFoundException, as if the memory did not exist.- Parameters:
actorId- The ID of the actor that the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails withResourceNotFoundException, as if the memory did not exist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
strategyName
The name of the strategy that the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails with
ResourceNotFoundException, as if the memory did not exist.- Parameters:
strategyName- The name of the strategy that the memory must belong to. Omit it to skip this check. If it doesn't match the stored memory, the call fails withResourceNotFoundException, as if the memory did not exist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateMemoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateMemoryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-