com.tencentcloudapi.vod.v20180717.models.CreateReviewTemplateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-vod Show documentation
Show all versions of tencentcloud-sdk-java-vod Show documentation
Tencent Cloud Open API SDK for Java
/*
* 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.vod.v20180717.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 CreateReviewTemplateRequest extends AbstractModel {
/**
* 需要返回的违规标签列表,可选值为:
Porn:色情;
Terror:暴力;
Polity:不适宜的信息;
Illegal:违法;
Abuse:谩骂;
Ad:广告;
Moan:娇喘。
*/
@SerializedName("Labels")
@Expose
private String [] Labels;
/**
* 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
*/
@SerializedName("SubAppId")
@Expose
private String SubAppId;
/**
* 审核模板名称,长度限制:64 个字符。
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* 审核模板描述信息,长度限制:256 个字符。
*/
@SerializedName("Comment")
@Expose
private String Comment;
/**
* Get 需要返回的违规标签列表,可选值为:
Porn:色情;
Terror:暴力;
Polity:不适宜的信息;
Illegal:违法;
Abuse:谩骂;
Ad:广告;
Moan:娇喘。
* @return Labels 需要返回的违规标签列表,可选值为:
Porn:色情;
Terror:暴力;
Polity:不适宜的信息;
Illegal:违法;
Abuse:谩骂;
Ad:广告;
Moan:娇喘。
*/
public String [] getLabels() {
return this.Labels;
}
/**
* Set 需要返回的违规标签列表,可选值为:
Porn:色情;
Terror:暴力;
Polity:不适宜的信息;
Illegal:违法;
Abuse:谩骂;
Ad:广告;
Moan:娇喘。
* @param Labels 需要返回的违规标签列表,可选值为:
Porn:色情;
Terror:暴力;
Polity:不适宜的信息;
Illegal:违法;
Abuse:谩骂;
Ad:广告;
Moan:娇喘。
*/
public void setLabels(String [] Labels) {
this.Labels = Labels;
}
/**
* Get 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
* @return SubAppId 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
*/
public String getSubAppId() {
return this.SubAppId;
}
/**
* Set 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
* @param SubAppId 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
*/
public void setSubAppId(String SubAppId) {
this.SubAppId = SubAppId;
}
/**
* Get 审核模板名称,长度限制:64 个字符。
* @return Name 审核模板名称,长度限制:64 个字符。
*/
public String getName() {
return this.Name;
}
/**
* Set 审核模板名称,长度限制:64 个字符。
* @param Name 审核模板名称,长度限制:64 个字符。
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get 审核模板描述信息,长度限制:256 个字符。
* @return Comment 审核模板描述信息,长度限制:256 个字符。
*/
public String getComment() {
return this.Comment;
}
/**
* Set 审核模板描述信息,长度限制:256 个字符。
* @param Comment 审核模板描述信息,长度限制:256 个字符。
*/
public void setComment(String Comment) {
this.Comment = Comment;
}
public CreateReviewTemplateRequest() {
}
/**
* 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 CreateReviewTemplateRequest(CreateReviewTemplateRequest source) {
if (source.Labels != null) {
this.Labels = new String[source.Labels.length];
for (int i = 0; i < source.Labels.length; i++) {
this.Labels[i] = new String(source.Labels[i]);
}
}
if (source.SubAppId != null) {
this.SubAppId = new String(source.SubAppId);
}
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.Comment != null) {
this.Comment = new String(source.Comment);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArraySimple(map, prefix + "Labels.", this.Labels);
this.setParamSimple(map, prefix + "SubAppId", this.SubAppId);
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "Comment", this.Comment);
}
}