Interface PayloadPart.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PayloadPart.Builder,,PayloadPart> SdkBuilder<PayloadPart.Builder,,PayloadPart> SdkPojo
- All Known Subinterfaces:
DefaultChunk.Builder
- Enclosing class:
PayloadPart
public static interface PayloadPart.Builder
extends SdkPojo, CopyableBuilder<PayloadPart.Builder,PayloadPart>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PayloadPart.Builderattribution(Consumer<Attribution.Builder> attribution) Contains citations for a part of an agent response.attribution(Attribution attribution) Contains citations for a part of an agent response.A part of the agent response in bytes.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, sdkFields
-
Method Details
-
attribution
Contains citations for a part of an agent response.
- Parameters:
attribution- Contains citations for a part of an agent response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attribution
Contains citations for a part of an agent response.
This is a convenience method that creates an instance of theAttribution.Builderavoiding the need to create one manually viaAttribution.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattribution(Attribution).- Parameters:
attribution- a consumer that will call methods onAttribution.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bytes
A part of the agent response in bytes.
- Parameters:
bytes- A part of the agent response in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-