Class PayloadPart.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.PayloadPart.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo,PayloadPart.Builder,Buildable,CopyableBuilder<PayloadPart.Builder,PayloadPart>,SdkBuilder<PayloadPart.Builder,PayloadPart>
- Enclosing class:
- PayloadPart
protected static class PayloadPart.BuilderImpl extends Object implements PayloadPart.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(PayloadPart model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PayloadPart.Builderattribution(Attribution attribution)Contains citations for a part of an agent response.PayloadPartbuild()PayloadPart.Builderbytes(SdkBytes bytes)A part of the agent response in bytes.Attribution.BuildergetAttribution()ByteBuffergetBytes()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()voidsetAttribution(software.amazon.awssdk.services.bedrockagentruntime.model.Attribution.BuilderImpl attribution)voidsetBytes(ByteBuffer bytes)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.PayloadPart.Builder
attribution
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(PayloadPart model)
-
-
Method Detail
-
getAttribution
public final Attribution.Builder getAttribution()
-
setAttribution
public final void setAttribution(software.amazon.awssdk.services.bedrockagentruntime.model.Attribution.BuilderImpl attribution)
-
attribution
public final PayloadPart.Builder attribution(Attribution attribution)
Description copied from interface:PayloadPart.BuilderContains citations for a part of an agent response.
- Specified by:
attributionin interfacePayloadPart.Builder- 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.
-
getBytes
public final ByteBuffer getBytes()
-
setBytes
public final void setBytes(ByteBuffer bytes)
-
bytes
public final PayloadPart.Builder bytes(SdkBytes bytes)
Description copied from interface:PayloadPart.BuilderA part of the agent response in bytes.
- Specified by:
bytesin interfacePayloadPart.Builder- 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.
-
build
public PayloadPart build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<PayloadPart.Builder,PayloadPart>
-
sdkFieldNameToField
public Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-