public class ClassifyDocumentRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.
| Constructor and Description |
|---|
ClassifyDocumentRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEndpointArn()
The Amazon Resource Number (ARN) of the endpoint.
|
java.lang.String |
getText()
The document text to be analyzed.
|
int |
hashCode() |
void |
setEndpointArn(java.lang.String endpointArn)
The Amazon Resource Number (ARN) of the endpoint.
|
void |
setText(java.lang.String text)
The document text to be analyzed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClassifyDocumentRequest |
withEndpointArn(java.lang.String endpointArn)
The Amazon Resource Number (ARN) of the endpoint.
|
ClassifyDocumentRequest |
withText(java.lang.String text)
The document text to be analyzed.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getText()
The document text to be analyzed.
Constraints:
Length: 1 -
The document text to be analyzed.
public void setText(java.lang.String text)
The document text to be analyzed.
Constraints:
Length: 1 -
text - The document text to be analyzed.
public ClassifyDocumentRequest withText(java.lang.String text)
The document text to be analyzed.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
text - The document text to be analyzed.
public java.lang.String getEndpointArn()
The Amazon Resource Number (ARN) of the endpoint.
Constraints:
Length: - 256
Pattern:
arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document
-classifier-endpoint/[a-zA-Z0-9](-*[a-zA-Z0-9])*
The Amazon Resource Number (ARN) of the endpoint.
public void setEndpointArn(java.lang.String endpointArn)
The Amazon Resource Number (ARN) of the endpoint.
Constraints:
Length: - 256
Pattern:
arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document
-classifier-endpoint/[a-zA-Z0-9](-*[a-zA-Z0-9])*
endpointArn - The Amazon Resource Number (ARN) of the endpoint.
public ClassifyDocumentRequest withEndpointArn(java.lang.String endpointArn)
The Amazon Resource Number (ARN) of the endpoint.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 256
Pattern:
arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document
-classifier-endpoint/[a-zA-Z0-9](-*[a-zA-Z0-9])*
endpointArn - The Amazon Resource Number (ARN) of the endpoint.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.