@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectEntitiesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DetectEntitiesRequest() |
Modifier and Type | Method and Description |
---|---|
DetectEntitiesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getEndpointArn()
The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model.
|
String |
getLanguageCode()
The language of the input documents.
|
String |
getText()
A UTF-8 text string.
|
int |
hashCode() |
void |
setEndpointArn(String endpointArn)
The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model.
|
void |
setLanguageCode(String languageCode)
The language of the input documents.
|
void |
setText(String text)
A UTF-8 text string.
|
String |
toString()
Returns a string representation of this object.
|
DetectEntitiesRequest |
withEndpointArn(String endpointArn)
The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model.
|
DetectEntitiesRequest |
withLanguageCode(LanguageCode languageCode)
The language of the input documents.
|
DetectEntitiesRequest |
withLanguageCode(String languageCode)
The language of the input documents.
|
DetectEntitiesRequest |
withText(String text)
A UTF-8 text string.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setText(String text)
A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
text
- A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.public String getText()
A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
public DetectEntitiesRequest withText(String text)
A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
text
- A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.public void setLanguageCode(String 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.
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.
LanguageCode
public String getLanguageCode()
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 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.
LanguageCode
public DetectEntitiesRequest withLanguageCode(String 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.
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.
LanguageCode
public DetectEntitiesRequest withLanguageCode(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.
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.
LanguageCode
public void setEndpointArn(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.
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.
public String getEndpointArn()
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 withEndpointArn(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.
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.
public String toString()
toString
in class Object
Object.toString()
public DetectEntitiesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()