Class ModerationLabel
- java.lang.Object
-
- software.amazon.awssdk.services.rekognition.model.ModerationLabel
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ModerationLabel.Builder,ModerationLabel>
@Generated("software.amazon.awssdk:codegen") public final class ModerationLabel extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ModerationLabel.Builder,ModerationLabel>
Provides information about a single type of inappropriate, unwanted, or offensive content found in an image or video. Each type of moderated content has a label within a hierarchical taxonomy. For more information, see Content moderation in the Amazon Rekognition Developer Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceModerationLabel.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModerationLabel.Builderbuilder()Floatconfidence()Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The label name for the type of unsafe content detected in the image.StringparentName()The name for the parent label.List<SdkField<?>>sdkFields()static Class<? extends ModerationLabel.Builder>serializableBuilderClass()ModerationLabel.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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
MinConfidenceparameter in the call toDetectModerationLabels, 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
MinConfidenceparameter in the call toDetectModerationLabels, 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
"".
-
toBuilder
public ModerationLabel.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ModerationLabel.Builder,ModerationLabel>
-
builder
public static ModerationLabel.Builder builder()
-
serializableBuilderClass
public static Class<? extends ModerationLabel.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-