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 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 the ToxicLabels.Builder avoiding the need to create one manually via ToxicLabels.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resultList(List<ToxicLabels>).

      Parameters:
      resultList - a consumer that will call methods on ToxicLabels.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: