Class HarnessContentBlockStopEvent
java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.HarnessContentBlockStopEvent
- All Implemented Interfaces:
Serializable,SdkPojo,InvokeHarnessStreamOutput,ToCopyableBuilder<HarnessContentBlockStopEvent.Builder,HarnessContentBlockStopEvent>
- Direct Known Subclasses:
DefaultContentBlockStop
@Generated("software.amazon.awssdk:codegen")
public class HarnessContentBlockStopEvent
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<HarnessContentBlockStopEvent.Builder,HarnessContentBlockStopEvent>, InvokeHarnessStreamOutput
Event indicating the end of a content block.
- 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 ofHarnessContentBlockStopEvent.builder()final IntegerThe index of the content block that ended.copy(Consumer<? super HarnessContentBlockStopEvent.Builder> modifier) final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends HarnessContentBlockStopEvent.Builder>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
-
HarnessContentBlockStopEvent
-
-
Method Details
-
contentBlockIndex
The index of the content block that ended.
- Returns:
- The index of the content block that ended.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<HarnessContentBlockStopEvent.Builder,HarnessContentBlockStopEvent>
-
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 HarnessContentBlockStopEvent copy(Consumer<? super HarnessContentBlockStopEvent.Builder> modifier) - Specified by:
copyin interfaceToCopyableBuilder<HarnessContentBlockStopEvent.Builder,HarnessContentBlockStopEvent>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
Calls the appropriate visit method depending on the subtype ofHarnessContentBlockStopEvent.- Specified by:
acceptin interfaceInvokeHarnessStreamOutput- Parameters:
visitor- Visitor to invoke.
-