public class Emotion extends Object implements Serializable, Cloneable
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 |
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.EmotionName
public String getType()
Type of emotion detected.
EmotionName
public Emotion withType(String type)
Type of emotion detected.
type
- Type of emotion detected.EmotionName
public void setType(EmotionName type)
Type of emotion detected.
type
- Type of emotion detected.EmotionName
public Emotion withType(EmotionName type)
Type of emotion detected.
type
- Type of emotion detected.EmotionName
public 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 Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.