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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BedrockSessionContentBlock.Builderimage(Consumer<ImageBlock.Builder> image)The image in the invocation step.BedrockSessionContentBlock.Builderimage(ImageBlock image)The image in the invocation step.BedrockSessionContentBlock.Buildertext(String text)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 Detail
-
image
BedrockSessionContentBlock.Builder image(ImageBlock 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
default BedrockSessionContentBlock.Builder image(Consumer<ImageBlock.Builder> image)
The image in the invocation step.
This is a convenience method that creates an instance of theImageBlock.Builderavoiding the need to create one manually viaImageBlock.builder().When the
Consumercompletes,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:
image(ImageBlock)
-
text
BedrockSessionContentBlock.Builder text(String 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.
-
-