public class DetectSyntaxRequest extends AmazonWebServiceRequest implements java.io.Serializable
Inspects text for syntax and the part of speech of words in the document. For more information, how-syntax.
Constructor and Description |
---|
DetectSyntaxRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLanguageCode()
The language code of the input documents.
|
java.lang.String |
getText()
A UTF-8 string.
|
int |
hashCode() |
void |
setLanguageCode(java.lang.String languageCode)
The language code of the input documents.
|
void |
setLanguageCode(SyntaxLanguageCode languageCode)
The language code of the input documents.
|
void |
setText(java.lang.String text)
A UTF-8 string.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetectSyntaxRequest |
withLanguageCode(java.lang.String languageCode)
The language code of the input documents.
|
DetectSyntaxRequest |
withLanguageCode(SyntaxLanguageCode languageCode)
The language code of the input documents.
|
DetectSyntaxRequest |
withText(java.lang.String text)
A UTF-8 string.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getText()
A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded characters.
Constraints:
Length: 1 -
A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded characters.
public void setText(java.lang.String text)
A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded characters.
Constraints:
Length: 1 -
text
- A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded characters.
public DetectSyntaxRequest withText(java.lang.String text)
A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded characters.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
text
- A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded characters.
public java.lang.String getLanguageCode()
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
Constraints:
Allowed Values: en, es, fr, de, it, pt
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
SyntaxLanguageCode
public void setLanguageCode(java.lang.String languageCode)
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
Constraints:
Allowed Values: en, es, fr, de, it, pt
languageCode
- The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
SyntaxLanguageCode
public DetectSyntaxRequest withLanguageCode(java.lang.String languageCode)
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: en, es, fr, de, it, pt
languageCode
- The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
SyntaxLanguageCode
public void setLanguageCode(SyntaxLanguageCode languageCode)
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
Constraints:
Allowed Values: en, es, fr, de, it, pt
languageCode
- The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
SyntaxLanguageCode
public DetectSyntaxRequest withLanguageCode(SyntaxLanguageCode languageCode)
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: en, es, fr, de, it, pt
languageCode
- The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
SyntaxLanguageCode
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.