@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectDominantLanguageResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DetectDominantLanguageResult() |
Modifier and Type | Method and Description |
---|---|
DetectDominantLanguageResult |
clone() |
boolean |
equals(Object obj) |
List<DominantLanguage> |
getLanguages()
Array of languages that Amazon Comprehend detected in the input text.
|
int |
hashCode() |
void |
setLanguages(Collection<DominantLanguage> languages)
Array of languages that Amazon Comprehend detected in the input text.
|
String |
toString()
Returns a string representation of this object.
|
DetectDominantLanguageResult |
withLanguages(Collection<DominantLanguage> languages)
Array of languages that Amazon Comprehend detected in the input text.
|
DetectDominantLanguageResult |
withLanguages(DominantLanguage... languages)
Array of languages that Amazon Comprehend detected in the input text.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<DominantLanguage> getLanguages()
Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
public void setLanguages(Collection<DominantLanguage> languages)
Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
languages
- Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending
order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
public DetectDominantLanguageResult withLanguages(DominantLanguage... languages)
Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
NOTE: This method appends the values to the existing list (if any). Use
setLanguages(java.util.Collection)
or withLanguages(java.util.Collection)
if you want to
override the existing values.
languages
- Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending
order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
public DetectDominantLanguageResult withLanguages(Collection<DominantLanguage> languages)
Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
languages
- Array of languages that Amazon Comprehend detected in the input text. The array is sorted in descending
order of the score (the dominant language is always the first element in the array).
For each language, the response returns the RFC 5646 language code and the level of confidence that Amazon Comprehend has in the accuracy of its inference. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
public String toString()
toString
in class Object
Object.toString()
public DetectDominantLanguageResult clone()