From 5add675322b12921e44036ef208fb8793f1cdf72 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 1 Aug 2024 04:07:46 +0000 Subject: [PATCH] add openapi for Personalized Text to Image ablity init version. --- aliyun-java-sdk-aicontent/ChangeLog.txt | 3 + aliyun-java-sdk-aicontent/pom.xml | 119 ++++++++ ...iQueryAliyunConsoleServcieListRequest.java | 39 +++ ...QueryAliyunConsoleServcieListResponse.java | 140 +++++++++ ...onalizedtxt2imgAddInferenceJobRequest.java | 52 ++++ ...nalizedtxt2imgAddInferenceJobResponse.java | 170 +++++++++++ ...nalizedtxt2imgAddModelTrainJobRequest.java | 52 ++++ ...alizedtxt2imgAddModelTrainJobResponse.java | 273 ++++++++++++++++++ ...onalizedtxt2imgQueryImageAssetRequest.java | 91 ++++++ ...nalizedtxt2imgQueryImageAssetResponse.java | 36 +++ ...edtxt2imgQueryInferenceJobInfoRequest.java | 52 ++++ ...dtxt2imgQueryInferenceJobInfoResponse.java | 170 +++++++++++ ...dtxt2imgQueryModelTrainJobListRequest.java | 39 +++ ...txt2imgQueryModelTrainJobListResponse.java | 273 ++++++++++++++++++ ...edtxt2imgQueryModelTrainStatusRequest.java | 52 ++++ ...dtxt2imgQueryModelTrainStatusResponse.java | 109 +++++++ ...onsoleServcieListResponseUnmarshaller.java | 49 ++++ ...mgAddInferenceJobResponseUnmarshaller.java | 52 ++++ ...gAddModelTrainJobResponseUnmarshaller.java | 75 +++++ ...mgQueryImageAssetResponseUnmarshaller.java | 28 ++ ...yInferenceJobInfoResponseUnmarshaller.java | 52 ++++ ...ModelTrainJobListResponseUnmarshaller.java | 80 +++++ ...yModelTrainStatusResponseUnmarshaller.java | 38 +++ 23 files changed, 2044 insertions(+) create mode 100644 aliyun-java-sdk-aicontent/ChangeLog.txt create mode 100644 aliyun-java-sdk-aicontent/pom.xml create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddInferenceJobRequest.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddInferenceJobResponse.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddModelTrainJobRequest.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddModelTrainJobResponse.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryImageAssetRequest.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryImageAssetResponse.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryInferenceJobInfoRequest.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryInferenceJobInfoResponse.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainJobListRequest.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainJobListResponse.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainStatusRequest.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainStatusResponse.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgAddInferenceJobResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryImageAssetResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller.java diff --git a/aliyun-java-sdk-aicontent/ChangeLog.txt b/aliyun-java-sdk-aicontent/ChangeLog.txt new file mode 100644 index 0000000000..bfb70ffd8a --- /dev/null +++ b/aliyun-java-sdk-aicontent/ChangeLog.txt @@ -0,0 +1,3 @@ +2024-08-01 Version: 1.0.0 +- add openapi for Personalized Text to Image ablity init version. + diff --git a/aliyun-java-sdk-aicontent/pom.xml b/aliyun-java-sdk-aicontent/pom.xml new file mode 100644 index 0000000000..e5697375e3 --- /dev/null +++ b/aliyun-java-sdk-aicontent/pom.xml @@ -0,0 +1,119 @@ + + + 4.0.0 + com.aliyun + aliyun-java-sdk-aicontent + jar + 1.0.0 + aliyun-java-sdk-aicontent + http://www.aliyun.com + Aliyun Open API SDK for Java +Copyright (C) Alibaba Cloud Computing +All rights reserved. +版权所有 (C)阿里云计算有限公司 +http://www.aliyun.com + + + sonatype-nexus-snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + com.aliyun + aliyun-java-sdk-core + true + [4.4.9,5.0.0) + + + com.google.code.gson + gson + 2.8.9 + + + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + scm:git:git://github.com/aliyun/aliyun-openapi-java-sdk.git + scm:git:git@github.com:aliyun/aliyun-openapi-java-sdk.git + https://github.com/aliyun/aliyun-openapi-java-sdk + + + + aliyunproducts + Aliyun SDK + aliyunsdk@aliyun.com + + + + + + maven-compiler-plugin + 2.3.2 + + 1.6 + 1.6 + UTF-8 + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.2 + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.10 + + -Dfile.encoding=UTF-8 + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + UTF-8 + none + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.3 + true + + sonatype-nexus-staging + https://s01.oss.sonatype.org/ + true + + + + + \ No newline at end of file diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.java new file mode 100644 index 0000000000..2d12841d5a --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest.java @@ -0,0 +1,39 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest extends RoaAcsRequest { + + public AliyunConsoleOpenApiQueryAliyunConsoleServcieListRequest() { + super("AiContent", "20240611", "AliyunConsoleOpenApiQueryAliyunConsoleServcieList"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/api/v1/aliyunconsole/queryAliyunConsoleServcieList"); + setMethod(MethodType.GET); + } + + @Override + public Class getResponseClass() { + return AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.class; + } + +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.java new file mode 100644 index 0000000000..c25100ffce --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.java @@ -0,0 +1,140 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.aicontent.transform.v20240611.AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse extends AcsResponse { + + private String requestId; + + private Boolean success; + + private String errCode; + + private String errMessage; + + private Integer httpStatusCode; + + private List data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getErrCode() { + return this.errCode; + } + + public void setErrCode(String errCode) { + this.errCode = errCode; + } + + public String getErrMessage() { + return this.errMessage; + } + + public void setErrMessage(String errMessage) { + this.errMessage = errMessage; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + public List getData() { + return this.data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataItem { + + private String serviceCode; + + private String serviceName; + + private Integer freeCount; + + private Integer freeConcurrencyCount; + + public String getServiceCode() { + return this.serviceCode; + } + + public void setServiceCode(String serviceCode) { + this.serviceCode = serviceCode; + } + + public String getServiceName() { + return this.serviceName; + } + + public void setServiceName(String serviceName) { + this.serviceName = serviceName; + } + + public Integer getFreeCount() { + return this.freeCount; + } + + public void setFreeCount(Integer freeCount) { + this.freeCount = freeCount; + } + + public Integer getFreeConcurrencyCount() { + return this.freeConcurrencyCount; + } + + public void setFreeConcurrencyCount(Integer freeConcurrencyCount) { + this.freeConcurrencyCount = freeConcurrencyCount; + } + } + + @Override + public AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse getInstance(UnmarshallerContext context) { + return AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddInferenceJobRequest.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddInferenceJobRequest.java new file mode 100644 index 0000000000..8a3516ebf2 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddInferenceJobRequest.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgAddInferenceJobRequest extends RoaAcsRequest { + + + private String body; + public Personalizedtxt2imgAddInferenceJobRequest() { + super("AiContent", "20240611", "Personalizedtxt2imgAddInferenceJob"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/api/v1/personalizedtxt2img/addInferenceJob"); + setMethod(MethodType.POST); + } + + public String getBody() { + return this.body; + } + + public void setBody(String body) { + this.body = body; + if(body != null){ + putBodyParameter("body", body); + } + } + + @Override + public Class getResponseClass() { + return Personalizedtxt2imgAddInferenceJobResponse.class; + } + +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddInferenceJobResponse.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddInferenceJobResponse.java new file mode 100644 index 0000000000..e7b86bbb54 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddInferenceJobResponse.java @@ -0,0 +1,170 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.aicontent.transform.v20240611.Personalizedtxt2imgAddInferenceJobResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgAddInferenceJobResponse extends AcsResponse { + + private String requestId; + + private Boolean success; + + private String errCode; + + private String errMessage; + + private Integer httpStatusCode; + + private Data data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getErrCode() { + return this.errCode; + } + + public void setErrCode(String errCode) { + this.errCode = errCode; + } + + public String getErrMessage() { + return this.errMessage; + } + + public void setErrMessage(String errMessage) { + this.errMessage = errMessage; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String id; + + private String promptId; + + private String modelId; + + private String jobStatus; + + private Double jobTrainProgress; + + private String createTime; + + private List resultImageUrl; + + public String getId() { + return this.id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPromptId() { + return this.promptId; + } + + public void setPromptId(String promptId) { + this.promptId = promptId; + } + + public String getModelId() { + return this.modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getJobStatus() { + return this.jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public Double getJobTrainProgress() { + return this.jobTrainProgress; + } + + public void setJobTrainProgress(Double jobTrainProgress) { + this.jobTrainProgress = jobTrainProgress; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public List getResultImageUrl() { + return this.resultImageUrl; + } + + public void setResultImageUrl(List resultImageUrl) { + this.resultImageUrl = resultImageUrl; + } + } + + @Override + public Personalizedtxt2imgAddInferenceJobResponse getInstance(UnmarshallerContext context) { + return Personalizedtxt2imgAddInferenceJobResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddModelTrainJobRequest.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddModelTrainJobRequest.java new file mode 100644 index 0000000000..0a850a877e --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddModelTrainJobRequest.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgAddModelTrainJobRequest extends RoaAcsRequest { + + + private String body; + public Personalizedtxt2imgAddModelTrainJobRequest() { + super("AiContent", "20240611", "Personalizedtxt2imgAddModelTrainJob"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/api/v1/personalizedtxt2img/addModelTrainJob"); + setMethod(MethodType.POST); + } + + public String getBody() { + return this.body; + } + + public void setBody(String body) { + this.body = body; + if(body != null){ + putBodyParameter("body", body); + } + } + + @Override + public Class getResponseClass() { + return Personalizedtxt2imgAddModelTrainJobResponse.class; + } + +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddModelTrainJobResponse.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddModelTrainJobResponse.java new file mode 100644 index 0000000000..36d1671e33 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgAddModelTrainJobResponse.java @@ -0,0 +1,273 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.aicontent.transform.v20240611.Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgAddModelTrainJobResponse extends AcsResponse { + + private String requestId; + + private Boolean success; + + private String errCode; + + private String errMessage; + + private Integer httpStatusCode; + + private Data data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getErrCode() { + return this.errCode; + } + + public void setErrCode(String errCode) { + this.errCode = errCode; + } + + public String getErrMessage() { + return this.errMessage; + } + + public void setErrMessage(String errMessage) { + this.errMessage = errMessage; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String id; + + private String modelId; + + private String name; + + private String objectType; + + private String jobStatus; + + private Double jobTrainProgress; + + private Integer inferenceImageCount; + + private String createTime; + + private List inferenceJobList; + + private List imageUrl; + + public String getId() { + return this.id; + } + + public void setId(String id) { + this.id = id; + } + + public String getModelId() { + return this.modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getObjectType() { + return this.objectType; + } + + public void setObjectType(String objectType) { + this.objectType = objectType; + } + + public String getJobStatus() { + return this.jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public Double getJobTrainProgress() { + return this.jobTrainProgress; + } + + public void setJobTrainProgress(Double jobTrainProgress) { + this.jobTrainProgress = jobTrainProgress; + } + + public Integer getInferenceImageCount() { + return this.inferenceImageCount; + } + + public void setInferenceImageCount(Integer inferenceImageCount) { + this.inferenceImageCount = inferenceImageCount; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public List getInferenceJobList() { + return this.inferenceJobList; + } + + public void setInferenceJobList(List inferenceJobList) { + this.inferenceJobList = inferenceJobList; + } + + public List getImageUrl() { + return this.imageUrl; + } + + public void setImageUrl(List imageUrl) { + this.imageUrl = imageUrl; + } + + public static class InferenceJobListItem { + + private String id; + + private String promptId; + + private String modelId; + + private String jobStatus; + + private Double jobTrainProgress; + + private String createTime; + + private List resultImageUrl; + + public String getId() { + return this.id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPromptId() { + return this.promptId; + } + + public void setPromptId(String promptId) { + this.promptId = promptId; + } + + public String getModelId() { + return this.modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getJobStatus() { + return this.jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public Double getJobTrainProgress() { + return this.jobTrainProgress; + } + + public void setJobTrainProgress(Double jobTrainProgress) { + this.jobTrainProgress = jobTrainProgress; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public List getResultImageUrl() { + return this.resultImageUrl; + } + + public void setResultImageUrl(List resultImageUrl) { + this.resultImageUrl = resultImageUrl; + } + } + } + + @Override + public Personalizedtxt2imgAddModelTrainJobResponse getInstance(UnmarshallerContext context) { + return Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryImageAssetRequest.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryImageAssetRequest.java new file mode 100644 index 0000000000..c5749c825c --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryImageAssetRequest.java @@ -0,0 +1,91 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgQueryImageAssetRequest extends RoaAcsRequest { + + + private String imageId; + + private String modelId; + + private String encodeFormat; + + private String promptId; + public Personalizedtxt2imgQueryImageAssetRequest() { + super("AiContent", "20240611", "Personalizedtxt2imgQueryImageAsset"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/api/v1/personalizedtxt2img/queryImageAsset"); + setMethod(MethodType.GET); + } + + public String getImageId() { + return this.imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + if(imageId != null){ + putQueryParameter("imageId", imageId); + } + } + + public String getModelId() { + return this.modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + if(modelId != null){ + putQueryParameter("modelId", modelId); + } + } + + public String getEncodeFormat() { + return this.encodeFormat; + } + + public void setEncodeFormat(String encodeFormat) { + this.encodeFormat = encodeFormat; + if(encodeFormat != null){ + putQueryParameter("encodeFormat", encodeFormat); + } + } + + public String getPromptId() { + return this.promptId; + } + + public void setPromptId(String promptId) { + this.promptId = promptId; + if(promptId != null){ + putQueryParameter("promptId", promptId); + } + } + + @Override + public Class getResponseClass() { + return Personalizedtxt2imgQueryImageAssetResponse.class; + } + +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryImageAssetResponse.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryImageAssetResponse.java new file mode 100644 index 0000000000..758734b567 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryImageAssetResponse.java @@ -0,0 +1,36 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.aicontent.transform.v20240611.Personalizedtxt2imgQueryImageAssetResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgQueryImageAssetResponse extends AcsResponse { + + @Override + public Personalizedtxt2imgQueryImageAssetResponse getInstance(UnmarshallerContext context) { + return Personalizedtxt2imgQueryImageAssetResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryInferenceJobInfoRequest.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryInferenceJobInfoRequest.java new file mode 100644 index 0000000000..97b88aae55 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryInferenceJobInfoRequest.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgQueryInferenceJobInfoRequest extends RoaAcsRequest { + + + private String inferenceJobId; + public Personalizedtxt2imgQueryInferenceJobInfoRequest() { + super("AiContent", "20240611", "Personalizedtxt2imgQueryInferenceJobInfo"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/api/v1/personalizedtxt2img/queryInferenceJobInfo"); + setMethod(MethodType.GET); + } + + public String getInferenceJobId() { + return this.inferenceJobId; + } + + public void setInferenceJobId(String inferenceJobId) { + this.inferenceJobId = inferenceJobId; + if(inferenceJobId != null){ + putQueryParameter("inferenceJobId", inferenceJobId); + } + } + + @Override + public Class getResponseClass() { + return Personalizedtxt2imgQueryInferenceJobInfoResponse.class; + } + +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryInferenceJobInfoResponse.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryInferenceJobInfoResponse.java new file mode 100644 index 0000000000..16d149b6d8 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryInferenceJobInfoResponse.java @@ -0,0 +1,170 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.aicontent.transform.v20240611.Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgQueryInferenceJobInfoResponse extends AcsResponse { + + private String requestId; + + private Boolean success; + + private String errCode; + + private String errMessage; + + private Integer httpStatusCode; + + private Data data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getErrCode() { + return this.errCode; + } + + public void setErrCode(String errCode) { + this.errCode = errCode; + } + + public String getErrMessage() { + return this.errMessage; + } + + public void setErrMessage(String errMessage) { + this.errMessage = errMessage; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String id; + + private String promptId; + + private String modelId; + + private String jobStatus; + + private Double jobTrainProgress; + + private String createTime; + + private List resultImageUrl; + + public String getId() { + return this.id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPromptId() { + return this.promptId; + } + + public void setPromptId(String promptId) { + this.promptId = promptId; + } + + public String getModelId() { + return this.modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getJobStatus() { + return this.jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public Double getJobTrainProgress() { + return this.jobTrainProgress; + } + + public void setJobTrainProgress(Double jobTrainProgress) { + this.jobTrainProgress = jobTrainProgress; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public List getResultImageUrl() { + return this.resultImageUrl; + } + + public void setResultImageUrl(List resultImageUrl) { + this.resultImageUrl = resultImageUrl; + } + } + + @Override + public Personalizedtxt2imgQueryInferenceJobInfoResponse getInstance(UnmarshallerContext context) { + return Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainJobListRequest.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainJobListRequest.java new file mode 100644 index 0000000000..8050b17073 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainJobListRequest.java @@ -0,0 +1,39 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgQueryModelTrainJobListRequest extends RoaAcsRequest { + + public Personalizedtxt2imgQueryModelTrainJobListRequest() { + super("AiContent", "20240611", "Personalizedtxt2imgQueryModelTrainJobList"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/api/v1/personalizedtxt2img/queryModelTrainJobList"); + setMethod(MethodType.GET); + } + + @Override + public Class getResponseClass() { + return Personalizedtxt2imgQueryModelTrainJobListResponse.class; + } + +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainJobListResponse.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainJobListResponse.java new file mode 100644 index 0000000000..b51f78c8fc --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainJobListResponse.java @@ -0,0 +1,273 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.aicontent.transform.v20240611.Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgQueryModelTrainJobListResponse extends AcsResponse { + + private String requestId; + + private Boolean success; + + private String errCode; + + private String errMessage; + + private Integer httpStatusCode; + + private List data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getErrCode() { + return this.errCode; + } + + public void setErrCode(String errCode) { + this.errCode = errCode; + } + + public String getErrMessage() { + return this.errMessage; + } + + public void setErrMessage(String errMessage) { + this.errMessage = errMessage; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + public List getData() { + return this.data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataItem { + + private String id; + + private String modelId; + + private String name; + + private String objectType; + + private String jobStatus; + + private Double jobTrainProgress; + + private Integer inferenceImageCount; + + private String createTime; + + private List inferenceJobList; + + private List imageUrl; + + public String getId() { + return this.id; + } + + public void setId(String id) { + this.id = id; + } + + public String getModelId() { + return this.modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getObjectType() { + return this.objectType; + } + + public void setObjectType(String objectType) { + this.objectType = objectType; + } + + public String getJobStatus() { + return this.jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public Double getJobTrainProgress() { + return this.jobTrainProgress; + } + + public void setJobTrainProgress(Double jobTrainProgress) { + this.jobTrainProgress = jobTrainProgress; + } + + public Integer getInferenceImageCount() { + return this.inferenceImageCount; + } + + public void setInferenceImageCount(Integer inferenceImageCount) { + this.inferenceImageCount = inferenceImageCount; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public List getInferenceJobList() { + return this.inferenceJobList; + } + + public void setInferenceJobList(List inferenceJobList) { + this.inferenceJobList = inferenceJobList; + } + + public List getImageUrl() { + return this.imageUrl; + } + + public void setImageUrl(List imageUrl) { + this.imageUrl = imageUrl; + } + + public static class InferenceJobListItem { + + private String id; + + private String promptId; + + private String modelId; + + private String jobStatus; + + private Double jobTrainProgress; + + private String createTime; + + private List resultImageUrl; + + public String getId() { + return this.id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPromptId() { + return this.promptId; + } + + public void setPromptId(String promptId) { + this.promptId = promptId; + } + + public String getModelId() { + return this.modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + } + + public String getJobStatus() { + return this.jobStatus; + } + + public void setJobStatus(String jobStatus) { + this.jobStatus = jobStatus; + } + + public Double getJobTrainProgress() { + return this.jobTrainProgress; + } + + public void setJobTrainProgress(Double jobTrainProgress) { + this.jobTrainProgress = jobTrainProgress; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public List getResultImageUrl() { + return this.resultImageUrl; + } + + public void setResultImageUrl(List resultImageUrl) { + this.resultImageUrl = resultImageUrl; + } + } + } + + @Override + public Personalizedtxt2imgQueryModelTrainJobListResponse getInstance(UnmarshallerContext context) { + return Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainStatusRequest.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainStatusRequest.java new file mode 100644 index 0000000000..b8f7a9bd24 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainStatusRequest.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import com.aliyuncs.RoaAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgQueryModelTrainStatusRequest extends RoaAcsRequest { + + + private String modelId; + public Personalizedtxt2imgQueryModelTrainStatusRequest() { + super("AiContent", "20240611", "Personalizedtxt2imgQueryModelTrainStatus"); + setProtocol(ProtocolType.HTTPS); + setUriPattern("/api/v1/personalizedtxt2img/queryModelTrainStatus"); + setMethod(MethodType.GET); + } + + public String getModelId() { + return this.modelId; + } + + public void setModelId(String modelId) { + this.modelId = modelId; + if(modelId != null){ + putQueryParameter("modelId", modelId); + } + } + + @Override + public Class getResponseClass() { + return Personalizedtxt2imgQueryModelTrainStatusResponse.class; + } + +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainStatusResponse.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainStatusResponse.java new file mode 100644 index 0000000000..7932c917ce --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/model/v20240611/Personalizedtxt2imgQueryModelTrainStatusResponse.java @@ -0,0 +1,109 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.model.v20240611; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.aicontent.transform.v20240611.Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class Personalizedtxt2imgQueryModelTrainStatusResponse extends AcsResponse { + + private String requestId; + + private Boolean success; + + private String errCode; + + private String errMessage; + + private Integer httpStatusCode; + + private Data data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getErrCode() { + return this.errCode; + } + + public void setErrCode(String errCode) { + this.errCode = errCode; + } + + public String getErrMessage() { + return this.errMessage; + } + + public void setErrMessage(String errMessage) { + this.errMessage = errMessage; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private String modelTrainStatus; + + public String getModelTrainStatus() { + return this.modelTrainStatus; + } + + public void setModelTrainStatus(String modelTrainStatus) { + this.modelTrainStatus = modelTrainStatus; + } + } + + @Override + public Personalizedtxt2imgQueryModelTrainStatusResponse getInstance(UnmarshallerContext context) { + return Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller.java new file mode 100644 index 0000000000..2e9c9175c8 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller.java @@ -0,0 +1,49 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.transform.v20240611; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.aicontent.model.v20240611.AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse; +import com.aliyuncs.aicontent.model.v20240611.AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.DataItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponseUnmarshaller { + + public static AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse unmarshall(AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse, UnmarshallerContext _ctx) { + + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.setRequestId(_ctx.stringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.requestId")); + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.setSuccess(_ctx.booleanValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.success")); + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.setErrCode(_ctx.stringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.errCode")); + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.setErrMessage(_ctx.stringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.errMessage")); + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.setHttpStatusCode(_ctx.integerValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.httpStatusCode")); + + List data = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.data.Length"); i++) { + DataItem dataItem = new DataItem(); + dataItem.setServiceCode(_ctx.stringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.data["+ i +"].ServiceCode")); + dataItem.setServiceName(_ctx.stringValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.data["+ i +"].ServiceName")); + dataItem.setFreeCount(_ctx.integerValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.data["+ i +"].FreeCount")); + dataItem.setFreeConcurrencyCount(_ctx.integerValue("AliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.data["+ i +"].FreeConcurrencyCount")); + + data.add(dataItem); + } + aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse.setData(data); + + return aliyunConsoleOpenApiQueryAliyunConsoleServcieListResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgAddInferenceJobResponseUnmarshaller.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgAddInferenceJobResponseUnmarshaller.java new file mode 100644 index 0000000000..863251b232 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgAddInferenceJobResponseUnmarshaller.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.transform.v20240611; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgAddInferenceJobResponse; +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgAddInferenceJobResponse.Data; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class Personalizedtxt2imgAddInferenceJobResponseUnmarshaller { + + public static Personalizedtxt2imgAddInferenceJobResponse unmarshall(Personalizedtxt2imgAddInferenceJobResponse personalizedtxt2imgAddInferenceJobResponse, UnmarshallerContext _ctx) { + + personalizedtxt2imgAddInferenceJobResponse.setRequestId(_ctx.stringValue("Personalizedtxt2imgAddInferenceJobResponse.requestId")); + personalizedtxt2imgAddInferenceJobResponse.setSuccess(_ctx.booleanValue("Personalizedtxt2imgAddInferenceJobResponse.success")); + personalizedtxt2imgAddInferenceJobResponse.setErrCode(_ctx.stringValue("Personalizedtxt2imgAddInferenceJobResponse.errCode")); + personalizedtxt2imgAddInferenceJobResponse.setErrMessage(_ctx.stringValue("Personalizedtxt2imgAddInferenceJobResponse.errMessage")); + personalizedtxt2imgAddInferenceJobResponse.setHttpStatusCode(_ctx.integerValue("Personalizedtxt2imgAddInferenceJobResponse.httpStatusCode")); + + Data data = new Data(); + data.setId(_ctx.stringValue("Personalizedtxt2imgAddInferenceJobResponse.data.id")); + data.setPromptId(_ctx.stringValue("Personalizedtxt2imgAddInferenceJobResponse.data.promptId")); + data.setModelId(_ctx.stringValue("Personalizedtxt2imgAddInferenceJobResponse.data.modelId")); + data.setJobStatus(_ctx.stringValue("Personalizedtxt2imgAddInferenceJobResponse.data.jobStatus")); + data.setJobTrainProgress(_ctx.doubleValue("Personalizedtxt2imgAddInferenceJobResponse.data.jobTrainProgress")); + data.setCreateTime(_ctx.stringValue("Personalizedtxt2imgAddInferenceJobResponse.data.createTime")); + + List resultImageUrl = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("Personalizedtxt2imgAddInferenceJobResponse.data.resultImageUrl.Length"); i++) { + resultImageUrl.add(_ctx.stringValue("Personalizedtxt2imgAddInferenceJobResponse.data.resultImageUrl["+ i +"]")); + } + data.setResultImageUrl(resultImageUrl); + personalizedtxt2imgAddInferenceJobResponse.setData(data); + + return personalizedtxt2imgAddInferenceJobResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller.java new file mode 100644 index 0000000000..7175a9ff6a --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller.java @@ -0,0 +1,75 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.transform.v20240611; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgAddModelTrainJobResponse; +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgAddModelTrainJobResponse.Data; +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgAddModelTrainJobResponse.Data.InferenceJobListItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class Personalizedtxt2imgAddModelTrainJobResponseUnmarshaller { + + public static Personalizedtxt2imgAddModelTrainJobResponse unmarshall(Personalizedtxt2imgAddModelTrainJobResponse personalizedtxt2imgAddModelTrainJobResponse, UnmarshallerContext _ctx) { + + personalizedtxt2imgAddModelTrainJobResponse.setRequestId(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.requestId")); + personalizedtxt2imgAddModelTrainJobResponse.setSuccess(_ctx.booleanValue("Personalizedtxt2imgAddModelTrainJobResponse.success")); + personalizedtxt2imgAddModelTrainJobResponse.setErrCode(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.errCode")); + personalizedtxt2imgAddModelTrainJobResponse.setErrMessage(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.errMessage")); + personalizedtxt2imgAddModelTrainJobResponse.setHttpStatusCode(_ctx.integerValue("Personalizedtxt2imgAddModelTrainJobResponse.httpStatusCode")); + + Data data = new Data(); + data.setId(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.id")); + data.setModelId(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.modelId")); + data.setName(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.name")); + data.setObjectType(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.objectType")); + data.setJobStatus(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.jobStatus")); + data.setJobTrainProgress(_ctx.doubleValue("Personalizedtxt2imgAddModelTrainJobResponse.data.jobTrainProgress")); + data.setInferenceImageCount(_ctx.integerValue("Personalizedtxt2imgAddModelTrainJobResponse.data.inferenceImageCount")); + data.setCreateTime(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.createTime")); + + List imageUrl = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("Personalizedtxt2imgAddModelTrainJobResponse.data.imageUrl.Length"); i++) { + imageUrl.add(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.imageUrl["+ i +"]")); + } + data.setImageUrl(imageUrl); + + List inferenceJobList = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("Personalizedtxt2imgAddModelTrainJobResponse.data.inferenceJobList.Length"); i++) { + InferenceJobListItem inferenceJobListItem = new InferenceJobListItem(); + inferenceJobListItem.setId(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.inferenceJobList["+ i +"].id")); + inferenceJobListItem.setPromptId(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.inferenceJobList["+ i +"].promptId")); + inferenceJobListItem.setModelId(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.inferenceJobList["+ i +"].modelId")); + inferenceJobListItem.setJobStatus(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.inferenceJobList["+ i +"].jobStatus")); + inferenceJobListItem.setJobTrainProgress(_ctx.doubleValue("Personalizedtxt2imgAddModelTrainJobResponse.data.inferenceJobList["+ i +"].jobTrainProgress")); + inferenceJobListItem.setCreateTime(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.inferenceJobList["+ i +"].createTime")); + + List resultImageUrl = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("Personalizedtxt2imgAddModelTrainJobResponse.data.inferenceJobList["+ i +"].resultImageUrl.Length"); j++) { + resultImageUrl.add(_ctx.stringValue("Personalizedtxt2imgAddModelTrainJobResponse.data.inferenceJobList["+ i +"].resultImageUrl["+ j +"]")); + } + inferenceJobListItem.setResultImageUrl(resultImageUrl); + + inferenceJobList.add(inferenceJobListItem); + } + data.setInferenceJobList(inferenceJobList); + personalizedtxt2imgAddModelTrainJobResponse.setData(data); + + return personalizedtxt2imgAddModelTrainJobResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryImageAssetResponseUnmarshaller.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryImageAssetResponseUnmarshaller.java new file mode 100644 index 0000000000..c35c370b1f --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryImageAssetResponseUnmarshaller.java @@ -0,0 +1,28 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.transform.v20240611; + +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgQueryImageAssetResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class Personalizedtxt2imgQueryImageAssetResponseUnmarshaller { + + public static Personalizedtxt2imgQueryImageAssetResponse unmarshall(Personalizedtxt2imgQueryImageAssetResponse personalizedtxt2imgQueryImageAssetResponse, UnmarshallerContext _ctx) { + + + return personalizedtxt2imgQueryImageAssetResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller.java new file mode 100644 index 0000000000..9d83f7d1a9 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.transform.v20240611; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgQueryInferenceJobInfoResponse; +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgQueryInferenceJobInfoResponse.Data; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class Personalizedtxt2imgQueryInferenceJobInfoResponseUnmarshaller { + + public static Personalizedtxt2imgQueryInferenceJobInfoResponse unmarshall(Personalizedtxt2imgQueryInferenceJobInfoResponse personalizedtxt2imgQueryInferenceJobInfoResponse, UnmarshallerContext _ctx) { + + personalizedtxt2imgQueryInferenceJobInfoResponse.setRequestId(_ctx.stringValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.requestId")); + personalizedtxt2imgQueryInferenceJobInfoResponse.setSuccess(_ctx.booleanValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.success")); + personalizedtxt2imgQueryInferenceJobInfoResponse.setErrCode(_ctx.stringValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.errCode")); + personalizedtxt2imgQueryInferenceJobInfoResponse.setErrMessage(_ctx.stringValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.errMessage")); + personalizedtxt2imgQueryInferenceJobInfoResponse.setHttpStatusCode(_ctx.integerValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.httpStatusCode")); + + Data data = new Data(); + data.setId(_ctx.stringValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.data.id")); + data.setPromptId(_ctx.stringValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.data.promptId")); + data.setModelId(_ctx.stringValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.data.modelId")); + data.setJobStatus(_ctx.stringValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.data.jobStatus")); + data.setJobTrainProgress(_ctx.doubleValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.data.jobTrainProgress")); + data.setCreateTime(_ctx.stringValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.data.createTime")); + + List resultImageUrl = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.data.resultImageUrl.Length"); i++) { + resultImageUrl.add(_ctx.stringValue("Personalizedtxt2imgQueryInferenceJobInfoResponse.data.resultImageUrl["+ i +"]")); + } + data.setResultImageUrl(resultImageUrl); + personalizedtxt2imgQueryInferenceJobInfoResponse.setData(data); + + return personalizedtxt2imgQueryInferenceJobInfoResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller.java new file mode 100644 index 0000000000..c8b16f2436 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller.java @@ -0,0 +1,80 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.transform.v20240611; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgQueryModelTrainJobListResponse; +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgQueryModelTrainJobListResponse.DataItem; +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgQueryModelTrainJobListResponse.DataItem.InferenceJobListItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class Personalizedtxt2imgQueryModelTrainJobListResponseUnmarshaller { + + public static Personalizedtxt2imgQueryModelTrainJobListResponse unmarshall(Personalizedtxt2imgQueryModelTrainJobListResponse personalizedtxt2imgQueryModelTrainJobListResponse, UnmarshallerContext _ctx) { + + personalizedtxt2imgQueryModelTrainJobListResponse.setRequestId(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.requestId")); + personalizedtxt2imgQueryModelTrainJobListResponse.setSuccess(_ctx.booleanValue("Personalizedtxt2imgQueryModelTrainJobListResponse.success")); + personalizedtxt2imgQueryModelTrainJobListResponse.setErrCode(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.errCode")); + personalizedtxt2imgQueryModelTrainJobListResponse.setErrMessage(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.errMessage")); + personalizedtxt2imgQueryModelTrainJobListResponse.setHttpStatusCode(_ctx.integerValue("Personalizedtxt2imgQueryModelTrainJobListResponse.httpStatusCode")); + + List data = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data.Length"); i++) { + DataItem dataItem = new DataItem(); + dataItem.setId(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].id")); + dataItem.setModelId(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].modelId")); + dataItem.setName(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].name")); + dataItem.setObjectType(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].objectType")); + dataItem.setJobStatus(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].jobStatus")); + dataItem.setJobTrainProgress(_ctx.doubleValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].jobTrainProgress")); + dataItem.setInferenceImageCount(_ctx.integerValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].inferenceImageCount")); + dataItem.setCreateTime(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].createTime")); + + List imageUrl = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].imageUrl.Length"); j++) { + imageUrl.add(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].imageUrl["+ j +"]")); + } + dataItem.setImageUrl(imageUrl); + + List inferenceJobList = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].inferenceJobList.Length"); j++) { + InferenceJobListItem inferenceJobListItem = new InferenceJobListItem(); + inferenceJobListItem.setId(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].inferenceJobList["+ j +"].id")); + inferenceJobListItem.setPromptId(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].inferenceJobList["+ j +"].promptId")); + inferenceJobListItem.setModelId(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].inferenceJobList["+ j +"].modelId")); + inferenceJobListItem.setJobStatus(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].inferenceJobList["+ j +"].jobStatus")); + inferenceJobListItem.setJobTrainProgress(_ctx.doubleValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].inferenceJobList["+ j +"].jobTrainProgress")); + inferenceJobListItem.setCreateTime(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].inferenceJobList["+ j +"].createTime")); + + List resultImageUrl = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].inferenceJobList["+ j +"].resultImageUrl.Length"); k++) { + resultImageUrl.add(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainJobListResponse.data["+ i +"].inferenceJobList["+ j +"].resultImageUrl["+ k +"]")); + } + inferenceJobListItem.setResultImageUrl(resultImageUrl); + + inferenceJobList.add(inferenceJobListItem); + } + dataItem.setInferenceJobList(inferenceJobList); + + data.add(dataItem); + } + personalizedtxt2imgQueryModelTrainJobListResponse.setData(data); + + return personalizedtxt2imgQueryModelTrainJobListResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller.java b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller.java new file mode 100644 index 0000000000..035284f1d3 --- /dev/null +++ b/aliyun-java-sdk-aicontent/src/main/java/com/aliyuncs/aicontent/transform/v20240611/Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller.java @@ -0,0 +1,38 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.aicontent.transform.v20240611; + +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgQueryModelTrainStatusResponse; +import com.aliyuncs.aicontent.model.v20240611.Personalizedtxt2imgQueryModelTrainStatusResponse.Data; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class Personalizedtxt2imgQueryModelTrainStatusResponseUnmarshaller { + + public static Personalizedtxt2imgQueryModelTrainStatusResponse unmarshall(Personalizedtxt2imgQueryModelTrainStatusResponse personalizedtxt2imgQueryModelTrainStatusResponse, UnmarshallerContext _ctx) { + + personalizedtxt2imgQueryModelTrainStatusResponse.setRequestId(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainStatusResponse.requestId")); + personalizedtxt2imgQueryModelTrainStatusResponse.setSuccess(_ctx.booleanValue("Personalizedtxt2imgQueryModelTrainStatusResponse.success")); + personalizedtxt2imgQueryModelTrainStatusResponse.setErrCode(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainStatusResponse.errCode")); + personalizedtxt2imgQueryModelTrainStatusResponse.setErrMessage(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainStatusResponse.errMessage")); + personalizedtxt2imgQueryModelTrainStatusResponse.setHttpStatusCode(_ctx.integerValue("Personalizedtxt2imgQueryModelTrainStatusResponse.httpStatusCode")); + + Data data = new Data(); + data.setModelTrainStatus(_ctx.stringValue("Personalizedtxt2imgQueryModelTrainStatusResponse.data.modelTrainStatus")); + personalizedtxt2imgQueryModelTrainStatusResponse.setData(data); + + return personalizedtxt2imgQueryModelTrainStatusResponse; + } +} \ No newline at end of file