Class MessageStopEvent
java.lang.Object
software.amazon.awssdk.services.bedrockruntime.model.MessageStopEvent
- All Implemented Interfaces:
Serializable,SdkPojo,ConverseStreamOutput,ToCopyableBuilder<MessageStopEvent.Builder,MessageStopEvent>
- Direct Known Subclasses:
DefaultMessageStop
@Generated("software.amazon.awssdk:codegen")
public class MessageStopEvent
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<MessageStopEvent.Builder,MessageStopEvent>, ConverseStreamOutput
The stop event for a message.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static classNested 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalls the appropriate visit method depending on the subtype ofMessageStopEvent.final DocumentThe additional model response fields.static MessageStopEvent.Builderbuilder()final MessageStopEventcopy(Consumer<? super MessageStopEvent.Builder> modifier) final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends MessageStopEvent.Builder>final StopReasonThe reason why the model stopped generating output.final StringThe reason why the model stopped generating output.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.bedrockruntime.model.ConverseStreamOutput
sdkEventType
-
Constructor Details
-
MessageStopEvent
-
-
Method Details
-
stopReason
The reason why the model stopped generating output.
If the service returns an enum value that is not available in the current SDK version,
stopReasonwill returnStopReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstopReasonAsString().- Returns:
- The reason why the model stopped generating output.
- See Also:
-
stopReasonAsString
The reason why the model stopped generating output.
If the service returns an enum value that is not available in the current SDK version,
stopReasonwill returnStopReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstopReasonAsString().- Returns:
- The reason why the model stopped generating output.
- See Also:
-
additionalModelResponseFields
The additional model response fields.
- Returns:
- The additional model response fields.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<MessageStopEvent.Builder,MessageStopEvent>
-
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<MessageStopEvent.Builder,MessageStopEvent>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
Calls the appropriate visit method depending on the subtype ofMessageStopEvent.- Specified by:
acceptin interfaceConverseStreamOutput- Parameters:
visitor- Visitor to invoke.
-