Class ResponseChunk.BuilderImpl

java.lang.Object
software.amazon.awssdk.services.bedrockagentcore.model.ResponseChunk.BuilderImpl
All Implemented Interfaces:
SdkPojo, ResponseChunk.Builder, Buildable, CopyableBuilder<ResponseChunk.Builder,ResponseChunk>, SdkBuilder<ResponseChunk.Builder,ResponseChunk>
Enclosing class:
ResponseChunk

protected static class ResponseChunk.BuilderImpl extends Object implements ResponseChunk.Builder
  • Constructor Details

    • BuilderImpl

      protected BuilderImpl()
    • BuilderImpl

      protected BuilderImpl(ResponseChunk model)
  • Method Details

    • getContentStart

      public final ContentStartEvent.Builder getContentStart()
    • setContentStart

      public final void setContentStart(software.amazon.awssdk.services.bedrockagentcore.model.ContentStartEvent.BuilderImpl contentStart)
    • contentStart

      public final ResponseChunk.Builder contentStart(ContentStartEvent contentStart)
      Description copied from interface: ResponseChunk.Builder

      An event indicating the start of content streaming from the command execution. This is the first chunk received.

      Specified by:
      contentStart in interface ResponseChunk.Builder
      Parameters:
      contentStart - An event indicating the start of content streaming from the command execution. This is the first chunk received.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getContentDelta

      public final ContentDeltaEvent.Builder getContentDelta()
    • setContentDelta

      public final void setContentDelta(software.amazon.awssdk.services.bedrockagentcore.model.ContentDeltaEvent.BuilderImpl contentDelta)
    • contentDelta

      public final ResponseChunk.Builder contentDelta(ContentDeltaEvent contentDelta)
      Description copied from interface: ResponseChunk.Builder

      An event containing incremental output (stdout or stderr) from the command execution. These are the middle chunks.

      Specified by:
      contentDelta in interface ResponseChunk.Builder
      Parameters:
      contentDelta - An event containing incremental output (stdout or stderr) from the command execution. These are the middle chunks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getContentStop

      public final ContentStopEvent.Builder getContentStop()
    • setContentStop

      public final void setContentStop(software.amazon.awssdk.services.bedrockagentcore.model.ContentStopEvent.BuilderImpl contentStop)
    • contentStop

      public final ResponseChunk.Builder contentStop(ContentStopEvent contentStop)
      Description copied from interface: ResponseChunk.Builder

      An event indicating the completion of the command execution, including the exit code and final status. This is the last chunk received.

      Specified by:
      contentStop in interface ResponseChunk.Builder
      Parameters:
      contentStop - An event indicating the completion of the command execution, including the exit code and final status. This is the last chunk received.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • build

      public ResponseChunk build()
      Specified by:
      build in interface Buildable
      Specified by:
      build in interface SdkBuilder<ResponseChunk.Builder,ResponseChunk>
    • sdkFields

      public List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo