Class DefaultChunk
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockruntime.model.PayloadPart
-
- software.amazon.awssdk.services.bedrockruntime.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.bedrockruntime.model.PayloadPartthat represents theResponseStream$chunkevent. 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 interfaceDefaultChunk.Builder-
Nested classes/interfaces inherited from interface software.amazon.awssdk.services.bedrockruntime.model.ResponseStream
ResponseStream.EventType
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.services.bedrockruntime.model.ResponseStream
UNKNOWN
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(InvokeModelWithResponseStreamResponseHandler.Visitor visitor)Calls the appropriate visit method depending on the subtype ofPayloadPart.static DefaultChunk.Builderbuilder()ResponseStream.EventTypesdkEventType()The type of this event.DefaultChunk.BuildertoBuilder()-
Methods inherited from class software.amazon.awssdk.services.bedrockruntime.model.PayloadPart
bytes, copy, equals, equalsBySdkFields, getValueForField, hashCode, sdkFields, serializableBuilderClass, toString
-
-
-
-
Method Detail
-
toBuilder
public DefaultChunk.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PayloadPart.Builder,PayloadPart>- Overrides:
toBuilderin classPayloadPart
-
builder
public static DefaultChunk.Builder builder()
-
accept
public void accept(InvokeModelWithResponseStreamResponseHandler.Visitor visitor)
Description copied from class:PayloadPartCalls the appropriate visit method depending on the subtype ofPayloadPart.- Specified by:
acceptin interfaceResponseStream- Overrides:
acceptin classPayloadPart- Parameters:
visitor- Visitor to invoke.
-
sdkEventType
public ResponseStream.EventType sdkEventType()
Description copied from interface:ResponseStreamThe type of this event. Corresponds to the:event-typeheader on the Message.
-
-