@Generated(value="software.amazon.awssdk:codegen") public final class ModerationLabel extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ModerationLabel.Builder,ModerationLabel>
Provides information about a single type of unsafe content found in an image or video. Each type of moderated content has a label within a hierarchical taxonomy. For more information, see Detecting Unsafe Content in the Amazon Rekognition Developer Guide.
Modifier and Type | Class and Description |
---|---|
static interface |
ModerationLabel.Builder |
Modifier and Type | Method and Description |
---|---|
static ModerationLabel.Builder |
builder() |
Float |
confidence()
Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The label name for the type of unsafe content detected in the image.
|
String |
parentName()
The name for the parent label.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ModerationLabel.Builder> |
serializableBuilderClass() |
ModerationLabel.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
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.
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.
public final String name()
The label name for the type of unsafe content detected in the image.
public final String parentName()
The name for the parent label. Labels at the top level of the hierarchy have the parent label ""
.
""
.public ModerationLabel.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ModerationLabel.Builder,ModerationLabel>
public static ModerationLabel.Builder builder()
public static Class<? extends ModerationLabel.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.