@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Emotion extends Object implements Serializable, Cloneable, StructuredPojo
The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
| Constructor and Description |
|---|
Emotion() |
| Modifier and Type | Method and Description |
|---|---|
Emotion |
clone() |
boolean |
equals(Object obj) |
Float |
getConfidence()
Level of confidence in the determination.
|
String |
getType()
Type of emotion detected.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setConfidence(Float confidence)
Level of confidence in the determination.
|
void |
setType(EmotionName type)
Type of emotion detected.
|
void |
setType(String type)
Type of emotion detected.
|
String |
toString()
Returns a string representation of this object.
|
Emotion |
withConfidence(Float confidence)
Level of confidence in the determination.
|
Emotion |
withType(EmotionName type)
Type of emotion detected.
|
Emotion |
withType(String type)
Type of emotion detected.
|
public void setType(String type)
Type of emotion detected.
type - Type of emotion detected.EmotionNamepublic String getType()
Type of emotion detected.
EmotionNamepublic Emotion withType(String type)
Type of emotion detected.
type - Type of emotion detected.EmotionNamepublic void setType(EmotionName type)
Type of emotion detected.
type - Type of emotion detected.EmotionNamepublic Emotion withType(EmotionName type)
Type of emotion detected.
type - Type of emotion detected.EmotionNamepublic void setConfidence(Float confidence)
Level of confidence in the determination.
confidence - Level of confidence in the determination.public Float getConfidence()
Level of confidence in the determination.
public Emotion withConfidence(Float confidence)
Level of confidence in the determination.
confidence - Level of confidence in the determination.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.