@Generated(value="software.amazon.awssdk:codegen") public final class ModerationLabel extends Object implements StructuredPojo, ToCopyableBuilder<ModerationLabel.Builder,ModerationLabel>
Provides information about a single type of moderated content found in an image. Each type of moderated content has a label within a hierarchical taxonomy. For more information, see image-moderation.
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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The label name for the type of content detected in the image.
|
String |
parentName()
The name for the parent label.
|
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() |
copy
public 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 String name()
The label name for the type of content detected in the image.
public 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 void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.