Interface GuardrailContentPolicyConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailContentPolicyConfig.Builder,
,GuardrailContentPolicyConfig> SdkBuilder<GuardrailContentPolicyConfig.Builder,
,GuardrailContentPolicyConfig> SdkPojo
- Enclosing class:
GuardrailContentPolicyConfig
public static interface GuardrailContentPolicyConfig.Builder
extends SdkPojo, CopyableBuilder<GuardrailContentPolicyConfig.Builder,GuardrailContentPolicyConfig>
-
Method Summary
Modifier and TypeMethodDescriptionfiltersConfig
(Collection<GuardrailContentFilterConfig> filtersConfig) Contains the type of the content filter and how strongly it should apply to prompts and model responses.filtersConfig
(Consumer<GuardrailContentFilterConfig.Builder>... filtersConfig) Contains the type of the content filter and how strongly it should apply to prompts and model responses.filtersConfig
(GuardrailContentFilterConfig... filtersConfig) Contains the type of the content filter and how strongly it should apply to prompts and model responses.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 Details
-
filtersConfig
GuardrailContentPolicyConfig.Builder filtersConfig(Collection<GuardrailContentFilterConfig> filtersConfig) Contains the type of the content filter and how strongly it should apply to prompts and model responses.
- Parameters:
filtersConfig
- Contains the type of the content filter and how strongly it should apply to prompts and model responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filtersConfig
Contains the type of the content filter and how strongly it should apply to prompts and model responses.
- Parameters:
filtersConfig
- Contains the type of the content filter and how strongly it should apply to prompts and model responses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filtersConfig
GuardrailContentPolicyConfig.Builder filtersConfig(Consumer<GuardrailContentFilterConfig.Builder>... filtersConfig) Contains the type of the content filter and how strongly it should apply to prompts and model responses.
This is a convenience method that creates an instance of theGuardrailContentFilterConfig.Builder
avoiding the need to create one manually viaGuardrailContentFilterConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofiltersConfig(List<GuardrailContentFilterConfig>)
.- Parameters:
filtersConfig
- a consumer that will call methods onGuardrailContentFilterConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-