Interface DetectToxicContentResponse.Builder
- All Superinterfaces:
 AwsResponse.Builder,Buildable,ComprehendResponse.Builder,CopyableBuilder<DetectToxicContentResponse.Builder,,DetectToxicContentResponse> SdkBuilder<DetectToxicContentResponse.Builder,,DetectToxicContentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
 DetectToxicContentResponse
- 
Method Summary
Modifier and TypeMethodDescriptionresultList(Collection<ToxicLabels> resultList) Results of the content moderation analysis.resultList(Consumer<ToxicLabels.Builder>... resultList) Results of the content moderation analysis.resultList(ToxicLabels... resultList) Results of the content moderation analysis.Methods inherited from interface software.amazon.awssdk.services.comprehend.model.ComprehendResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse 
- 
Method Details
- 
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
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
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 toresultList(List<ToxicLabels>).- 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:
 
 
 -