All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.green20220302.models.TextModerationPlusRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.green20220302.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link TextModerationPlusRequest} extends {@link RequestModel}
 *
 * 

TextModerationPlusRequest

*/ public class TextModerationPlusRequest extends Request { @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("Service") private String service; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ServiceParameters") private String serviceParameters; private TextModerationPlusRequest(Builder builder) { super(builder); this.service = builder.service; this.serviceParameters = builder.serviceParameters; } public static Builder builder() { return new Builder(); } public static TextModerationPlusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return service */ public String getService() { return this.service; } /** * @return serviceParameters */ public String getServiceParameters() { return this.serviceParameters; } public static final class Builder extends Request.Builder { private String service; private String serviceParameters; private Builder() { super(); } private Builder(TextModerationPlusRequest request) { super(request); this.service = request.service; this.serviceParameters = request.serviceParameters; } /** * 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 */ public Builder service(String service) { this.putBodyParameter("Service", service); this.service = service; return this; } /** * The parameters required by the moderation service. The value is a JSON string. */ public Builder serviceParameters(String serviceParameters) { this.putBodyParameter("ServiceParameters", serviceParameters); this.serviceParameters = serviceParameters; return this; } @Override public TextModerationPlusRequest build() { return new TextModerationPlusRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy