Interface HarnessContentBlockStartEvent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HarnessContentBlockStartEvent.Builder,,HarnessContentBlockStartEvent> SdkBuilder<HarnessContentBlockStartEvent.Builder,,HarnessContentBlockStartEvent> SdkPojo
- All Known Subinterfaces:
DefaultContentBlockStart.Builder
- Enclosing class:
HarnessContentBlockStartEvent
@Mutable
@NotThreadSafe
public static interface HarnessContentBlockStartEvent.Builder
extends SdkPojo, CopyableBuilder<HarnessContentBlockStartEvent.Builder,HarnessContentBlockStartEvent>
-
Method Summary
Modifier and TypeMethodDescriptioncontentBlockIndex(Integer contentBlockIndex) The index of the content block within the message.The content block start payload.start(HarnessContentBlockStart start) The content block start payload.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
-
contentBlockIndex
The index of the content block within the message.
- Parameters:
contentBlockIndex- The index of the content block within the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
start
The content block start payload.
- Parameters:
start- The content block start payload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
start
default HarnessContentBlockStartEvent.Builder start(Consumer<HarnessContentBlockStart.Builder> start) The content block start payload.
This is a convenience method that creates an instance of theHarnessContentBlockStart.Builderavoiding the need to create one manually viaHarnessContentBlockStart.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostart(HarnessContentBlockStart).- Parameters:
start- a consumer that will call methods onHarnessContentBlockStart.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-