Class ModerationLabel
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ModerationLabel.Builderbuilder()final FloatSpecifies the confidence that Amazon Rekognition has that the label has been correctly identified.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringname()The label name for the type of unsafe content detected in the image.final StringThe name for the parent label.static Class<? extends ModerationLabel.Builder> final IntegerThe level of the moderation label with regard to its taxonomy, from 1 to 3.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
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
"".
-
taxonomyLevel
The level of the moderation label with regard to its taxonomy, from 1 to 3.
- Returns:
- The level of the moderation label with regard to its taxonomy, from 1 to 3.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ModerationLabel.Builder,ModerationLabel> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-