@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectTargetedSentimentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DetectTargetedSentimentRequest() |
Modifier and Type | Method and Description |
---|---|
DetectTargetedSentimentRequest |
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.
|
DetectTargetedSentimentRequest |
withLanguageCode(LanguageCode languageCode)
The language of the input documents.
|
DetectTargetedSentimentRequest |
withLanguageCode(String languageCode)
The language of the input documents.
|
DetectTargetedSentimentRequest |
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. The maximum string length is 5 KB.
text
- A UTF-8 text string. The maximum string length is 5 KB.public String getText()
A UTF-8 text string. The maximum string length is 5 KB.
public DetectTargetedSentimentRequest withText(String text)
A UTF-8 text string. The maximum string length is 5 KB.
text
- A UTF-8 text string. The maximum string length 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.LanguageCode
public String getLanguageCode()
The language of the input documents. Currently, English is the only supported language.
LanguageCode
public DetectTargetedSentimentRequest 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.LanguageCode
public DetectTargetedSentimentRequest 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.LanguageCode
public String toString()
toString
in class Object
Object.toString()
public DetectTargetedSentimentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()