@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchDetectTargetedSentimentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
BatchDetectTargetedSentimentRequest() |
| Modifier and Type | Method and Description |
|---|---|
BatchDetectTargetedSentimentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getLanguageCode()
The language of the input documents.
|
List<String> |
getTextList()
A list containing the UTF-8 encoded text of the input documents.
|
int |
hashCode() |
void |
setLanguageCode(String languageCode)
The language of the input documents.
|
void |
setTextList(Collection<String> textList)
A list containing the UTF-8 encoded text of the input documents.
|
String |
toString()
Returns a string representation of this object.
|
BatchDetectTargetedSentimentRequest |
withLanguageCode(LanguageCode languageCode)
The language of the input documents.
|
BatchDetectTargetedSentimentRequest |
withLanguageCode(String languageCode)
The language of the input documents.
|
BatchDetectTargetedSentimentRequest |
withTextList(Collection<String> textList)
A list containing the UTF-8 encoded text of the input documents.
|
BatchDetectTargetedSentimentRequest |
withTextList(String... textList)
A list containing the UTF-8 encoded text of the input documents.
|
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, withSdkRequestTimeoutpublic List<String> getTextList()
A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.
public void setTextList(Collection<String> textList)
A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.
textList - A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25
documents. The maximum size of each document is 5 KB.public BatchDetectTargetedSentimentRequest withTextList(String... textList)
A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.
NOTE: This method appends the values to the existing list (if any). Use
setTextList(java.util.Collection) or withTextList(java.util.Collection) if you want to override
the existing values.
textList - A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25
documents. The maximum size of each document is 5 KB.public BatchDetectTargetedSentimentRequest withTextList(Collection<String> textList)
A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.
textList - A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25
documents. The maximum size of each document is 5 KB.public void setLanguageCode(String languageCode)
The language of the input documents. Currently, English is the only supported language.
languageCode - The language of the input documents. Currently, English is the only supported language.LanguageCodepublic String getLanguageCode()
The language of the input documents. Currently, English is the only supported language.
LanguageCodepublic BatchDetectTargetedSentimentRequest withLanguageCode(String languageCode)
The language of the input documents. Currently, English is the only supported language.
languageCode - The language of the input documents. Currently, English is the only supported language.LanguageCodepublic BatchDetectTargetedSentimentRequest withLanguageCode(LanguageCode languageCode)
The language of the input documents. Currently, English is the only supported language.
languageCode - The language of the input documents. Currently, English is the only supported language.LanguageCodepublic String toString()
toString in class ObjectObject.toString()public BatchDetectTargetedSentimentRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()