com.tencentcloudapi.ams.v20201229.models.CreateAudioModerationTaskRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-ams Show documentation
Show all versions of tencentcloud-sdk-java-ams Show documentation
Tencent Cloud Open API SDK for Java
The newest version!
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.ams.v20201229.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreateAudioModerationTaskRequest extends AbstractModel {
/**
* 该字段表示输入的音频审核任务信息,具体输入内容请参见TaskInput数据结构的详细描述。
备注:最多同时可创建**10个任务**。
*/
@SerializedName("Tasks")
@Expose
private TaskInput [] Tasks;
/**
* 该字段表示策略的具体编号,用于接口调度,在内容安全控制台中可配置。若不传入Biztype参数(留空),则代表采用默认的识别策略;传入则会在审核时根据业务场景采取不同的审核策略。
备注:Biztype仅为数字、字母与下划线的组合,长度为3-32个字符;不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
*/
@SerializedName("BizType")
@Expose
private String BizType;
/**
* 该字段表示输入的音频审核类型,取值为:**AUDIO**(点播音频)和 **LIVE_AUDIO**(直播音频),默认值为AUDIO。
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* 验证签名参数,具体可以参考[验签说明](https://cloud.tencent.com/document/product/1219/104000#42dd87d2-580f-46cf-a953-639a787d1eda)。
*/
@SerializedName("Seed")
@Expose
private String Seed;
/**
* 接收审核信息回调地址。如果设置了该字段,在审核过程中发现违规音频片段结果将发送至该接口。更多详情请参阅[回调配置说明](https://cloud.tencent.com/document/product/1219/104000)。
*/
@SerializedName("CallbackUrl")
@Expose
private String CallbackUrl;
/**
* 该字段表示待检测对象对应的用户相关信息,若填入则可甄别相应违规风险用户
*/
@SerializedName("User")
@Expose
private User User;
/**
* Get 该字段表示输入的音频审核任务信息,具体输入内容请参见TaskInput数据结构的详细描述。
备注:最多同时可创建**10个任务**。
* @return Tasks 该字段表示输入的音频审核任务信息,具体输入内容请参见TaskInput数据结构的详细描述。
备注:最多同时可创建**10个任务**。
*/
public TaskInput [] getTasks() {
return this.Tasks;
}
/**
* Set 该字段表示输入的音频审核任务信息,具体输入内容请参见TaskInput数据结构的详细描述。
备注:最多同时可创建**10个任务**。
* @param Tasks 该字段表示输入的音频审核任务信息,具体输入内容请参见TaskInput数据结构的详细描述。
备注:最多同时可创建**10个任务**。
*/
public void setTasks(TaskInput [] Tasks) {
this.Tasks = Tasks;
}
/**
* Get 该字段表示策略的具体编号,用于接口调度,在内容安全控制台中可配置。若不传入Biztype参数(留空),则代表采用默认的识别策略;传入则会在审核时根据业务场景采取不同的审核策略。
备注:Biztype仅为数字、字母与下划线的组合,长度为3-32个字符;不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
* @return BizType 该字段表示策略的具体编号,用于接口调度,在内容安全控制台中可配置。若不传入Biztype参数(留空),则代表采用默认的识别策略;传入则会在审核时根据业务场景采取不同的审核策略。
备注:Biztype仅为数字、字母与下划线的组合,长度为3-32个字符;不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
*/
public String getBizType() {
return this.BizType;
}
/**
* Set 该字段表示策略的具体编号,用于接口调度,在内容安全控制台中可配置。若不传入Biztype参数(留空),则代表采用默认的识别策略;传入则会在审核时根据业务场景采取不同的审核策略。
备注:Biztype仅为数字、字母与下划线的组合,长度为3-32个字符;不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
* @param BizType 该字段表示策略的具体编号,用于接口调度,在内容安全控制台中可配置。若不传入Biztype参数(留空),则代表采用默认的识别策略;传入则会在审核时根据业务场景采取不同的审核策略。
备注:Biztype仅为数字、字母与下划线的组合,长度为3-32个字符;不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
*/
public void setBizType(String BizType) {
this.BizType = BizType;
}
/**
* Get 该字段表示输入的音频审核类型,取值为:**AUDIO**(点播音频)和 **LIVE_AUDIO**(直播音频),默认值为AUDIO。
* @return Type 该字段表示输入的音频审核类型,取值为:**AUDIO**(点播音频)和 **LIVE_AUDIO**(直播音频),默认值为AUDIO。
*/
public String getType() {
return this.Type;
}
/**
* Set 该字段表示输入的音频审核类型,取值为:**AUDIO**(点播音频)和 **LIVE_AUDIO**(直播音频),默认值为AUDIO。
* @param Type 该字段表示输入的音频审核类型,取值为:**AUDIO**(点播音频)和 **LIVE_AUDIO**(直播音频),默认值为AUDIO。
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get 验证签名参数,具体可以参考[验签说明](https://cloud.tencent.com/document/product/1219/104000#42dd87d2-580f-46cf-a953-639a787d1eda)。
* @return Seed 验证签名参数,具体可以参考[验签说明](https://cloud.tencent.com/document/product/1219/104000#42dd87d2-580f-46cf-a953-639a787d1eda)。
*/
public String getSeed() {
return this.Seed;
}
/**
* Set 验证签名参数,具体可以参考[验签说明](https://cloud.tencent.com/document/product/1219/104000#42dd87d2-580f-46cf-a953-639a787d1eda)。
* @param Seed 验证签名参数,具体可以参考[验签说明](https://cloud.tencent.com/document/product/1219/104000#42dd87d2-580f-46cf-a953-639a787d1eda)。
*/
public void setSeed(String Seed) {
this.Seed = Seed;
}
/**
* Get 接收审核信息回调地址。如果设置了该字段,在审核过程中发现违规音频片段结果将发送至该接口。更多详情请参阅[回调配置说明](https://cloud.tencent.com/document/product/1219/104000)。
* @return CallbackUrl 接收审核信息回调地址。如果设置了该字段,在审核过程中发现违规音频片段结果将发送至该接口。更多详情请参阅[回调配置说明](https://cloud.tencent.com/document/product/1219/104000)。
*/
public String getCallbackUrl() {
return this.CallbackUrl;
}
/**
* Set 接收审核信息回调地址。如果设置了该字段,在审核过程中发现违规音频片段结果将发送至该接口。更多详情请参阅[回调配置说明](https://cloud.tencent.com/document/product/1219/104000)。
* @param CallbackUrl 接收审核信息回调地址。如果设置了该字段,在审核过程中发现违规音频片段结果将发送至该接口。更多详情请参阅[回调配置说明](https://cloud.tencent.com/document/product/1219/104000)。
*/
public void setCallbackUrl(String CallbackUrl) {
this.CallbackUrl = CallbackUrl;
}
/**
* Get 该字段表示待检测对象对应的用户相关信息,若填入则可甄别相应违规风险用户
* @return User 该字段表示待检测对象对应的用户相关信息,若填入则可甄别相应违规风险用户
*/
public User getUser() {
return this.User;
}
/**
* Set 该字段表示待检测对象对应的用户相关信息,若填入则可甄别相应违规风险用户
* @param User 该字段表示待检测对象对应的用户相关信息,若填入则可甄别相应违规风险用户
*/
public void setUser(User User) {
this.User = User;
}
public CreateAudioModerationTaskRequest() {
}
/**
* 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.
*/
public CreateAudioModerationTaskRequest(CreateAudioModerationTaskRequest source) {
if (source.Tasks != null) {
this.Tasks = new TaskInput[source.Tasks.length];
for (int i = 0; i < source.Tasks.length; i++) {
this.Tasks[i] = new TaskInput(source.Tasks[i]);
}
}
if (source.BizType != null) {
this.BizType = new String(source.BizType);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.Seed != null) {
this.Seed = new String(source.Seed);
}
if (source.CallbackUrl != null) {
this.CallbackUrl = new String(source.CallbackUrl);
}
if (source.User != null) {
this.User = new User(source.User);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArrayObj(map, prefix + "Tasks.", this.Tasks);
this.setParamSimple(map, prefix + "BizType", this.BizType);
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamSimple(map, prefix + "Seed", this.Seed);
this.setParamSimple(map, prefix + "CallbackUrl", this.CallbackUrl);
this.setParamObj(map, prefix + "User.", this.User);
}
}