Class ResponseChunk
java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.ResponseChunk
- All Implemented Interfaces:
Serializable,SdkPojo,InvokeAgentRuntimeCommandStreamOutput,ToCopyableBuilder<ResponseChunk.Builder,ResponseChunk>
- Direct Known Subclasses:
DefaultChunk
@Generated("software.amazon.awssdk:codegen")
public class ResponseChunk
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<ResponseChunk.Builder,ResponseChunk>, InvokeAgentRuntimeCommandStreamOutput
A structure representing a response chunk that contains exactly one of the possible event types:
contentStart, contentDelta, or contentStop.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static classNested classes/interfaces inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.InvokeAgentRuntimeCommandStreamOutput
InvokeAgentRuntimeCommandStreamOutput.EventType -
Field Summary
Fields inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.InvokeAgentRuntimeCommandStreamOutput
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalls the appropriate visit method depending on the subtype ofResponseChunk.static ResponseChunk.Builderbuilder()final ContentDeltaEventAn event containing incremental output (stdout or stderr) from the command execution.final ContentStartEventAn event indicating the start of content streaming from the command execution.final ContentStopEventAn event indicating the completion of the command execution, including the exit code and final status.final ResponseChunkcopy(Consumer<? super ResponseChunk.Builder> modifier) final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends ResponseChunk.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.InvokeAgentRuntimeCommandStreamOutput
sdkEventType
-
Constructor Details
-
ResponseChunk
-
-
Method Details
-
contentStart
An event indicating the start of content streaming from the command execution. This is the first chunk received.
- Returns:
- An event indicating the start of content streaming from the command execution. This is the first chunk received.
-
contentDelta
An event containing incremental output (stdout or stderr) from the command execution. These are the middle chunks.
- Returns:
- An event containing incremental output (stdout or stderr) from the command execution. These are the middle chunks.
-
contentStop
An event indicating the completion of the command execution, including the exit code and final status. This is the last chunk received.
- Returns:
- An event indicating the completion of the command execution, including the exit code and final status. This is the last chunk received.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseChunk.Builder,ResponseChunk>
-
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<ResponseChunk.Builder,ResponseChunk>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
Calls the appropriate visit method depending on the subtype ofResponseChunk.- Specified by:
acceptin interfaceInvokeAgentRuntimeCommandStreamOutput- Parameters:
visitor- Visitor to invoke.
-