@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DominantLanguage extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
DominantLanguage() |
Modifier and Type | Method and Description |
---|---|
DominantLanguage |
clone() |
boolean |
equals(Object obj) |
String |
getLanguageCode()
The RFC 5646 language code for the dominant language.
|
Float |
getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLanguageCode(String languageCode)
The RFC 5646 language code for the dominant language.
|
void |
setScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
String |
toString()
Returns a string representation of this object.
|
DominantLanguage |
withLanguageCode(String languageCode)
The RFC 5646 language code for the dominant language.
|
DominantLanguage |
withScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
public void setLanguageCode(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.
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.public String getLanguageCode()
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.
public DominantLanguage withLanguageCode(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.
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.public void setScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
score
- The level of confidence that Amazon Comprehend has in the accuracy of the detection.public Float getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public DominantLanguage withScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
score
- The level of confidence that Amazon Comprehend has in the accuracy of the detection.public String toString()
toString
in class Object
Object.toString()
public DominantLanguage clone()
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.