Class PayloadPart
java.lang.Object
software.amazon.awssdk.services.bedrockagentruntime.model.PayloadPart
- All Implemented Interfaces:
Serializable,SdkPojo,ResponseStream,ToCopyableBuilder<PayloadPart.Builder,PayloadPart>
- Direct Known Subclasses:
DefaultChunk
@Generated("software.amazon.awssdk:codegen")
public class PayloadPart
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<PayloadPart.Builder,PayloadPart>, ResponseStream
Contains a part of an agent response and citations for it.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static classNested classes/interfaces inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.ResponseStream
ResponseStream.EventType -
Field Summary
Fields inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.ResponseStream
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(InvokeAgentResponseHandler.Visitor visitor) Calls the appropriate visit method depending on the subtype ofPayloadPart.final AttributionContains citations for a part of an agent response.static PayloadPart.Builderbuilder()final SdkBytesbytes()A part of the agent response in bytes.final PayloadPartcopy(Consumer<? super PayloadPart.Builder> modifier) final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends PayloadPart.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.ResponseStream
sdkEventType
-
Constructor Details
-
PayloadPart
-
-
Method Details
-
attribution
Contains citations for a part of an agent response.
- Returns:
- Contains citations for a part of an agent response.
-
bytes
A part of the agent response in bytes.
- Returns:
- A part of the agent response in bytes.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<PayloadPart.Builder,PayloadPart>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
copy
- Specified by:
copyin interfaceToCopyableBuilder<PayloadPart.Builder,PayloadPart>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
Calls the appropriate visit method depending on the subtype ofPayloadPart.- Specified by:
acceptin interfaceResponseStream- Parameters:
visitor- Visitor to invoke.
-