@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ToxicContent extends Object implements Serializable, Cloneable, StructuredPojo
Toxic content analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide
Constructor and Description |
---|
ToxicContent() |
Modifier and Type | Method and Description |
---|---|
ToxicContent |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the toxic content type.
|
Float |
getScore()
Model confidence in the detected content type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the toxic content type.
|
void |
setScore(Float score)
Model confidence in the detected content type.
|
String |
toString()
Returns a string representation of this object.
|
ToxicContent |
withName(String name)
The name of the toxic content type.
|
ToxicContent |
withName(ToxicContentType name)
The name of the toxic content type.
|
ToxicContent |
withScore(Float score)
Model confidence in the detected content type.
|
public void setName(String name)
The name of the toxic content type.
name
- The name of the toxic content type.ToxicContentType
public String getName()
The name of the toxic content type.
ToxicContentType
public ToxicContent withName(String name)
The name of the toxic content type.
name
- The name of the toxic content type.ToxicContentType
public ToxicContent withName(ToxicContentType name)
The name of the toxic content type.
name
- The name of the toxic content type.ToxicContentType
public void setScore(Float score)
Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.
score
- Model confidence in the detected content type. Value range is zero to one, where one is highest
confidence.public Float getScore()
Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.
public ToxicContent withScore(Float score)
Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.
score
- Model confidence in the detected content type. Value range is zero to one, where one is highest
confidence.public String toString()
toString
in class Object
Object.toString()
public ToxicContent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.