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

com.aliyun.sdk.service.green20220302.models.TextModerationResponseBody 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 TextModerationResponseBody} extends {@link TeaModel}
 *
 * 

TextModerationResponseBody

*/ public class TextModerationResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("Code") private Integer code; @com.aliyun.core.annotation.NameInMap("Data") private Data data; @com.aliyun.core.annotation.NameInMap("Message") private String message; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private TextModerationResponseBody(Builder builder) { this.code = builder.code; this.data = builder.data; this.message = builder.message; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static TextModerationResponseBody create() { return builder().build(); } /** * @return code */ public Integer getCode() { return this.code; } /** * @return data */ public Data getData() { return this.data; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Integer code; private Data data; private String message; private String requestId; /** * The returned HTTP status code. */ public Builder code(Integer code) { this.code = code; return this; } /** * The moderation results. */ public Builder data(Data data) { this.data = data; return this; } /** * The message that is returned in response to the request. */ public Builder message(String message) { this.message = message; return this; } /** * The request ID. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public TextModerationResponseBody build() { return new TextModerationResponseBody(this); } } public static class Data extends TeaModel { @com.aliyun.core.annotation.NameInMap("accountId") private String accountId; @com.aliyun.core.annotation.NameInMap("deviceId") private String deviceId; @com.aliyun.core.annotation.NameInMap("labels") private String labels; @com.aliyun.core.annotation.NameInMap("reason") private String reason; private Data(Builder builder) { this.accountId = builder.accountId; this.deviceId = builder.deviceId; this.labels = builder.labels; this.reason = builder.reason; } public static Builder builder() { return new Builder(); } public static Data create() { return builder().build(); } /** * @return accountId */ public String getAccountId() { return this.accountId; } /** * @return deviceId */ public String getDeviceId() { return this.deviceId; } /** * @return labels */ public String getLabels() { return this.labels; } /** * @return reason */ public String getReason() { return this.reason; } public static final class Builder { private String accountId; private String deviceId; private String labels; private String reason; /** * The ID of the Alibaba Cloud account. */ public Builder accountId(String accountId) { this.accountId = accountId; return this; } /** * The device ID. */ public Builder deviceId(String deviceId) { this.deviceId = deviceId; return this; } /** * Labels. */ public Builder labels(String labels) { this.labels = labels; return this; } /** * The JSON string used to locate the cause. */ public Builder reason(String reason) { this.reason = reason; return this; } public Data build() { return new Data(this); } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy