public class ModerationLabel extends Object implements Serializable
Provides information about a single type of moderated 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(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 content detected in the image.
|
String |
getParentName()
The name for the parent label.
|
int |
hashCode() |
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 content detected in the image.
|
void |
setParentName(String parentName)
The name for the parent label.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
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 content detected in the image.
|
ModerationLabel |
withParentName(String parentName)
The name for the parent label.
|
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.
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(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(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 String getName()
The label name for the type of content detected in the image.
The label name for the type of content detected in the image.
public void setName(String name)
The label name for the type of content detected in the image.
name
- The label name for the type of content detected in the image.
public ModerationLabel withName(String name)
The label name for the type of 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 content detected in the image.
public 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(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(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.