Interface EventPayload.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EventPayload.Builder,,EventPayload> SdkBuilder<EventPayload.Builder,,EventPayload> SdkPojo
- Enclosing class:
EventPayload
-
Method Summary
Modifier and TypeMethodDescriptiondefault EventPayload.Builderblob(Consumer<BlobPayload.Builder> blob) A document stored in Amazon S3, such as a PDF.blob(BlobPayload blob) A document stored in Amazon S3, such as a PDF.default EventPayload.Builderconversational(Consumer<ConversationalPayload.Builder> conversational) Conversation turns.conversational(ConversationalPayload conversational) Conversation turns.default EventPayload.BuilderstructuredData(Consumer<StructuredDataPayload.Builder> structuredData) Structured (non-conversational) content, for example a deployment result that an agent should remember.structuredData(StructuredDataPayload structuredData) Structured (non-conversational) content, for example a deployment result that an agent should remember.Methods 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
-
conversational
Conversation turns.
- Parameters:
conversational- Conversation turns.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversational
Conversation turns.
This is a convenience method that creates an instance of theConversationalPayload.Builderavoiding the need to create one manually viaConversationalPayload.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconversational(ConversationalPayload).- Parameters:
conversational- a consumer that will call methods onConversationalPayload.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
structuredData
Structured (non-conversational) content, for example a deployment result that an agent should remember.
- Parameters:
structuredData- Structured (non-conversational) content, for example a deployment result that an agent should remember.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
structuredData
Structured (non-conversational) content, for example a deployment result that an agent should remember.
This is a convenience method that creates an instance of theStructuredDataPayload.Builderavoiding the need to create one manually viaStructuredDataPayload.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostructuredData(StructuredDataPayload).- Parameters:
structuredData- a consumer that will call methods onStructuredDataPayload.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
blob
A document stored in Amazon S3, such as a PDF.
- Parameters:
blob- A document stored in Amazon S3, such as a PDF.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blob
A document stored in Amazon S3, such as a PDF.
This is a convenience method that creates an instance of theBlobPayload.Builderavoiding the need to create one manually viaBlobPayload.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toblob(BlobPayload).- Parameters:
blob- a consumer that will call methods onBlobPayload.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-