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
Modifier and TypeMethodDescriptionlabels(Collection<ToxicContent> labels) Array of toxic content types identified in the string.labels(Consumer<ToxicContent.Builder>... labels) Array of toxic content types identified in the string.labels(ToxicContent... labels) Array of toxic content types identified in the string.Overall toxicity score for the string.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
-
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
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
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 tolabels(List<ToxicContent>).- 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:
-
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.
-