@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectSentimentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
DetectSentimentRequest() |
| Modifier and Type | Method and Description |
|---|---|
DetectSentimentRequest |
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.
|
String |
getText()
A UTF-8 text string.
|
int |
hashCode() |
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.
|
DetectSentimentRequest |
withLanguageCode(LanguageCode languageCode)
The language of the input documents.
|
DetectSentimentRequest |
withLanguageCode(String languageCode)
The language of the input documents.
|
DetectSentimentRequest |
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, withSdkRequestTimeoutpublic 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 DetectSentimentRequest 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 English ("en") or Spanish ("es"). All documents must be in the same language.
languageCode - The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents must
be in the same language.LanguageCodepublic String getLanguageCode()
The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents must be in the same language.
LanguageCodepublic DetectSentimentRequest withLanguageCode(String languageCode)
The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents must be in the same language.
languageCode - The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents must
be in the same language.LanguageCodepublic DetectSentimentRequest withLanguageCode(LanguageCode languageCode)
The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents must be in the same language.
languageCode - The language of the input documents. You can specify English ("en") or Spanish ("es"). All documents must
be in the same language.LanguageCodepublic String toString()
toString in class ObjectObject.toString()public DetectSentimentRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.