@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Emotion extends Object implements Serializable, Cloneable, StructuredPojo
The emotions detected on the face, and the confidence level in the determination. For example, HAPPY, SAD, and ANGRY.
| 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; useful for testing and debugging.
|
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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.