Interface InvocationStepPayload.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InvocationStepPayload.Builder,InvocationStepPayload>,SdkBuilder<InvocationStepPayload.Builder,InvocationStepPayload>,SdkPojo
- Enclosing class:
- InvocationStepPayload
@Mutable @NotThreadSafe public static interface InvocationStepPayload.Builder extends SdkPojo, CopyableBuilder<InvocationStepPayload.Builder,InvocationStepPayload>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvocationStepPayload.BuildercontentBlocks(Collection<BedrockSessionContentBlock> contentBlocks)The content for the invocation step.InvocationStepPayload.BuildercontentBlocks(Consumer<BedrockSessionContentBlock.Builder>... contentBlocks)The content for the invocation step.InvocationStepPayload.BuildercontentBlocks(BedrockSessionContentBlock... contentBlocks)The content for the invocation step.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
contentBlocks
InvocationStepPayload.Builder contentBlocks(Collection<BedrockSessionContentBlock> contentBlocks)
The content for the invocation step.
- Parameters:
contentBlocks- The content for the invocation step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentBlocks
InvocationStepPayload.Builder contentBlocks(BedrockSessionContentBlock... contentBlocks)
The content for the invocation step.
- Parameters:
contentBlocks- The content for the invocation step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentBlocks
InvocationStepPayload.Builder contentBlocks(Consumer<BedrockSessionContentBlock.Builder>... contentBlocks)
The content for the invocation step.
This is a convenience method that creates an instance of theBedrockSessionContentBlock.Builderavoiding the need to create one manually viaBedrockSessionContentBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#contentBlocks(List.) - Parameters:
contentBlocks- a consumer that will call methods onBedrockSessionContentBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#contentBlocks(java.util.Collection)
-
-