Interface AIGuardrailWordPolicyConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AIGuardrailWordPolicyConfig.Builder,
,AIGuardrailWordPolicyConfig> SdkBuilder<AIGuardrailWordPolicyConfig.Builder,
,AIGuardrailWordPolicyConfig> SdkPojo
- Enclosing class:
AIGuardrailWordPolicyConfig
@Mutable
@NotThreadSafe
public static interface AIGuardrailWordPolicyConfig.Builder
extends SdkPojo, CopyableBuilder<AIGuardrailWordPolicyConfig.Builder,AIGuardrailWordPolicyConfig>
-
Method Summary
Modifier and TypeMethodDescriptionmanagedWordListsConfig
(Collection<GuardrailManagedWordsConfig> managedWordListsConfig) A list of managed words to configure for the AI Guardrail.managedWordListsConfig
(Consumer<GuardrailManagedWordsConfig.Builder>... managedWordListsConfig) A list of managed words to configure for the AI Guardrail.managedWordListsConfig
(GuardrailManagedWordsConfig... managedWordListsConfig) A list of managed words to configure for the AI Guardrail.wordsConfig
(Collection<GuardrailWordConfig> wordsConfig) A list of words to configure for the AI Guardrail.wordsConfig
(Consumer<GuardrailWordConfig.Builder>... wordsConfig) A list of words to configure for the AI Guardrail.wordsConfig
(GuardrailWordConfig... wordsConfig) A list of words to configure for the AI 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, sdkFieldNameToField, sdkFields
-
Method Details
-
wordsConfig
A list of words to configure for the AI Guardrail.
- Parameters:
wordsConfig
- A list of words to configure for the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wordsConfig
A list of words to configure for the AI Guardrail.
- Parameters:
wordsConfig
- A list of words to configure for the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wordsConfig
AIGuardrailWordPolicyConfig.Builder wordsConfig(Consumer<GuardrailWordConfig.Builder>... wordsConfig) A list of words to configure for the AI Guardrail.
This is a convenience method that creates an instance of theGuardrailWordConfig.Builder
avoiding the need to create one manually viaGuardrailWordConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towordsConfig(List<GuardrailWordConfig>)
.- Parameters:
wordsConfig
- a consumer that will call methods onGuardrailWordConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
managedWordListsConfig
AIGuardrailWordPolicyConfig.Builder managedWordListsConfig(Collection<GuardrailManagedWordsConfig> managedWordListsConfig) A list of managed words to configure for the AI Guardrail.
- Parameters:
managedWordListsConfig
- A list of managed words to configure for the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedWordListsConfig
AIGuardrailWordPolicyConfig.Builder managedWordListsConfig(GuardrailManagedWordsConfig... managedWordListsConfig) A list of managed words to configure for the AI Guardrail.
- Parameters:
managedWordListsConfig
- A list of managed words to configure for the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedWordListsConfig
AIGuardrailWordPolicyConfig.Builder managedWordListsConfig(Consumer<GuardrailManagedWordsConfig.Builder>... managedWordListsConfig) A list of managed words to configure for the AI Guardrail.
This is a convenience method that creates an instance of theGuardrailManagedWordsConfig.Builder
avoiding the need to create one manually viaGuardrailManagedWordsConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomanagedWordListsConfig(List<GuardrailManagedWordsConfig>)
.- Parameters:
managedWordListsConfig
- a consumer that will call methods onGuardrailManagedWordsConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-