@Generated(value="software.amazon.awssdk:codegen") public final class DetectDominantLanguageResponse extends ComprehendResponse implements ToCopyableBuilder<DetectDominantLanguageResponse.Builder,DetectDominantLanguageResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DetectDominantLanguageResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DetectDominantLanguageResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasLanguages()
Returns true if the Languages property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
List<DominantLanguage> |
languages()
The languages that Amazon Comprehend detected in the input text.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DetectDominantLanguageResponse.Builder> |
serializableBuilderClass() |
DetectDominantLanguageResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasLanguages()
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasLanguages() to see if a value was sent in this field.
public DetectDominantLanguageResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DetectDominantLanguageResponse.Builder,DetectDominantLanguageResponse>toBuilder in class AwsResponsepublic static DetectDominantLanguageResponse.Builder builder()
public static Class<? extends DetectDominantLanguageResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2021. All rights reserved.