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.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, 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:
-