Interface DetectToxicContentResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComprehendResponse.Builder,CopyableBuilder<DetectToxicContentResponse.Builder,DetectToxicContentResponse>,SdkBuilder<DetectToxicContentResponse.Builder,DetectToxicContentResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DetectToxicContentResponse
public static interface DetectToxicContentResponse.Builder extends ComprehendResponse.Builder, SdkPojo, CopyableBuilder<DetectToxicContentResponse.Builder,DetectToxicContentResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DetectToxicContentResponse.BuilderresultList(Collection<ToxicLabels> resultList)Results of the content moderation analysis.DetectToxicContentResponse.BuilderresultList(Consumer<ToxicLabels.Builder>... resultList)Results of the content moderation analysis.DetectToxicContentResponse.BuilderresultList(ToxicLabels... resultList)Results of the content moderation analysis.-
Methods inherited from interface software.amazon.awssdk.services.comprehend.model.ComprehendResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
resultList
DetectToxicContentResponse.Builder resultList(Collection<ToxicLabels> resultList)
Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.
- Parameters:
resultList- Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultList
DetectToxicContentResponse.Builder resultList(ToxicLabels... resultList)
Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.
- Parameters:
resultList- Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultList
DetectToxicContentResponse.Builder resultList(Consumer<ToxicLabels.Builder>... resultList)
Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.
This is a convenience method that creates an instance of theToxicLabels.Builderavoiding the need to create one manually viaToxicLabels.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resultList(List.) - Parameters:
resultList- a consumer that will call methods onToxicLabels.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resultList(java.util.Collection)
-
-