Interface IngestDataRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentCoreRequest.Builder,Buildable,CopyableBuilder<IngestDataRequest.Builder,,IngestDataRequest> SdkBuilder<IngestDataRequest.Builder,,IngestDataRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
IngestDataRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the actor associated with this content.clientToken(String clientToken) A unique, case-sensitive identifier to ensure that the operation completes no more than one time.contentTimestamp(Instant contentTimestamp) The timestamp of when the content occurred.default IngestDataRequest.BuilderextractionConfig(Consumer<ExtractionConfig.Builder> extractionConfig) The extraction configuration for long-term memory records.extractionConfig(ExtractionConfig extractionConfig) The extraction configuration for long-term memory records.The identifier of the AgentCore Memory resource to ingest content into.metadata(Map<String, MetadataValue> metadata) The key-value metadata to attach to the content.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The identifier of the session that the content belongs to.default IngestDataRequest.Buildersource(Consumer<ContentSource.Builder> source) The content to ingest.source(ContentSource source) The content to ingest.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
memoryId
The identifier of the AgentCore Memory resource to ingest content into.
- Parameters:
memoryId- The identifier of the AgentCore Memory resource to ingest content into.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The content to ingest. Only inline content is supported.
- Parameters:
source- The content to ingest. Only inline content is supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The content to ingest. Only inline content is supported.
This is a convenience method that creates an instance of theContentSource.Builderavoiding the need to create one manually viaContentSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(ContentSource).- Parameters:
source- a consumer that will call methods onContentSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentTimestamp
The timestamp of when the content occurred.
- Parameters:
contentTimestamp- The timestamp of when the content occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actorId
The identifier of the actor associated with this content. An actor represents an entity that participates in sessions and generates content.
- Parameters:
actorId- The identifier of the actor associated with this content. An actor represents an entity that participates in sessions and generates content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of the session that the content belongs to. If not provided, a session identifier is generated and returned in the response.
- Parameters:
sessionId- The identifier of the session that the content belongs to. If not provided, a session identifier is generated and returned in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extractionConfig
The extraction configuration for long-term memory records. Use this parameter to specify namespace variable keys and their values for namespace substitution during extraction.
- Parameters:
extractionConfig- The extraction configuration for long-term memory records. Use this parameter to specify namespace variable keys and their values for namespace substitution during extraction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
extractionConfig
default IngestDataRequest.Builder extractionConfig(Consumer<ExtractionConfig.Builder> extractionConfig) The extraction configuration for long-term memory records. Use this parameter to specify namespace variable keys and their values for namespace substitution during extraction.
This is a convenience method that creates an instance of theExtractionConfig.Builderavoiding the need to create one manually viaExtractionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toextractionConfig(ExtractionConfig).- Parameters:
extractionConfig- a consumer that will call methods onExtractionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
The key-value metadata to attach to the content.
- Parameters:
metadata- The key-value metadata to attach to the content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, AgentCore ignores the request, but does not return an error.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, AgentCore ignores the request, but does not return an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
IngestDataRequest.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
IngestDataRequest.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.
-