Interface ResponseChunk.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResponseChunk.Builder,,ResponseChunk> SdkBuilder<ResponseChunk.Builder,,ResponseChunk> SdkPojo
- All Known Subinterfaces:
DefaultChunk.Builder
- Enclosing class:
ResponseChunk
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseChunk.BuildercontentDelta(Consumer<ContentDeltaEvent.Builder> contentDelta) An event containing incremental output (stdout or stderr) from the command execution.contentDelta(ContentDeltaEvent contentDelta) An event containing incremental output (stdout or stderr) from the command execution.default ResponseChunk.BuildercontentStart(Consumer<ContentStartEvent.Builder> contentStart) An event indicating the start of content streaming from the command execution.contentStart(ContentStartEvent contentStart) An event indicating the start of content streaming from the command execution.default ResponseChunk.BuildercontentStop(Consumer<ContentStopEvent.Builder> contentStop) An event indicating the completion of the command execution, including the exit code and final status.contentStop(ContentStopEvent contentStop) An event indicating the completion of the command execution, including the exit code and final status.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
contentStart
An event indicating the start of content streaming from the command execution. This is the first chunk received.
- 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.
-
contentStart
An event indicating the start of content streaming from the command execution. This is the first chunk received.
This is a convenience method that creates an instance of theContentStartEvent.Builderavoiding the need to create one manually viaContentStartEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentStart(ContentStartEvent).- Parameters:
contentStart- a consumer that will call methods onContentStartEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentDelta
An event containing incremental output (stdout or stderr) from the command execution. These are the middle chunks.
- 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.
-
contentDelta
An event containing incremental output (stdout or stderr) from the command execution. These are the middle chunks.
This is a convenience method that creates an instance of theContentDeltaEvent.Builderavoiding the need to create one manually viaContentDeltaEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentDelta(ContentDeltaEvent).- Parameters:
contentDelta- a consumer that will call methods onContentDeltaEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentStop
An event indicating the completion of the command execution, including the exit code and final status. This is the last chunk received.
- 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.
-
contentStop
An event indicating the completion of the command execution, including the exit code and final status. This is the last chunk received.
This is a convenience method that creates an instance of theContentStopEvent.Builderavoiding the need to create one manually viaContentStopEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentStop(ContentStopEvent).- Parameters:
contentStop- a consumer that will call methods onContentStopEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-