Interface GuardrailWordPolicy.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailWordPolicy.Builder,GuardrailWordPolicy>,SdkBuilder<GuardrailWordPolicy.Builder,GuardrailWordPolicy>,SdkPojo
- Enclosing class:
- GuardrailWordPolicy
public static interface GuardrailWordPolicy.Builder extends SdkPojo, CopyableBuilder<GuardrailWordPolicy.Builder,GuardrailWordPolicy>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GuardrailWordPolicy.BuildermanagedWordLists(Collection<GuardrailManagedWords> managedWordLists)A list of managed words configured for the guardrail.GuardrailWordPolicy.BuildermanagedWordLists(Consumer<GuardrailManagedWords.Builder>... managedWordLists)A list of managed words configured for the guardrail.GuardrailWordPolicy.BuildermanagedWordLists(GuardrailManagedWords... managedWordLists)A list of managed words configured for the guardrail.GuardrailWordPolicy.Builderwords(Collection<GuardrailWord> words)A list of words configured for the guardrail.GuardrailWordPolicy.Builderwords(Consumer<GuardrailWord.Builder>... words)A list of words configured for the guardrail.GuardrailWordPolicy.Builderwords(GuardrailWord... words)A list of words configured for 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
-
words
GuardrailWordPolicy.Builder words(Collection<GuardrailWord> words)
A list of words configured for the guardrail.
- Parameters:
words- A list of words configured for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
words
GuardrailWordPolicy.Builder words(GuardrailWord... words)
A list of words configured for the guardrail.
- Parameters:
words- A list of words configured for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
words
GuardrailWordPolicy.Builder words(Consumer<GuardrailWord.Builder>... words)
A list of words configured for the guardrail.
This is a convenience method that creates an instance of theGuardrailWord.Builderavoiding the need to create one manually viaGuardrailWord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#words(List.) - Parameters:
words- a consumer that will call methods onGuardrailWord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#words(java.util.Collection)
-
managedWordLists
GuardrailWordPolicy.Builder managedWordLists(Collection<GuardrailManagedWords> managedWordLists)
A list of managed words configured for the guardrail.
- Parameters:
managedWordLists- A list of managed words configured for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedWordLists
GuardrailWordPolicy.Builder managedWordLists(GuardrailManagedWords... managedWordLists)
A list of managed words configured for the guardrail.
- Parameters:
managedWordLists- A list of managed words configured for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedWordLists
GuardrailWordPolicy.Builder managedWordLists(Consumer<GuardrailManagedWords.Builder>... managedWordLists)
A list of managed words configured for the guardrail.
This is a convenience method that creates an instance of theGuardrailManagedWords.Builderavoiding the need to create one manually viaGuardrailManagedWords.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#managedWordLists(List.) - Parameters:
managedWordLists- a consumer that will call methods onGuardrailManagedWords.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#managedWordLists(java.util.Collection)
-
-