Class Emotion
- java.lang.Object
-
- software.amazon.awssdk.services.rekognition.model.Emotion
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Emotion.Builder,Emotion>
@Generated("software.amazon.awssdk:codegen") public final class Emotion extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Emotion.Builder,Emotion>
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEmotion.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Emotion.Builderbuilder()Floatconfidence()Level of confidence in the determination.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Emotion.Builder>serializableBuilderClass()Emotion.BuildertoBuilder()StringtoString()Returns a string representation of this object.EmotionNametype()Type of emotion detected.StringtypeAsString()Type of emotion detected.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public final EmotionName type()
Type of emotion detected.
If the service returns an enum value that is not available in the current SDK version,
typewill returnEmotionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Type of emotion detected.
- See Also:
EmotionName
-
typeAsString
public final String typeAsString()
Type of emotion detected.
If the service returns an enum value that is not available in the current SDK version,
typewill returnEmotionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Type of emotion detected.
- See Also:
EmotionName
-
confidence
public final Float confidence()
Level of confidence in the determination.
- Returns:
- Level of confidence in the determination.
-
toBuilder
public Emotion.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Emotion.Builder,Emotion>
-
builder
public static Emotion.Builder builder()
-
serializableBuilderClass
public static Class<? extends Emotion.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-