Class ModerationLabel

    • Method Detail

      • confidence

        public final 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.

        Returns:
        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.

      • name

        public final String name()

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

        Returns:
        The label name for the type of unsafe content detected in the image.
      • parentName

        public final String parentName()

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

        Returns:
        The name for the parent label. Labels at the top level of the hierarchy have the parent label "".
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)