@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 moderated content found in an image. Each type of moderated content has a label within a hierarchical taxonomy. For more information, see image-moderation.
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 content detected in the image.
|
String |
getParentName()
The name for the parent label.
|
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 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 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 content detected in the image.
name
- The label name for the type of content detected in the image.public String getName()
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.
name
- The label name for the type of 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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.