Class SentimentScore
- java.lang.Object
-
- software.amazon.awssdk.services.lexruntimev2.model.SentimentScore
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SentimentScore.Builder,SentimentScore>
@Generated("software.amazon.awssdk:codegen") public final class SentimentScore extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SentimentScore.Builder,SentimentScore>
The individual sentiment responses for the utterance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSentimentScore.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SentimentScore.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Doublemixed()The level of confidence that Amazon Comprehend has in the accuracy of its detection of theMIXEDsentiment.Doublenegative()The level of confidence that Amazon Comprehend has in the accuracy of its detection of theNEGATIVEsentiment.Doubleneutral()The level of confidence that Amazon Comprehend has in the accuracy of its detection of theNEUTRALsentiment.Doublepositive()The level of confidence that Amazon Comprehend has in the accuracy of its detection of thePOSITIVEsentiment.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SentimentScore.Builder>serializableBuilderClass()SentimentScore.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
positive
public final Double positive()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
POSITIVEsentiment.- Returns:
- The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
POSITIVEsentiment.
-
negative
public final Double negative()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVEsentiment.- Returns:
- The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEGATIVEsentiment.
-
neutral
public final Double neutral()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRALsentiment.- Returns:
- The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
NEUTRALsentiment.
-
mixed
public final Double mixed()
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXEDsentiment.- Returns:
- The level of confidence that Amazon Comprehend has in the accuracy of its detection of the
MIXEDsentiment.
-
toBuilder
public SentimentScore.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SentimentScore.Builder,SentimentScore>
-
builder
public static SentimentScore.Builder builder()
-
serializableBuilderClass
public static Class<? extends SentimentScore.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
-
-