@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModerationLabel extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ModerationLabel() |
Modifier and Type | Method and Description |
---|---|
ModerationLabel |
clone() |
boolean |
equals(Object obj) |
Float |
getConfidence()
Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.
|
String |
getName()
The label name for the type of unsafe content detected in the image.
|
String |
getParentName()
The name for the parent label.
|
Integer |
getTaxonomyLevel()
The level of the moderation label with regard to its taxonomy, from 1 to 3.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConfidence(Float confidence)
Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.
|
void |
setName(String name)
The label name for the type of unsafe content detected in the image.
|
void |
setParentName(String parentName)
The name for the parent label.
|
void |
setTaxonomyLevel(Integer taxonomyLevel)
The level of the moderation label with regard to its taxonomy, from 1 to 3.
|
String |
toString()
Returns a string representation of this object.
|
ModerationLabel |
withConfidence(Float confidence)
Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.
|
ModerationLabel |
withName(String name)
The label name for the type of unsafe content detected in the image.
|
ModerationLabel |
withParentName(String parentName)
The name for the parent label.
|
ModerationLabel |
withTaxonomyLevel(Integer taxonomyLevel)
The level of the moderation label with regard to its taxonomy, from 1 to 3.
|
public void setConfidence(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.
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.
public Float getConfidence()
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 ModerationLabel withConfidence(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.
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.
public void setName(String name)
The label name for the type of unsafe content detected in the image.
name
- The label name for the type of unsafe content detected in the image.public String getName()
The label name for the type of unsafe content detected in the image.
public ModerationLabel withName(String name)
The label name for the type of unsafe content detected in the image.
name
- The label name for the type of unsafe content detected in the image.public void setParentName(String parentName)
The name for the parent label. Labels at the top level of the hierarchy have the parent label ""
.
parentName
- The name for the parent label. Labels at the top level of the hierarchy have the parent label
""
.public String getParentName()
The name for the parent label. Labels at the top level of the hierarchy have the parent label ""
.
""
.public ModerationLabel withParentName(String parentName)
The name for the parent label. Labels at the top level of the hierarchy have the parent label ""
.
parentName
- The name for the parent label. Labels at the top level of the hierarchy have the parent label
""
.public void setTaxonomyLevel(Integer taxonomyLevel)
The level of the moderation label with regard to its taxonomy, from 1 to 3.
taxonomyLevel
- The level of the moderation label with regard to its taxonomy, from 1 to 3.public Integer getTaxonomyLevel()
The level of the moderation label with regard to its taxonomy, from 1 to 3.
public ModerationLabel withTaxonomyLevel(Integer taxonomyLevel)
The level of the moderation label with regard to its taxonomy, from 1 to 3.
taxonomyLevel
- The level of the moderation label with regard to its taxonomy, from 1 to 3.public String toString()
toString
in class Object
Object.toString()
public ModerationLabel clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.