Class DominantLanguage
- java.lang.Object
-
- software.amazon.awssdk.services.comprehend.model.DominantLanguage
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DominantLanguage.Builder,DominantLanguage>
@Generated("software.amazon.awssdk:codegen") public final class DominantLanguage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DominantLanguage.Builder,DominantLanguage>
Returns the code for the dominant language in the input text and the level of confidence that Amazon Comprehend has in the accuracy of the detection.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDominantLanguage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DominantLanguage.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringlanguageCode()The RFC 5646 language code for the dominant language.Floatscore()The level of confidence that Amazon Comprehend has in the accuracy of the detection.List<SdkField<?>>sdkFields()static Class<? extends DominantLanguage.Builder>serializableBuilderClass()DominantLanguage.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
-
languageCode
public final String languageCode()
The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
- Returns:
- The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
-
score
public final Float score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
- Returns:
- The level of confidence that Amazon Comprehend has in the accuracy of the detection.
-
toBuilder
public DominantLanguage.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DominantLanguage.Builder,DominantLanguage>
-
builder
public static DominantLanguage.Builder builder()
-
serializableBuilderClass
public static Class<? extends DominantLanguage.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.
-
-