Interface GuardrailWordPolicyConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailWordPolicyConfig.Builder,GuardrailWordPolicyConfig>,SdkBuilder<GuardrailWordPolicyConfig.Builder,GuardrailWordPolicyConfig>,SdkPojo
- Enclosing class:
- GuardrailWordPolicyConfig
public static interface GuardrailWordPolicyConfig.Builder extends SdkPojo, CopyableBuilder<GuardrailWordPolicyConfig.Builder,GuardrailWordPolicyConfig>
-
-
Method Summary
-
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
-
wordsConfig
GuardrailWordPolicyConfig.Builder wordsConfig(Collection<GuardrailWordConfig> wordsConfig)
A list of words to configure for the guardrail.
- Parameters:
wordsConfig- A list of words to configure for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wordsConfig
GuardrailWordPolicyConfig.Builder wordsConfig(GuardrailWordConfig... wordsConfig)
A list of words to configure for the guardrail.
- Parameters:
wordsConfig- A list of words to configure for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wordsConfig
GuardrailWordPolicyConfig.Builder wordsConfig(Consumer<GuardrailWordConfig.Builder>... wordsConfig)
A list of words to configure for the guardrail.
This is a convenience method that creates an instance of theGuardrailWordConfig.Builderavoiding the need to create one manually viaGuardrailWordConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#wordsConfig(List.) - 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:
#wordsConfig(java.util.Collection)
-
managedWordListsConfig
GuardrailWordPolicyConfig.Builder managedWordListsConfig(Collection<GuardrailManagedWordsConfig> managedWordListsConfig)
A list of managed words to configure for the guardrail.
- Parameters:
managedWordListsConfig- A list of managed words to configure for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedWordListsConfig
GuardrailWordPolicyConfig.Builder managedWordListsConfig(GuardrailManagedWordsConfig... managedWordListsConfig)
A list of managed words to configure for the guardrail.
- Parameters:
managedWordListsConfig- A list of managed words to configure for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedWordListsConfig
GuardrailWordPolicyConfig.Builder managedWordListsConfig(Consumer<GuardrailManagedWordsConfig.Builder>... managedWordListsConfig)
A list of managed words to configure for the guardrail.
This is a convenience method that creates an instance of theGuardrailManagedWordsConfig.Builderavoiding the need to create one manually viaGuardrailManagedWordsConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#managedWordListsConfig(List.) - 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:
#managedWordListsConfig(java.util.Collection)
-
-