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
Modifier and TypeMethodDescriptionmanagedWordListsConfig(Collection<GuardrailManagedWordsConfig> managedWordListsConfig) A list of managed words to configure for the guardrail.managedWordListsConfig(Consumer<GuardrailManagedWordsConfig.Builder>... managedWordListsConfig) A list of managed words to configure for the guardrail.managedWordListsConfig(GuardrailManagedWordsConfig... managedWordListsConfig) A list of managed words to configure for the guardrail.wordsConfig(Collection<GuardrailWordConfig> wordsConfig) A list of words to configure for the guardrail.wordsConfig(Consumer<GuardrailWordConfig.Builder>... wordsConfig) A list of words to configure for the guardrail.wordsConfig(GuardrailWordConfig... wordsConfig) A list of words to configure 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
-
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
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
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 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
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 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:
-