@Generated(value="software.amazon.awssdk:codegen") public final class DominantLanguage extends Object implements StructuredPojo, 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.
Modifier and Type | Class and Description |
---|---|
static interface |
DominantLanguage.Builder |
Modifier and Type | Method and Description |
---|---|
static DominantLanguage.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
languageCode()
The RFC 5646 language code for the dominant language.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Float |
score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
static Class<? extends DominantLanguage.Builder> |
serializableBuilderClass() |
DominantLanguage.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String languageCode()
The RFC 5646 language code for the dominant language.
public Float score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public DominantLanguage.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DominantLanguage.Builder,DominantLanguage>
public static DominantLanguage.Builder builder()
public static Class<? extends DominantLanguage.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.