Interface GuardrailContentFilter.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailContentFilter.Builder,GuardrailContentFilter>,SdkBuilder<GuardrailContentFilter.Builder,GuardrailContentFilter>,SdkPojo
- Enclosing class:
- GuardrailContentFilter
public static interface GuardrailContentFilter.Builder extends SdkPojo, CopyableBuilder<GuardrailContentFilter.Builder,GuardrailContentFilter>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GuardrailContentFilter.BuilderinputStrength(String inputStrength)The strength of the content filter to apply to prompts.GuardrailContentFilter.BuilderinputStrength(GuardrailFilterStrength inputStrength)The strength of the content filter to apply to prompts.GuardrailContentFilter.BuilderoutputStrength(String outputStrength)The strength of the content filter to apply to model responses.GuardrailContentFilter.BuilderoutputStrength(GuardrailFilterStrength outputStrength)The strength of the content filter to apply to model responses.GuardrailContentFilter.Buildertype(String type)The harmful category that the content filter is applied to.GuardrailContentFilter.Buildertype(GuardrailContentFilterType type)The harmful category that the content filter is applied to.-
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
-
type
GuardrailContentFilter.Builder type(String type)
The harmful category that the content filter is applied to.
- Parameters:
type- The harmful category that the content filter is applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuardrailContentFilterType,GuardrailContentFilterType
-
type
GuardrailContentFilter.Builder type(GuardrailContentFilterType type)
The harmful category that the content filter is applied to.
- Parameters:
type- The harmful category that the content filter is applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuardrailContentFilterType,GuardrailContentFilterType
-
inputStrength
GuardrailContentFilter.Builder inputStrength(String inputStrength)
The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
- Parameters:
inputStrength- The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuardrailFilterStrength,GuardrailFilterStrength
-
inputStrength
GuardrailContentFilter.Builder inputStrength(GuardrailFilterStrength inputStrength)
The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
- Parameters:
inputStrength- The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuardrailFilterStrength,GuardrailFilterStrength
-
outputStrength
GuardrailContentFilter.Builder outputStrength(String outputStrength)
The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
- Parameters:
outputStrength- The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuardrailFilterStrength,GuardrailFilterStrength
-
outputStrength
GuardrailContentFilter.Builder outputStrength(GuardrailFilterStrength outputStrength)
The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
- Parameters:
outputStrength- The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuardrailFilterStrength,GuardrailFilterStrength
-
-