Class HarnessMessageStopEvent
java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.HarnessMessageStopEvent
- All Implemented Interfaces:
Serializable,SdkPojo,InvokeHarnessStreamOutput,ToCopyableBuilder<HarnessMessageStopEvent.Builder,HarnessMessageStopEvent>
- Direct Known Subclasses:
DefaultMessageStop
@Generated("software.amazon.awssdk:codegen")
public class HarnessMessageStopEvent
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<HarnessMessageStopEvent.Builder,HarnessMessageStopEvent>, InvokeHarnessStreamOutput
Event indicating the end of a message.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static classNested classes/interfaces inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.InvokeHarnessStreamOutput
InvokeHarnessStreamOutput.EventType -
Field Summary
Fields inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.InvokeHarnessStreamOutput
UNKNOWN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionvoidCalls the appropriate visit method depending on the subtype ofHarnessMessageStopEvent.builder()final HarnessMessageStopEventcopy(Consumer<? super HarnessMessageStopEvent.Builder> modifier) final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends HarnessMessageStopEvent.Builder>final HarnessStopReasonThe reason the agent stopped generating.final StringThe reason the agent stopped generating.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.bedrockagentcore.model.InvokeHarnessStreamOutput
sdkEventType
-
Constructor Details
-
HarnessMessageStopEvent
-
-
Method Details
-
stopReason
The reason the agent stopped generating.
If the service returns an enum value that is not available in the current SDK version,
stopReasonwill returnHarnessStopReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstopReasonAsString().- Returns:
- The reason the agent stopped generating.
- See Also:
-
stopReasonAsString
The reason the agent stopped generating.
If the service returns an enum value that is not available in the current SDK version,
stopReasonwill returnHarnessStopReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstopReasonAsString().- Returns:
- The reason the agent stopped generating.
- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<HarnessMessageStopEvent.Builder,HarnessMessageStopEvent>
-
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
public final HarnessMessageStopEvent copy(Consumer<? super HarnessMessageStopEvent.Builder> modifier) - Specified by:
copyin interfaceToCopyableBuilder<HarnessMessageStopEvent.Builder,HarnessMessageStopEvent>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
Calls the appropriate visit method depending on the subtype ofHarnessMessageStopEvent.- Specified by:
acceptin interfaceInvokeHarnessStreamOutput- Parameters:
visitor- Visitor to invoke.
-