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

com.aliyun.green20220302.models.TextModerationPlusResponseBody Maven / Gradle / Ivy

There is a newer version: 2.19.1
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.green20220302.models;

import com.aliyun.tea.*;

public class TextModerationPlusResponseBody extends TeaModel {
    /**
     * 

The returned HTTP status code. The status code 200 indicates that the request was successful.

* * example: *

200

*/ @NameInMap("Code") public Integer code; /** *

The moderation results.

*/ @NameInMap("Data") public TextModerationPlusResponseBodyData data; /** *

The message that is returned in response to the request.

* * example: *

OK

*/ @NameInMap("Message") public String message; /** *

Id of the request

* * example: *

AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****

*/ @NameInMap("RequestId") public String requestId; public static TextModerationPlusResponseBody build(java.util.Map map) throws Exception { TextModerationPlusResponseBody self = new TextModerationPlusResponseBody(); return TeaModel.build(map, self); } public TextModerationPlusResponseBody setCode(Integer code) { this.code = code; return this; } public Integer getCode() { return this.code; } public TextModerationPlusResponseBody setData(TextModerationPlusResponseBodyData data) { this.data = data; return this; } public TextModerationPlusResponseBodyData getData() { return this.data; } public TextModerationPlusResponseBody setMessage(String message) { this.message = message; return this; } public String getMessage() { return this.message; } public TextModerationPlusResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public static class TextModerationPlusResponseBodyDataAdvice extends TeaModel { /** *

The answer.

* * example: *

XXX

*/ @NameInMap("Answer") public String answer; /** *

Hit Label

* * example: *

xxx

*/ @NameInMap("HitLabel") public String hitLabel; /** *

Hit Library Name

* * example: *

xxx

*/ @NameInMap("HitLibName") public String hitLibName; public static TextModerationPlusResponseBodyDataAdvice build(java.util.Map map) throws Exception { TextModerationPlusResponseBodyDataAdvice self = new TextModerationPlusResponseBodyDataAdvice(); return TeaModel.build(map, self); } public TextModerationPlusResponseBodyDataAdvice setAnswer(String answer) { this.answer = answer; return this; } public String getAnswer() { return this.answer; } public TextModerationPlusResponseBodyDataAdvice setHitLabel(String hitLabel) { this.hitLabel = hitLabel; return this; } public String getHitLabel() { return this.hitLabel; } public TextModerationPlusResponseBodyDataAdvice setHitLibName(String hitLibName) { this.hitLibName = hitLibName; return this; } public String getHitLibName() { return this.hitLibName; } } public static class TextModerationPlusResponseBodyDataResultCustomizedHit extends TeaModel { /** *

The terms that are hit. Multiple terms are separated by commas (,).

* * example: *

xxx

*/ @NameInMap("KeyWords") public String keyWords; /** *

The library name.

* * example: *

test

*/ @NameInMap("LibName") public String libName; public static TextModerationPlusResponseBodyDataResultCustomizedHit build(java.util.Map map) throws Exception { TextModerationPlusResponseBodyDataResultCustomizedHit self = new TextModerationPlusResponseBodyDataResultCustomizedHit(); return TeaModel.build(map, self); } public TextModerationPlusResponseBodyDataResultCustomizedHit setKeyWords(String keyWords) { this.keyWords = keyWords; return this; } public String getKeyWords() { return this.keyWords; } public TextModerationPlusResponseBodyDataResultCustomizedHit setLibName(String libName) { this.libName = libName; return this; } public String getLibName() { return this.libName; } } public static class TextModerationPlusResponseBodyDataResult extends TeaModel { /** *

The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.

* * example: *

81.22

*/ @NameInMap("Confidence") public Float confidence; /** *

The custom term hit by the moderated content.

*/ @NameInMap("CustomizedHit") public java.util.List customizedHit; /** *

The description of the label.

* * example: *

none

*/ @NameInMap("Description") public String description; /** *

The label.

* * example: *

porn

*/ @NameInMap("Label") public String label; /** *

The term hit by the moderated content.

* * example: *

XXX

*/ @NameInMap("RiskWords") public String riskWords; public static TextModerationPlusResponseBodyDataResult build(java.util.Map map) throws Exception { TextModerationPlusResponseBodyDataResult self = new TextModerationPlusResponseBodyDataResult(); return TeaModel.build(map, self); } public TextModerationPlusResponseBodyDataResult setConfidence(Float confidence) { this.confidence = confidence; return this; } public Float getConfidence() { return this.confidence; } public TextModerationPlusResponseBodyDataResult setCustomizedHit(java.util.List customizedHit) { this.customizedHit = customizedHit; return this; } public java.util.List getCustomizedHit() { return this.customizedHit; } public TextModerationPlusResponseBodyDataResult setDescription(String description) { this.description = description; return this; } public String getDescription() { return this.description; } public TextModerationPlusResponseBodyDataResult setLabel(String label) { this.label = label; return this; } public String getLabel() { return this.label; } public TextModerationPlusResponseBodyDataResult setRiskWords(String riskWords) { this.riskWords = riskWords; return this; } public String getRiskWords() { return this.riskWords; } } public static class TextModerationPlusResponseBodyData extends TeaModel { /** *

The suggestion.

*/ @NameInMap("Advice") public java.util.List advice; /** *

The results.

*/ @NameInMap("Result") public java.util.List result; /** *

Risk Level

* * example: *

high

*/ @NameInMap("RiskLevel") public String riskLevel; /** *

The score.

* * example: *

1

*/ @NameInMap("Score") public Float score; public static TextModerationPlusResponseBodyData build(java.util.Map map) throws Exception { TextModerationPlusResponseBodyData self = new TextModerationPlusResponseBodyData(); return TeaModel.build(map, self); } public TextModerationPlusResponseBodyData setAdvice(java.util.List advice) { this.advice = advice; return this; } public java.util.List getAdvice() { return this.advice; } public TextModerationPlusResponseBodyData setResult(java.util.List result) { this.result = result; return this; } public java.util.List getResult() { return this.result; } public TextModerationPlusResponseBodyData setRiskLevel(String riskLevel) { this.riskLevel = riskLevel; return this; } public String getRiskLevel() { return this.riskLevel; } public TextModerationPlusResponseBodyData setScore(Float score) { this.score = score; return this; } public Float getScore() { return this.score; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy