public class CreateVideoModerationTaskRequest extends AbstractModel
Constructor and Description |
---|
CreateVideoModerationTaskRequest() |
CreateVideoModerationTaskRequest(CreateVideoModerationTaskRequest 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.
|
Long |
getPriority()
Get This parameter is optional and used to pass in the priority of a moderation task.
|
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 video moderation task information.
|
String |
getType()
Get This parameter is used to pass in the task type of a moderation task.
|
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 |
setPriority(Long Priority)
Set This parameter is optional and used to pass in the priority of a moderation task.
|
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 video moderation task information.
|
void |
setType(String Type)
Set This parameter is used to pass in the task type of a moderation task.
|
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 CreateVideoModerationTaskRequest()
public CreateVideoModerationTaskRequest(CreateVideoModerationTaskRequest source)
public String getType()
public void setType(String Type)
Type
- This parameter is used to pass in the task type of a moderation task. Valid values: **VIDEO** (video on demand), **LIVE_VIDEO** (video live streaming).public TaskInput[] getTasks()
public void setTasks(TaskInput[] Tasks)
Tasks
- This field indicates the input video 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 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/1265/51879?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) public Long getPriority()
public void setPriority(Long Priority)
Priority
- This parameter is optional and used to pass in the priority of a moderation task. When you have multiple tasks in the queue, you can use this parameter to control their priorities for processing the queue jumping logic. **Default value: 0**.Copyright © 2023. All rights reserved.