@Generated(value="software.amazon.awssdk:codegen") public final class DetectEntitiesRequest extends ComprehendRequest implements ToCopyableBuilder<DetectEntitiesRequest.Builder,DetectEntitiesRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DetectEntitiesRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DetectEntitiesRequest.Builder |
builder() |
String |
endpointArn()
The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
LanguageCode |
languageCode()
The language of the input documents.
|
String |
languageCodeAsString()
The language of the input documents.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DetectEntitiesRequest.Builder> |
serializableBuilderClass() |
String |
text()
A UTF-8 text string.
|
DetectEntitiesRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String text()
A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
public final LanguageCode languageCode()
The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.
If your request includes the endpoint for a custom entity recognition model, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you specify here.
If the service returns an enum value that is not available in the current SDK version, languageCode will
return LanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
languageCodeAsString().
If your request includes the endpoint for a custom entity recognition model, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you specify here.
LanguageCodepublic final String languageCodeAsString()
The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.
If your request includes the endpoint for a custom entity recognition model, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you specify here.
If the service returns an enum value that is not available in the current SDK version, languageCode will
return LanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
languageCodeAsString().
If your request includes the endpoint for a custom entity recognition model, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you specify here.
LanguageCodepublic final String endpointArn()
The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model. Provide an endpoint if you want to detect entities by using your own custom model instead of the default model that is used by Amazon Comprehend.
If you specify an endpoint, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you provide in your request.
If you specify an endpoint, Amazon Comprehend uses the language of your custom model, and it ignores any language code that you provide in your request.
public DetectEntitiesRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DetectEntitiesRequest.Builder,DetectEntitiesRequest>toBuilder in class ComprehendRequestpublic static DetectEntitiesRequest.Builder builder()
public static Class<? extends DetectEntitiesRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic 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 SdkRequestCopyright © 2021. All rights reserved.