public class CreateAudioModerationTaskRequest extends AbstractModel
Constructor and Description |
---|
CreateAudioModerationTaskRequest() |
CreateAudioModerationTaskRequest(CreateAudioModerationTaskRequest 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 number of the policy, which is used for API scheduling and can be configured in the CMS console.
|
String |
getCallbackUrl()
Get This field is optional and indicates the address for receiving the moderation information callback in the default format of URL.
|
String |
getSeed()
Get This field is optional and indicates the key information of the callback signature, which is used to ensure the data security.
|
TaskInput[] |
getTasks()
Get This field indicates the input audio moderation task information.
|
String |
getType()
Get This field indicates the input audio moderation type.
|
void |
setBizType(String BizType)
Set This field indicates the specific number of the policy, which is used for API scheduling and can be configured in the CMS console.
|
void |
setCallbackUrl(String CallbackUrl)
Set This field is optional and indicates the address for receiving the moderation information callback in the default format of URL.
|
void |
setSeed(String Seed)
Set This field is optional and indicates the key information of the callback signature, which is used to ensure the data security.
|
void |
setTasks(TaskInput[] Tasks)
Set This field indicates the input audio moderation task information.
|
void |
setType(String Type)
Set This field indicates the input audio moderation type.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateAudioModerationTaskRequest()
public CreateAudioModerationTaskRequest(CreateAudioModerationTaskRequest source)
public TaskInput[] getTasks()
public void setTasks(TaskInput[] Tasks)
Tasks
- This field indicates the input audio moderation task information. For the specific input content, see the detailed description of the `TaskInput` data structure.public String getBizType()
public void setBizType(String BizType)
BizType
- This field indicates the specific number of the policy, which is used for API scheduling and can be configured in the CMS console. If the `Biztype` parameter is passed in, a moderation policy will be used based on the business scenario; otherwise, the default moderation policy will be used.public String getType()
public void setType(String Type)
Type
- This field indicates the input audio moderation type. Valid values: **AUDIO** (audio on demand), **LIVE_AUDIO** (audio live streaming). Default value: AUDIO.public String getSeed()
public void setSeed(String Seed)
Seed
- This field is optional and indicates the key information of the callback signature, which is used to ensure the data security. The signature algorithm is to add the `X-Signature` field to the returned HTTP header, whose value is the SHA256-encoded hex string of `seed` + `body` . After receiving the callback data, you can calculate `X-Signature` by using **sha256(seed + body)** based on the returned `body` for verification.public String getCallbackUrl()
public void setCallbackUrl(String CallbackUrl)
CallbackUrl
- This field is optional and indicates the address for receiving the moderation information callback in the default format of URL. After it is configured successfully, the non-compliant audio/video segments generated during moderation will be sent through this API. For the format of the returned callback content, see [Sample Callback Signature](https://intl.cloud.tencent.com/document/product/1219/53257?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B2-.E5.9B.9E.E8.B0.83.E7.AD.BE.E5.90.8D.E7.A4.BA.E4.BE.8B)Copyright © 2023. All rights reserved.