Interface BedrockSessionContentBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BedrockSessionContentBlock.Builder,
,BedrockSessionContentBlock> SdkBuilder<BedrockSessionContentBlock.Builder,
,BedrockSessionContentBlock> SdkPojo
- Enclosing class:
BedrockSessionContentBlock
@Mutable
@NotThreadSafe
public static interface BedrockSessionContentBlock.Builder
extends SdkPojo, CopyableBuilder<BedrockSessionContentBlock.Builder,BedrockSessionContentBlock>
-
Method Summary
Modifier and TypeMethodDescriptionimage
(Consumer<ImageBlock.Builder> image) The image in the invocation step.image
(ImageBlock image) The image in the invocation step.The text in 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
-
image
The image in the invocation step.
- Parameters:
image
- The image in the invocation step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
The image in the invocation step.
This is a convenience method that creates an instance of theImageBlock.Builder
avoiding the need to create one manually viaImageBlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimage(ImageBlock)
.- Parameters:
image
- a consumer that will call methods onImageBlock.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
text
The text in the invocation step.
- Parameters:
text
- The text in the invocation step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-