Interface GuardrailContentBlock.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailContentBlock.Builder,,GuardrailContentBlock> SdkBuilder<GuardrailContentBlock.Builder,,GuardrailContentBlock> SdkPojo
- Enclosing class:
GuardrailContentBlock
@Mutable
@NotThreadSafe
public static interface GuardrailContentBlock.Builder
extends SdkPojo, CopyableBuilder<GuardrailContentBlock.Builder,GuardrailContentBlock>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GuardrailContentBlock.Builderimage(Consumer<GuardrailImageBlock.Builder> image) Image within guardrail content block to be evaluated by the guardrail.image(GuardrailImageBlock image) Image within guardrail content block to be evaluated by the guardrail.default GuardrailContentBlock.BuilderText within content block to be evaluated by the guardrail.text(GuardrailTextBlock text) Text within content block to be evaluated by the guardrail.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
-
text
Text within content block to be evaluated by the guardrail.
- Parameters:
text- Text within content block to be evaluated by the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
Text within content block to be evaluated by the guardrail.
This is a convenience method that creates an instance of theGuardrailTextBlock.Builderavoiding the need to create one manually viaGuardrailTextBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totext(GuardrailTextBlock).- Parameters:
text- a consumer that will call methods onGuardrailTextBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
image
Image within guardrail content block to be evaluated by the guardrail.
- Parameters:
image- Image within guardrail content block to be evaluated by the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
Image within guardrail content block to be evaluated by the guardrail.
This is a convenience method that creates an instance of theGuardrailImageBlock.Builderavoiding the need to create one manually viaGuardrailImageBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimage(GuardrailImageBlock).- Parameters:
image- a consumer that will call methods onGuardrailImageBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-