Interface GuardrailConverseImageBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailConverseImageBlock.Builder,
,GuardrailConverseImageBlock> SdkBuilder<GuardrailConverseImageBlock.Builder,
,GuardrailConverseImageBlock> SdkPojo
- Enclosing class:
GuardrailConverseImageBlock
@Mutable
@NotThreadSafe
public static interface GuardrailConverseImageBlock.Builder
extends SdkPojo, CopyableBuilder<GuardrailConverseImageBlock.Builder,GuardrailConverseImageBlock>
-
Method Summary
Modifier and TypeMethodDescriptionThe format details for the image type of the guardrail converse image block.format
(GuardrailConverseImageFormat format) The format details for the image type of the guardrail converse image block.The image source (image bytes) of the guardrail converse image block.source
(GuardrailConverseImageSource source) The image source (image bytes) of the guardrail converse image block.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
-
format
The format details for the image type of the guardrail converse image block.
- Parameters:
format
- The format details for the image type of the guardrail converse image block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
format
The format details for the image type of the guardrail converse image block.
- Parameters:
format
- The format details for the image type of the guardrail converse image block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The image source (image bytes) of the guardrail converse image block.
- Parameters:
source
- The image source (image bytes) of the guardrail converse image block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
default GuardrailConverseImageBlock.Builder source(Consumer<GuardrailConverseImageSource.Builder> source) The image source (image bytes) of the guardrail converse image block.
This is a convenience method that creates an instance of theGuardrailConverseImageSource.Builder
avoiding the need to create one manually viaGuardrailConverseImageSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosource(GuardrailConverseImageSource)
.- Parameters:
source
- a consumer that will call methods onGuardrailConverseImageSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-