Interface ToxicLabels.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ToxicLabels.Builder,ToxicLabels>,SdkBuilder<ToxicLabels.Builder,ToxicLabels>,SdkPojo
- Enclosing class:
- ToxicLabels
public static interface ToxicLabels.Builder extends SdkPojo, CopyableBuilder<ToxicLabels.Builder,ToxicLabels>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ToxicLabels.Builderlabels(Collection<ToxicContent> labels)Array of toxic content types identified in the string.ToxicLabels.Builderlabels(Consumer<ToxicContent.Builder>... labels)Array of toxic content types identified in the string.ToxicLabels.Builderlabels(ToxicContent... labels)Array of toxic content types identified in the string.ToxicLabels.Buildertoxicity(Float toxicity)Overall toxicity score for the string.-
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
-
labels
ToxicLabels.Builder labels(Collection<ToxicContent> labels)
Array of toxic content types identified in the string.
- Parameters:
labels- Array of toxic content types identified in the string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labels
ToxicLabels.Builder labels(ToxicContent... labels)
Array of toxic content types identified in the string.
- Parameters:
labels- Array of toxic content types identified in the string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labels
ToxicLabels.Builder labels(Consumer<ToxicContent.Builder>... labels)
Array of toxic content types identified in the string.
This is a convenience method that creates an instance of theToxicContent.Builderavoiding the need to create one manually viaToxicContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#labels(List.) - Parameters:
labels- a consumer that will call methods onToxicContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#labels(java.util.Collection)
-
toxicity
ToxicLabels.Builder toxicity(Float toxicity)
Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.
- Parameters:
toxicity- Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-