com.tencentcloudapi.mps.v20190612.models.ModifyContentReviewTemplateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.mps.v20190612.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 ModifyContentReviewTemplateRequest extends AbstractModel {
/**
* The unique ID of the content moderation template.
*/
@SerializedName("Definition")
@Expose
private Long Definition;
/**
* The name of the content moderation template. Length limit: 64 characters.
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* The template description. Length limit: 256 characters.
*/
@SerializedName("Comment")
@Expose
private String Comment;
/**
* Control parameter for porn information
*/
@SerializedName("PornConfigure")
@Expose
private PornConfigureInfoForUpdate PornConfigure;
/**
* Control parameter for terrorism information
*/
@SerializedName("TerrorismConfigure")
@Expose
private TerrorismConfigureInfoForUpdate TerrorismConfigure;
/**
* Control parameter for politically sensitive information
*/
@SerializedName("PoliticalConfigure")
@Expose
private PoliticalConfigureInfoForUpdate PoliticalConfigure;
/**
* Control parameter of prohibited information detection. Prohibited information includes:
Abusive;
Drug-related.
Note: this parameter is not supported yet.
*/
@SerializedName("ProhibitedConfigure")
@Expose
private ProhibitedConfigureInfoForUpdate ProhibitedConfigure;
/**
* Custom content moderation parameters.
*/
@SerializedName("UserDefineConfigure")
@Expose
private UserDefineConfigureInfoForUpdate UserDefineConfigure;
/**
* Get The unique ID of the content moderation template.
* @return Definition The unique ID of the content moderation template.
*/
public Long getDefinition() {
return this.Definition;
}
/**
* Set The unique ID of the content moderation template.
* @param Definition The unique ID of the content moderation template.
*/
public void setDefinition(Long Definition) {
this.Definition = Definition;
}
/**
* Get The name of the content moderation template. Length limit: 64 characters.
* @return Name The name of the content moderation template. Length limit: 64 characters.
*/
public String getName() {
return this.Name;
}
/**
* Set The name of the content moderation template. Length limit: 64 characters.
* @param Name The name of the content moderation template. Length limit: 64 characters.
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get The template description. Length limit: 256 characters.
* @return Comment The template description. Length limit: 256 characters.
*/
public String getComment() {
return this.Comment;
}
/**
* Set The template description. Length limit: 256 characters.
* @param Comment The template description. Length limit: 256 characters.
*/
public void setComment(String Comment) {
this.Comment = Comment;
}
/**
* Get Control parameter for porn information
* @return PornConfigure Control parameter for porn information
*/
public PornConfigureInfoForUpdate getPornConfigure() {
return this.PornConfigure;
}
/**
* Set Control parameter for porn information
* @param PornConfigure Control parameter for porn information
*/
public void setPornConfigure(PornConfigureInfoForUpdate PornConfigure) {
this.PornConfigure = PornConfigure;
}
/**
* Get Control parameter for terrorism information
* @return TerrorismConfigure Control parameter for terrorism information
*/
public TerrorismConfigureInfoForUpdate getTerrorismConfigure() {
return this.TerrorismConfigure;
}
/**
* Set Control parameter for terrorism information
* @param TerrorismConfigure Control parameter for terrorism information
*/
public void setTerrorismConfigure(TerrorismConfigureInfoForUpdate TerrorismConfigure) {
this.TerrorismConfigure = TerrorismConfigure;
}
/**
* Get Control parameter for politically sensitive information
* @return PoliticalConfigure Control parameter for politically sensitive information
*/
public PoliticalConfigureInfoForUpdate getPoliticalConfigure() {
return this.PoliticalConfigure;
}
/**
* Set Control parameter for politically sensitive information
* @param PoliticalConfigure Control parameter for politically sensitive information
*/
public void setPoliticalConfigure(PoliticalConfigureInfoForUpdate PoliticalConfigure) {
this.PoliticalConfigure = PoliticalConfigure;
}
/**
* Get Control parameter of prohibited information detection. Prohibited information includes:
Abusive;
Drug-related.
Note: this parameter is not supported yet.
* @return ProhibitedConfigure Control parameter of prohibited information detection. Prohibited information includes:
Abusive;
Drug-related.
Note: this parameter is not supported yet.
*/
public ProhibitedConfigureInfoForUpdate getProhibitedConfigure() {
return this.ProhibitedConfigure;
}
/**
* Set Control parameter of prohibited information detection. Prohibited information includes:
Abusive;
Drug-related.
Note: this parameter is not supported yet.
* @param ProhibitedConfigure Control parameter of prohibited information detection. Prohibited information includes:
Abusive;
Drug-related.
Note: this parameter is not supported yet.
*/
public void setProhibitedConfigure(ProhibitedConfigureInfoForUpdate ProhibitedConfigure) {
this.ProhibitedConfigure = ProhibitedConfigure;
}
/**
* Get Custom content moderation parameters.
* @return UserDefineConfigure Custom content moderation parameters.
*/
public UserDefineConfigureInfoForUpdate getUserDefineConfigure() {
return this.UserDefineConfigure;
}
/**
* Set Custom content moderation parameters.
* @param UserDefineConfigure Custom content moderation parameters.
*/
public void setUserDefineConfigure(UserDefineConfigureInfoForUpdate UserDefineConfigure) {
this.UserDefineConfigure = UserDefineConfigure;
}
public ModifyContentReviewTemplateRequest() {
}
/**
* 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 ModifyContentReviewTemplateRequest(ModifyContentReviewTemplateRequest source) {
if (source.Definition != null) {
this.Definition = new Long(source.Definition);
}
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.Comment != null) {
this.Comment = new String(source.Comment);
}
if (source.PornConfigure != null) {
this.PornConfigure = new PornConfigureInfoForUpdate(source.PornConfigure);
}
if (source.TerrorismConfigure != null) {
this.TerrorismConfigure = new TerrorismConfigureInfoForUpdate(source.TerrorismConfigure);
}
if (source.PoliticalConfigure != null) {
this.PoliticalConfigure = new PoliticalConfigureInfoForUpdate(source.PoliticalConfigure);
}
if (source.ProhibitedConfigure != null) {
this.ProhibitedConfigure = new ProhibitedConfigureInfoForUpdate(source.ProhibitedConfigure);
}
if (source.UserDefineConfigure != null) {
this.UserDefineConfigure = new UserDefineConfigureInfoForUpdate(source.UserDefineConfigure);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Definition", this.Definition);
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "Comment", this.Comment);
this.setParamObj(map, prefix + "PornConfigure.", this.PornConfigure);
this.setParamObj(map, prefix + "TerrorismConfigure.", this.TerrorismConfigure);
this.setParamObj(map, prefix + "PoliticalConfigure.", this.PoliticalConfigure);
this.setParamObj(map, prefix + "ProhibitedConfigure.", this.ProhibitedConfigure);
this.setParamObj(map, prefix + "UserDefineConfigure.", this.UserDefineConfigure);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy