@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectToxicContentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DetectToxicContentRequest() |
Modifier and Type | Method and Description |
---|---|
DetectToxicContentRequest |
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 text.
|
List<TextSegment> |
getTextSegments()
A list of up to 10 text strings.
|
int |
hashCode() |
void |
setLanguageCode(String languageCode)
The language of the input text.
|
void |
setTextSegments(Collection<TextSegment> textSegments)
A list of up to 10 text strings.
|
String |
toString()
Returns a string representation of this object.
|
DetectToxicContentRequest |
withLanguageCode(LanguageCode languageCode)
The language of the input text.
|
DetectToxicContentRequest |
withLanguageCode(String languageCode)
The language of the input text.
|
DetectToxicContentRequest |
withTextSegments(Collection<TextSegment> textSegments)
A list of up to 10 text strings.
|
DetectToxicContentRequest |
withTextSegments(TextSegment... textSegments)
A list of up to 10 text strings.
|
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 List<TextSegment> getTextSegments()
A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
public void setTextSegments(Collection<TextSegment> textSegments)
A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
textSegments
- A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list
is 10 KB.public DetectToxicContentRequest withTextSegments(TextSegment... textSegments)
A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
NOTE: This method appends the values to the existing list (if any). Use
setTextSegments(java.util.Collection)
or withTextSegments(java.util.Collection)
if you want to
override the existing values.
textSegments
- A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list
is 10 KB.public DetectToxicContentRequest withTextSegments(Collection<TextSegment> textSegments)
A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
textSegments
- A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list
is 10 KB.public void setLanguageCode(String languageCode)
The language of the input text. Currently, English is the only supported language.
languageCode
- The language of the input text. Currently, English is the only supported language.LanguageCode
public String getLanguageCode()
The language of the input text. Currently, English is the only supported language.
LanguageCode
public DetectToxicContentRequest withLanguageCode(String languageCode)
The language of the input text. Currently, English is the only supported language.
languageCode
- The language of the input text. Currently, English is the only supported language.LanguageCode
public DetectToxicContentRequest withLanguageCode(LanguageCode languageCode)
The language of the input text. Currently, English is the only supported language.
languageCode
- The language of the input text. Currently, English is the only supported language.LanguageCode
public String toString()
toString
in class Object
Object.toString()
public DetectToxicContentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()