Interface ResponseChunk.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResponseChunk.Builder,,ResponseChunk> SdkBuilder<ResponseChunk.Builder,,ResponseChunk> SdkPojo
- All Known Subinterfaces:
DefaultChunk.Builder
- Enclosing class:
ResponseChunk
@Mutable
@NotThreadSafe
public static interface ResponseChunk.Builder
extends SdkPojo, CopyableBuilder<ResponseChunk.Builder,ResponseChunk>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseChunk.BuildercontentDelta(Consumer<ContentDeltaEvent.Builder> contentDelta) Middle chunks - stdout/stderr outputcontentDelta(ContentDeltaEvent contentDelta) Middle chunks - stdout/stderr outputdefault ResponseChunk.BuildercontentStart(Consumer<ContentStartEvent.Builder> contentStart) First chunk - indicates command execution has startedcontentStart(ContentStartEvent contentStart) First chunk - indicates command execution has starteddefault ResponseChunk.BuildercontentStop(Consumer<ContentStopEvent.Builder> contentStop) Last chunk - indicates command execution has completedcontentStop(ContentStopEvent contentStop) Last chunk - indicates command execution has completedMethods 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
First chunk - indicates command execution has started
- Parameters:
contentStart- First chunk - indicates command execution has started- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentStart
First chunk - indicates command execution has started
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
Middle chunks - stdout/stderr output
- Parameters:
contentDelta- Middle chunks - stdout/stderr output- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentDelta
Middle chunks - stdout/stderr output
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
Last chunk - indicates command execution has completed
- Parameters:
contentStop- Last chunk - indicates command execution has completed- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentStop
Last chunk - indicates command execution has completed
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:
-