Interface CreateEventRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockAgentCoreRequest.Builder
,Buildable
,CopyableBuilder<CreateEventRequest.Builder,
,CreateEventRequest> SdkBuilder<CreateEventRequest.Builder,
,CreateEventRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateEventRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the actor associated with this event.default CreateEventRequest.Builder
branch
(Consumer<Branch.Builder> branch) The branch information for this event.The branch information for this event.clientToken
(String clientToken) A unique, case-sensitive identifier to ensure that the operation completes no more than one time.eventTimestamp
(Instant eventTimestamp) The timestamp when the event occurred.The identifier of the memory store in which to create the event.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.payload
(Collection<PayloadType> payload) The content payload of the event.payload
(Consumer<PayloadType.Builder>... payload) The content payload of the event.payload
(PayloadType... payload) The content payload of the event.The identifier of the session in which this event occurs.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
memoryId
The identifier of the memory store in which to create the event.
- Parameters:
memoryId
- The identifier of the memory store in which to create the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actorId
The identifier of the actor associated with this event. An actor represents an entity that participates in sessions and generates events.
- Parameters:
actorId
- The identifier of the actor associated with this event. An actor represents an entity that participates in sessions and generates events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of the session in which this event occurs. A session represents a sequence of related events.
- Parameters:
sessionId
- The identifier of the session in which this event occurs. A session represents a sequence of related events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventTimestamp
The timestamp when the event occurred. If not specified, the current time is used.
- Parameters:
eventTimestamp
- The timestamp when the event occurred. If not specified, the current time is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The content payload of the event. This can include conversational data or binary content.
- Parameters:
payload
- The content payload of the event. This can include conversational data or binary content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The content payload of the event. This can include conversational data or binary content.
- Parameters:
payload
- The content payload of the event. This can include conversational data or binary content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
The content payload of the event. This can include conversational data or binary content.
This is a convenience method that creates an instance of thePayloadType.Builder
avoiding the need to create one manually viaPayloadType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topayload(List<PayloadType>)
.- Parameters:
payload
- a consumer that will call methods onPayloadType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
branch
The branch information for this event. Branches allow for organizing events into different conversation threads or paths.
- Parameters:
branch
- The branch information for this event. Branches allow for organizing events into different conversation threads or paths.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branch
The branch information for this event. Branches allow for organizing events into different conversation threads or paths.
This is a convenience method that creates an instance of theBranch.Builder
avoiding the need to create one manually viaBranch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobranch(Branch)
.- Parameters:
branch
- a consumer that will call methods onBranch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
CreateEventRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateEventRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-