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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GuardrailContentBlock.Buildertext(Consumer<GuardrailTextBlock.Builder> text)Text within content block to be evaluated by the guardrail.GuardrailContentBlock.Buildertext(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 Detail
-
text
GuardrailContentBlock.Builder text(GuardrailTextBlock 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
default GuardrailContentBlock.Builder text(Consumer<GuardrailTextBlock.Builder> 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:
text(GuardrailTextBlock)
-
-