Class DefaultMessageStop
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockruntime.model.MessageStopEvent
-
- software.amazon.awssdk.services.bedrockruntime.model.conversestreamoutput.DefaultMessageStop
-
- All Implemented Interfaces:
Serializable,SdkPojo,ConverseStreamOutput,ToCopyableBuilder<MessageStopEvent.Builder,MessageStopEvent>
@Generated("software.amazon.awssdk:codegen") public final class DefaultMessageStop extends MessageStopEvent
A specialization ofsoftware.amazon.awssdk.services.bedrockruntime.model.MessageStopEventthat represents theConverseStreamOutput$messageStopevent. Do not use this class directly. Instead, use the static builder methods onConverseStreamOutput.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDefaultMessageStop.Builder-
Nested classes/interfaces inherited from interface software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamOutput
ConverseStreamOutput.EventType
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamOutput
UNKNOWN
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ConverseStreamResponseHandler.Visitor visitor)Calls the appropriate visit method depending on the subtype ofMessageStopEvent.static DefaultMessageStop.Builderbuilder()ConverseStreamOutput.EventTypesdkEventType()The type of this event.DefaultMessageStop.BuildertoBuilder()-
Methods inherited from class software.amazon.awssdk.services.bedrockruntime.model.MessageStopEvent
additionalModelResponseFields, copy, equals, equalsBySdkFields, getValueForField, hashCode, sdkFieldNameToField, sdkFields, serializableBuilderClass, stopReason, stopReasonAsString, toString
-
-
-
-
Method Detail
-
toBuilder
public DefaultMessageStop.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MessageStopEvent.Builder,MessageStopEvent>- Overrides:
toBuilderin classMessageStopEvent
-
builder
public static DefaultMessageStop.Builder builder()
-
accept
public void accept(ConverseStreamResponseHandler.Visitor visitor)
Description copied from class:MessageStopEventCalls the appropriate visit method depending on the subtype ofMessageStopEvent.- Specified by:
acceptin interfaceConverseStreamOutput- Overrides:
acceptin classMessageStopEvent- Parameters:
visitor- Visitor to invoke.
-
sdkEventType
public ConverseStreamOutput.EventType sdkEventType()
Description copied from interface:ConverseStreamOutputThe type of this event. Corresponds to the:event-typeheader on the Message.
-
-