@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 RFC 5646 language code for the input text.
|
String |
getText()
A UTF-8 text string.
|
int |
hashCode() |
void |
setLanguageCode(String languageCode)
The RFC 5646 language code for the input text.
|
void |
setText(String text)
A UTF-8 text string.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DetectSentimentRequest |
withLanguageCode(LanguageCode languageCode)
The RFC 5646 language code for the input text.
|
DetectSentimentRequest |
withLanguageCode(String languageCode)
The RFC 5646 language code for the input text.
|
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, withSdkRequestTimeout
public 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 RFC 5646 language code for the input text. If you don't specify a language code, Amazon Comprehend detects
the dominant language. If you specify the code for a language that Amazon Comprehend does not support, it returns
and UnsupportedLanguageException
. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
languageCode
- The RFC 5646 language code for the input text. If you don't specify a language code, Amazon Comprehend
detects the dominant language. If you specify the code for a language that Amazon Comprehend does not
support, it returns and UnsupportedLanguageException
. For more information about RFC 5646,
see Tags for Identifying Languages on the IETF
Tools web site.LanguageCode
public String getLanguageCode()
The RFC 5646 language code for the input text. If you don't specify a language code, Amazon Comprehend detects
the dominant language. If you specify the code for a language that Amazon Comprehend does not support, it returns
and UnsupportedLanguageException
. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
UnsupportedLanguageException
. For more information about RFC 5646,
see Tags for Identifying Languages on the IETF
Tools web site.LanguageCode
public DetectSentimentRequest withLanguageCode(String languageCode)
The RFC 5646 language code for the input text. If you don't specify a language code, Amazon Comprehend detects
the dominant language. If you specify the code for a language that Amazon Comprehend does not support, it returns
and UnsupportedLanguageException
. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
languageCode
- The RFC 5646 language code for the input text. If you don't specify a language code, Amazon Comprehend
detects the dominant language. If you specify the code for a language that Amazon Comprehend does not
support, it returns and UnsupportedLanguageException
. For more information about RFC 5646,
see Tags for Identifying Languages on the IETF
Tools web site.LanguageCode
public DetectSentimentRequest withLanguageCode(LanguageCode languageCode)
The RFC 5646 language code for the input text. If you don't specify a language code, Amazon Comprehend detects
the dominant language. If you specify the code for a language that Amazon Comprehend does not support, it returns
and UnsupportedLanguageException
. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
languageCode
- The RFC 5646 language code for the input text. If you don't specify a language code, Amazon Comprehend
detects the dominant language. If you specify the code for a language that Amazon Comprehend does not
support, it returns and UnsupportedLanguageException
. For more information about RFC 5646,
see Tags for Identifying Languages on the IETF
Tools web site.LanguageCode
public String toString()
toString
in class Object
Object.toString()
public DetectSentimentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.