public class ModerationLabel
extends java.lang.Object
implements java.io.Serializable
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.
Constructor and Description |
---|
ModerationLabel() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Float |
getConfidence()
Specifies the confidence that Amazon Rekognition has that the label has
been correctly identified.
|
java.lang.String |
getName()
The label name for the type of unsafe content detected in the image.
|
java.lang.String |
getParentName()
The name for the parent label.
|
int |
hashCode() |
void |
setConfidence(java.lang.Float confidence)
Specifies the confidence that Amazon Rekognition has that the label has
been correctly identified.
|
void |
setName(java.lang.String name)
The label name for the type of unsafe content detected in the image.
|
void |
setParentName(java.lang.String parentName)
The name for the parent label.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModerationLabel |
withConfidence(java.lang.Float confidence)
Specifies the confidence that Amazon Rekognition has that the label has
been correctly identified.
|
ModerationLabel |
withName(java.lang.String name)
The label name for the type of unsafe content detected in the image.
|
ModerationLabel |
withParentName(java.lang.String parentName)
The name for the parent label.
|
public java.lang.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.
Constraints:
Length: 0 - 100
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 setConfidence(java.lang.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.
Constraints:
Length: 0 - 100
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 ModerationLabel withConfidence(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
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 java.lang.String getName()
The label name for the type of unsafe content detected in the image.
The label name for the type of unsafe content detected in the image.
public void setName(java.lang.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 ModerationLabel withName(java.lang.String name)
The label name for the type of unsafe content detected in the image.
Returns a reference to this object so that method calls can be chained together.
name
- The label name for the type of unsafe content detected in the image.
public java.lang.String getParentName()
The name for the parent label. Labels at the top level of the hierarchy
have the parent label ""
.
The name for the parent label. Labels at the top level of the
hierarchy have the parent label ""
.
public void setParentName(java.lang.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 ModerationLabel withParentName(java.lang.String parentName)
The name for the parent label. Labels at the top level of the hierarchy
have the parent label ""
.
Returns a reference to this object so that method calls can be chained together.
parentName
-
The name for the parent label. Labels at the top level of the
hierarchy have the parent label ""
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.