@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ToxicLabels extends Object implements Serializable, Cloneable, StructuredPojo
Toxicity analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide
| Constructor and Description |
|---|
ToxicLabels() |
| Modifier and Type | Method and Description |
|---|---|
ToxicLabels |
clone() |
boolean |
equals(Object obj) |
List<ToxicContent> |
getLabels()
Array of toxic content types identified in the string.
|
Float |
getToxicity()
Overall toxicity score for the string.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setLabels(Collection<ToxicContent> labels)
Array of toxic content types identified in the string.
|
void |
setToxicity(Float toxicity)
Overall toxicity score for the string.
|
String |
toString()
Returns a string representation of this object.
|
ToxicLabels |
withLabels(Collection<ToxicContent> labels)
Array of toxic content types identified in the string.
|
ToxicLabels |
withLabels(ToxicContent... labels)
Array of toxic content types identified in the string.
|
ToxicLabels |
withToxicity(Float toxicity)
Overall toxicity score for the string.
|
public List<ToxicContent> getLabels()
Array of toxic content types identified in the string.
public void setLabels(Collection<ToxicContent> labels)
Array of toxic content types identified in the string.
labels - Array of toxic content types identified in the string.public ToxicLabels withLabels(ToxicContent... labels)
Array of toxic content types identified in the string.
NOTE: This method appends the values to the existing list (if any). Use
setLabels(java.util.Collection) or withLabels(java.util.Collection) if you want to override the
existing values.
labels - Array of toxic content types identified in the string.public ToxicLabels withLabels(Collection<ToxicContent> labels)
Array of toxic content types identified in the string.
labels - Array of toxic content types identified in the string.public void setToxicity(Float toxicity)
Overall toxicity score for the string.
toxicity - Overall toxicity score for the string.public Float getToxicity()
Overall toxicity score for the string.
public ToxicLabels withToxicity(Float toxicity)
Overall toxicity score for the string.
toxicity - Overall toxicity score for the string.public String toString()
toString in class ObjectObject.toString()public ToxicLabels clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.