Interface GuardrailContentPolicyConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailContentPolicyConfig.Builder,,GuardrailContentPolicyConfig> SdkBuilder<GuardrailContentPolicyConfig.Builder,,GuardrailContentPolicyConfig> SdkPojo
- Enclosing class:
GuardrailContentPolicyConfig
@Mutable
@NotThreadSafe
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.tierConfig(Consumer<GuardrailContentFiltersTierConfig.Builder> tierConfig) The tier that your guardrail uses for content filters.tierConfig(GuardrailContentFiltersTierConfig tierConfig) The tier that your guardrail uses for content filters.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, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaGuardrailContentFilterConfig.builder().When the
Consumercompletes,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:
-
tierConfig
The tier that your guardrail uses for content filters.
- Parameters:
tierConfig- The tier that your guardrail uses for content filters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tierConfig
default GuardrailContentPolicyConfig.Builder tierConfig(Consumer<GuardrailContentFiltersTierConfig.Builder> tierConfig) The tier that your guardrail uses for content filters.
This is a convenience method that creates an instance of theGuardrailContentFiltersTierConfig.Builderavoiding the need to create one manually viaGuardrailContentFiltersTierConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totierConfig(GuardrailContentFiltersTierConfig).- Parameters:
tierConfig- a consumer that will call methods onGuardrailContentFiltersTierConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-