@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.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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.