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
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
-
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.Builderavoiding the need to create one manually viaBedrockSessionContentBlock.builder().When the
Consumercompletes,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:
-