Interface PayloadPart.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<PayloadPart.Builder,,- PayloadPart> - SdkBuilder<PayloadPart.Builder,,- PayloadPart> - SdkPojo
- All Known Subinterfaces:
- DefaultChunk.Builder
- Enclosing class:
- PayloadPart
@Mutable
@NotThreadSafe
public static interface PayloadPart.Builder
extends SdkPojo, CopyableBuilder<PayloadPart.Builder,PayloadPart> 
- 
Method SummaryModifier 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
bytesA 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.
 
- 
attributionContains 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.
 
- 
attributionContains 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 on- Attribution.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-