@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()
The languages that Amazon Comprehend detected in the input text.
|
int |
hashCode() |
void |
setLanguages(Collection<DominantLanguage> languages)
The languages that Amazon Comprehend detected in the input text.
|
String |
toString()
Returns a string representation of this object.
|
DetectDominantLanguageResult |
withLanguages(Collection<DominantLanguage> languages)
The languages that Amazon Comprehend detected in the input text.
|
DetectDominantLanguageResult |
withLanguages(DominantLanguage... languages)
The languages that Amazon Comprehend detected in the input text.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<DominantLanguage> getLanguages()
The languages that Amazon Comprehend detected in the input text. 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)
The languages that Amazon Comprehend detected in the input text. 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
- The languages that Amazon Comprehend detected in the input text. 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)
The languages that Amazon Comprehend detected in the input text. 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
- The languages that Amazon Comprehend detected in the input text. 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)
The languages that Amazon Comprehend detected in the input text. 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
- The languages that Amazon Comprehend detected in the input text. 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()