Interface ModerationLabel.Builder

    • Method Detail

      • confidence

        ModerationLabel.Builder confidence​(Float confidence)

        Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.

        If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent.

        Parameters:
        confidence - Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.

        If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        ModerationLabel.Builder name​(String name)

        The label name for the type of unsafe content detected in the image.

        Parameters:
        name - The label name for the type of unsafe content detected in the image.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • parentName

        ModerationLabel.Builder parentName​(String parentName)

        The name for the parent label. Labels at the top level of the hierarchy have the parent label "" .

        Parameters:
        parentName - The name for the parent label. Labels at the top level of the hierarchy have the parent label "".
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • taxonomyLevel

        ModerationLabel.Builder taxonomyLevel​(Integer taxonomyLevel)

        The level of the moderation label with regard to its taxonomy, from 1 to 3.

        Parameters:
        taxonomyLevel - The level of the moderation label with regard to its taxonomy, from 1 to 3.
        Returns:
        Returns a reference to this object so that method calls can be chained together.