Class DefaultChunk
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.PayloadPart
-
- software.amazon.awssdk.services.bedrockagentruntime.model.responsestream.DefaultChunk
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ResponseStream
,ToCopyableBuilder<PayloadPart.Builder,PayloadPart>
@Generated("software.amazon.awssdk:codegen") public final class DefaultChunk extends PayloadPart
A specialization ofsoftware.amazon.awssdk.services.bedrockagentruntime.model.PayloadPart
that represents theResponseStream$chunk
event. Do not use this class directly. Instead, use the static builder methods onResponseStream
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DefaultChunk.Builder
-
Nested 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(InvokeAgentResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype ofPayloadPart
.static DefaultChunk.Builder
builder()
ResponseStream.EventType
sdkEventType()
The type of this event.DefaultChunk.Builder
toBuilder()
-
Methods inherited from class software.amazon.awssdk.services.bedrockagentruntime.model.PayloadPart
attribution, bytes, copy, equals, equalsBySdkFields, getValueForField, hashCode, sdkFieldNameToField, sdkFields, serializableBuilderClass, toString
-
-
-
-
Method Detail
-
toBuilder
public DefaultChunk.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<PayloadPart.Builder,PayloadPart>
- Overrides:
toBuilder
in classPayloadPart
-
builder
public static DefaultChunk.Builder builder()
-
accept
public void accept(InvokeAgentResponseHandler.Visitor visitor)
Description copied from class:PayloadPart
Calls the appropriate visit method depending on the subtype ofPayloadPart
.- Specified by:
accept
in interfaceResponseStream
- Overrides:
accept
in classPayloadPart
- Parameters:
visitor
- Visitor to invoke.
-
sdkEventType
public ResponseStream.EventType sdkEventType()
Description copied from interface:ResponseStream
The type of this event. Corresponds to the:event-type
header on the Message.
-
-