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
Modifier and TypeMethodDescriptionmanagedWordLists(Collection<GuardrailManagedWords> managedWordLists) A list of managed words configured for the guardrail.managedWordLists(Consumer<GuardrailManagedWords.Builder>... managedWordLists) A list of managed words configured for the guardrail.managedWordLists(GuardrailManagedWords... managedWordLists) A list of managed words configured for the guardrail.words(Collection<GuardrailWord> words) A list of words configured for the guardrail.words(Consumer<GuardrailWord.Builder>... words) A list of words configured for the guardrail.words(GuardrailWord... words) A list of words configured for 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
-
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
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
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 towords(List<GuardrailWord>).- 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:
-
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
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 tomanagedWordLists(List<GuardrailManagedWords>).- 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:
-