public class TextModerationRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
TextModerationRequest() |
TextModerationRequest(TextModerationRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getBizType()
Get This field indicates the specific policy number, which is used for the API call and can be configured in the CMS console.
|
String |
getContent()
Get This field indicates the text content of the object to be moderated.
|
String |
getDataId()
Get This field indicates the data ID you assigned to the object to be moderated, which is convenient for you to identify and manage the file.
|
Device |
getDevice()
Get This field indicates the device information related with the object to be moderated, which can be used to identify violating devices at risk.
|
User |
getUser()
Get This field indicates the user information related with the object to be moderated, which can be used to identify violating users at risk.
|
void |
setBizType(String BizType)
Set This field indicates the specific policy number, which is used for the API call and can be configured in the CMS console.
|
void |
setContent(String Content)
Set This field indicates the text content of the object to be moderated.
|
void |
setDataId(String DataId)
Set This field indicates the data ID you assigned to the object to be moderated, which is convenient for you to identify and manage the file.
|
void |
setDevice(Device Device)
Set This field indicates the device information related with the object to be moderated, which can be used to identify violating devices at risk.
|
void |
setUser(User User)
Set This field indicates the user information related with the object to be moderated, which can be used to identify violating users at risk.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public TextModerationRequest()
public TextModerationRequest(TextModerationRequest source)
public String getContent()
public void setContent(String Content)
Content
- This field indicates the text content of the object to be moderated. The text needs to be encoded in utf-8 format and encrypted with Base64. It can contain up to 10,000 characters, calculated by unicode encoding.public String getBizType()
public void setBizType(String BizType)
BizType
- This field indicates the specific policy number, which is used for the API call and can be configured in the CMS console. If it's not entered (left empty), the default moderation policy is adopted. If it's entered, the moderation policies are specified for business scenarios. public String getDataId()
public void setDataId(String DataId)
DataId
- This field indicates the data ID you assigned to the object to be moderated, which is convenient for you to identify and manage the file. public User getUser()
public void setUser(User User)
User
- This field indicates the user information related with the object to be moderated, which can be used to identify violating users at risk.public Device getDevice()
public void setDevice(Device Device)
Device
- This field indicates the device information related with the object to be moderated, which can be used to identify violating devices at risk.Copyright © 2024. All rights reserved.