Interface GuardrailContentBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailContentBlock.Builder,
,GuardrailContentBlock> SdkBuilder<GuardrailContentBlock.Builder,
,GuardrailContentBlock> SdkPojo
- Enclosing class:
GuardrailContentBlock
public static interface GuardrailContentBlock.Builder
extends SdkPojo, CopyableBuilder<GuardrailContentBlock.Builder,GuardrailContentBlock>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GuardrailContentBlock.Builder
Text 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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builder
avoiding the need to create one manually viaGuardrailTextBlock.builder()
.When the
Consumer
completes,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:
-