com.aliyun.green20220302.models.TextModerationPlusRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of green20220302 Show documentation
Show all versions of green20220302 Show documentation
Alibaba Cloud Green (20220302) SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.green20220302.models;
import com.aliyun.tea.*;
public class TextModerationPlusRequest extends TeaModel {
/**
* The moderation service.
* Valid values:
*
* - chat_detection_pro: moderation of interactive content of private chats_Professional
* - llm_response_moderation: moderation of text generated by LLMs
* - llm_query_moderation: moderation of input text of LLMs
* - nickname_detection_pro: moderation of user nicknames_Professional
* - comment_detection_pro: moderation of comment content of public chats_Professional
*
*
* example:
* llm_query_moderation
*/
@NameInMap("Service")
public String service;
/**
* The parameters required by the moderation service. The value is a JSON string.
*
* example:
* {"content":"Content to be moderated"}
*/
@NameInMap("ServiceParameters")
public String serviceParameters;
public static TextModerationPlusRequest build(java.util.Map map) throws Exception {
TextModerationPlusRequest self = new TextModerationPlusRequest();
return TeaModel.build(map, self);
}
public TextModerationPlusRequest setService(String service) {
this.service = service;
return this;
}
public String getService() {
return this.service;
}
public TextModerationPlusRequest setServiceParameters(String serviceParameters) {
this.serviceParameters = serviceParameters;
return this;
}
public String getServiceParameters() {
return this.serviceParameters;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy