RunNetworkContentAuditRequest
+ */ +public class RunNetworkContentAuditRequest extends Request { + @com.aliyun.core.annotation.Host + @com.aliyun.core.annotation.NameInMap("regionId") + private String regionId; + + @com.aliyun.core.annotation.Path + @com.aliyun.core.annotation.NameInMap("workspaceId") + @com.aliyun.core.annotation.Validation(required = true) + private String workspaceId; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("businessType") + private String businessType; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("content") + @com.aliyun.core.annotation.Validation(required = true) + private String content; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("extraInfo") + private String extraInfo; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("modelId") + private String modelId; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("outputFormat") + private String outputFormat; + + @com.aliyun.core.annotation.Body + @com.aliyun.core.annotation.NameInMap("tags") + private java.util.ListThis parameter is required.
+ * + * example: + *llm-xx
+ */ + public Builder workspaceId(String workspaceId) { + this.putPathParameter("workspaceId", workspaceId); + this.workspaceId = workspaceId; + return this; + } + + /** + * businessType. + */ + public Builder businessType(String businessType) { + this.putBodyParameter("businessType", businessType); + this.businessType = businessType; + return this; + } + + /** + *This parameter is required.
+ * + * example: + *待分析文本
+ */ + public Builder content(String content) { + this.putBodyParameter("content", content); + this.content = content; + return this; + } + + /** + * extraInfo. + */ + public Builder extraInfo(String extraInfo) { + this.putBodyParameter("extraInfo", extraInfo); + this.extraInfo = extraInfo; + return this; + } + + /** + * modelId. + */ + public Builder modelId(String modelId) { + this.putBodyParameter("modelId", modelId); + this.modelId = modelId; + return this; + } + + /** + * outputFormat. + */ + public Builder outputFormat(String outputFormat) { + this.putBodyParameter("outputFormat", outputFormat); + this.outputFormat = outputFormat; + return this; + } + + /** + * tags. + */ + public Builder tags(java.util.ListRunNetworkContentAuditRequest
+ */ + public static class Tags extends TeaModel { + @com.aliyun.core.annotation.NameInMap("tagDefinePrompt") + private String tagDefinePrompt; + + @com.aliyun.core.annotation.NameInMap("tagName") + private String tagName; + + private Tags(Builder builder) { + this.tagDefinePrompt = builder.tagDefinePrompt; + this.tagName = builder.tagName; + } + + public static Builder builder() { + return new Builder(); + } + + public static Tags create() { + return builder().build(); + } + + /** + * @return tagDefinePrompt + */ + public String getTagDefinePrompt() { + return this.tagDefinePrompt; + } + + /** + * @return tagName + */ + public String getTagName() { + return this.tagName; + } + + public static final class Builder { + private String tagDefinePrompt; + private String tagName; + + /** + * tagDefinePrompt. + */ + public Builder tagDefinePrompt(String tagDefinePrompt) { + this.tagDefinePrompt = tagDefinePrompt; + return this; + } + + /** + * tagName. + */ + public Builder tagName(String tagName) { + this.tagName = tagName; + return this; + } + + public Tags build() { + return new Tags(this); + } + + } + + } +} diff --git a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponse.java b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponse.java new file mode 100644 index 0000000000..a9e81bb68e --- /dev/null +++ b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponse.java @@ -0,0 +1,131 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.sdk.service.quanmiaolightapp20240801.models; + +import com.aliyun.sdk.gateway.pop.*; +import darabonba.core.*; +import darabonba.core.async.*; +import darabonba.core.sync.*; +import darabonba.core.client.*; +import darabonba.core.RequestModel; +import darabonba.core.TeaModel; +import com.aliyun.sdk.gateway.pop.models.*; + +/** + * + * {@link RunNetworkContentAuditResponse} extends {@link TeaModel} + * + *RunNetworkContentAuditResponse
+ */ +public class RunNetworkContentAuditResponse extends Response { + @com.aliyun.core.annotation.NameInMap("headers") + private java.util.MapRunNetworkContentAuditResponseBody
+ */ +public class RunNetworkContentAuditResponseBody extends TeaModel { + @com.aliyun.core.annotation.NameInMap("header") + private RunNetworkContentAuditResponseBodyHeader header; + + @com.aliyun.core.annotation.NameInMap("payload") + private Payload payload; + + @com.aliyun.core.annotation.NameInMap("requestId") + private String requestId; + + private RunNetworkContentAuditResponseBody(Builder builder) { + this.header = builder.header; + this.payload = builder.payload; + this.requestId = builder.requestId; + } + + public static Builder builder() { + return new Builder(); + } + + public static RunNetworkContentAuditResponseBody create() { + return builder().build(); + } + + /** + * @return header + */ + public RunNetworkContentAuditResponseBodyHeader getHeader() { + return this.header; + } + + /** + * @return payload + */ + public Payload getPayload() { + return this.payload; + } + + /** + * @return requestId + */ + public String getRequestId() { + return this.requestId; + } + + public static final class Builder { + private RunNetworkContentAuditResponseBodyHeader header; + private Payload payload; + private String requestId; + + /** + * header. + */ + public Builder header(RunNetworkContentAuditResponseBodyHeader header) { + this.header = header; + return this; + } + + /** + * payload. + */ + public Builder payload(Payload payload) { + this.payload = payload; + return this; + } + + /** + *Id of the request
+ * + * example: + *5D0E915E-655D-59A8-894F-93873F73AAE5
+ */ + public Builder requestId(String requestId) { + this.requestId = requestId; + return this; + } + + public RunNetworkContentAuditResponseBody build() { + return new RunNetworkContentAuditResponseBody(this); + } + + } + + /** + * + * {@link RunNetworkContentAuditResponseBody} extends {@link TeaModel} + * + *RunNetworkContentAuditResponseBody
+ */ + public static class RunNetworkContentAuditResponseBodyHeader extends TeaModel { + @com.aliyun.core.annotation.NameInMap("errorCode") + private String errorCode; + + @com.aliyun.core.annotation.NameInMap("errorMessage") + private String errorMessage; + + @com.aliyun.core.annotation.NameInMap("event") + private String event; + + @com.aliyun.core.annotation.NameInMap("sessionId") + private String sessionId; + + @com.aliyun.core.annotation.NameInMap("taskId") + private String taskId; + + @com.aliyun.core.annotation.NameInMap("traceId") + private String traceId; + + private RunNetworkContentAuditResponseBodyHeader(Builder builder) { + this.errorCode = builder.errorCode; + this.errorMessage = builder.errorMessage; + this.event = builder.event; + this.sessionId = builder.sessionId; + this.taskId = builder.taskId; + this.traceId = builder.traceId; + } + + public static Builder builder() { + return new Builder(); + } + + public static RunNetworkContentAuditResponseBodyHeader create() { + return builder().build(); + } + + /** + * @return errorCode + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * @return errorMessage + */ + public String getErrorMessage() { + return this.errorMessage; + } + + /** + * @return event + */ + public String getEvent() { + return this.event; + } + + /** + * @return sessionId + */ + public String getSessionId() { + return this.sessionId; + } + + /** + * @return taskId + */ + public String getTaskId() { + return this.taskId; + } + + /** + * @return traceId + */ + public String getTraceId() { + return this.traceId; + } + + public static final class Builder { + private String errorCode; + private String errorMessage; + private String event; + private String sessionId; + private String taskId; + private String traceId; + + /** + * errorCode. + */ + public Builder errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * errorMessage. + */ + public Builder errorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * event. + */ + public Builder event(String event) { + this.event = event; + return this; + } + + /** + * sessionId. + */ + public Builder sessionId(String sessionId) { + this.sessionId = sessionId; + return this; + } + + /** + * taskId. + */ + public Builder taskId(String taskId) { + this.taskId = taskId; + return this; + } + + /** + * traceId. + */ + public Builder traceId(String traceId) { + this.traceId = traceId; + return this; + } + + public RunNetworkContentAuditResponseBodyHeader build() { + return new RunNetworkContentAuditResponseBodyHeader(this); + } + + } + + } + /** + * + * {@link RunNetworkContentAuditResponseBody} extends {@link TeaModel} + * + *RunNetworkContentAuditResponseBody
+ */ + public static class Output extends TeaModel { + @com.aliyun.core.annotation.NameInMap("text") + private String text; + + private Output(Builder builder) { + this.text = builder.text; + } + + public static Builder builder() { + return new Builder(); + } + + public static Output create() { + return builder().build(); + } + + /** + * @return text + */ + public String getText() { + return this.text; + } + + public static final class Builder { + private String text; + + /** + * text. + */ + public Builder text(String text) { + this.text = text; + return this; + } + + public Output build() { + return new Output(this); + } + + } + + } + /** + * + * {@link RunNetworkContentAuditResponseBody} extends {@link TeaModel} + * + *RunNetworkContentAuditResponseBody
+ */ + public static class Usage extends TeaModel { + @com.aliyun.core.annotation.NameInMap("inputTokens") + private Long inputTokens; + + @com.aliyun.core.annotation.NameInMap("outputTokens") + private Long outputTokens; + + @com.aliyun.core.annotation.NameInMap("totalTokens") + private Long totalTokens; + + private Usage(Builder builder) { + this.inputTokens = builder.inputTokens; + this.outputTokens = builder.outputTokens; + this.totalTokens = builder.totalTokens; + } + + public static Builder builder() { + return new Builder(); + } + + public static Usage create() { + return builder().build(); + } + + /** + * @return inputTokens + */ + public Long getInputTokens() { + return this.inputTokens; + } + + /** + * @return outputTokens + */ + public Long getOutputTokens() { + return this.outputTokens; + } + + /** + * @return totalTokens + */ + public Long getTotalTokens() { + return this.totalTokens; + } + + public static final class Builder { + private Long inputTokens; + private Long outputTokens; + private Long totalTokens; + + /** + * inputTokens. + */ + public Builder inputTokens(Long inputTokens) { + this.inputTokens = inputTokens; + return this; + } + + /** + * outputTokens. + */ + public Builder outputTokens(Long outputTokens) { + this.outputTokens = outputTokens; + return this; + } + + /** + * totalTokens. + */ + public Builder totalTokens(Long totalTokens) { + this.totalTokens = totalTokens; + return this; + } + + public Usage build() { + return new Usage(this); + } + + } + + } + /** + * + * {@link RunNetworkContentAuditResponseBody} extends {@link TeaModel} + * + *RunNetworkContentAuditResponseBody
+ */ + public static class Payload extends TeaModel { + @com.aliyun.core.annotation.NameInMap("output") + private Output output; + + @com.aliyun.core.annotation.NameInMap("usage") + private Usage usage; + + private Payload(Builder builder) { + this.output = builder.output; + this.usage = builder.usage; + } + + public static Builder builder() { + return new Builder(); + } + + public static Payload create() { + return builder().build(); + } + + /** + * @return output + */ + public Output getOutput() { + return this.output; + } + + /** + * @return usage + */ + public Usage getUsage() { + return this.usage; + } + + public static final class Builder { + private Output output; + private Usage usage; + + /** + * output. + */ + public Builder output(Output output) { + this.output = output; + return this; + } + + /** + * usage. + */ + public Builder usage(Usage usage) { + this.usage = usage; + return this; + } + + public Payload build() { + return new Payload(this); + } + + } + + } +} diff --git a/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponseBodyIterator.java b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponseBodyIterator.java new file mode 100644 index 0000000000..0928b05e39 --- /dev/null +++ b/quanmiaolightapp-20240801/src/main/java/com/aliyun/sdk/service/quanmiaolightapp20240801/models/RunNetworkContentAuditResponseBodyIterator.java @@ -0,0 +1,28 @@ +// This file is auto-generated, don't edit it. Thanks. +package com.aliyun.sdk.service.quanmiaolightapp20240801.models; + +import com.aliyun.core.utils.ParseUtil; +import darabonba.core.sse.SSEResponseIterator; +import darabonba.core.TeaModel; +import darabonba.core.utils.CommonUtil; + +import java.util.*; + +public class RunNetworkContentAuditResponseBodyIterator extends SSEResponseIteratorThis parameter is required.
+ * learningSamples. */ public Builder learningSamples(java.util.ListThis parameter is required.
+ * processStage. + */ + public Builder processStage(String processStage) { + this.putBodyParameter("processStage", processStage); + this.processStage = processStage; + return this; + } + + /** + * referenceMaterials. */ public Builder referenceMaterials(java.util.ListThis parameter is required.
+ * useSearch. + */ + public Builder useSearch(Boolean useSearch) { + this.putBodyParameter("useSearch", useSearch); + this.useSearch = useSearch; + return this; + } + + /** + * writingTheme. */ public Builder writingTheme(String writingTheme) { this.putBodyParameter("writingTheme", writingTheme);