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
Modifier and TypeMethodDescriptioncontentBlocks
(Collection<BedrockSessionContentBlock> contentBlocks) The content for the invocation step.contentBlocks
(Consumer<BedrockSessionContentBlock.Builder>... contentBlocks) The content for the invocation step.contentBlocks
(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 Details
-
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
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.Builder
avoiding the need to create one manually viaBedrockSessionContentBlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentBlocks(List<BedrockSessionContentBlock>)
.- 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:
-