|
| 1 | +/* |
| 2 | + * cv20240606 |
| 3 | + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) |
| 4 | + * |
| 5 | + * OpenAPI spec version: common-version |
| 6 | + * |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by the swagger code generator program. |
| 9 | + * https://github.com/swagger-api/swagger-codegen.git |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | +package com.volcengine.cv20240606.model; |
| 14 | + |
| 15 | +import java.util.Objects; |
| 16 | +import java.util.Arrays; |
| 17 | +import com.google.gson.TypeAdapter; |
| 18 | +import com.google.gson.annotations.JsonAdapter; |
| 19 | +import com.google.gson.annotations.SerializedName; |
| 20 | +import com.google.gson.stream.JsonReader; |
| 21 | +import com.google.gson.stream.JsonWriter; |
| 22 | +import com.volcengine.cv20240606.model.LogoInfoForAIGCStylizeImageInput; |
| 23 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 24 | +import java.io.IOException; |
| 25 | +import java.util.ArrayList; |
| 26 | +import java.util.List; |
| 27 | +import javax.validation.constraints.*; |
| 28 | +import javax.validation.Valid; |
| 29 | +/** |
| 30 | + * AIGCStylizeImageRequest |
| 31 | + */ |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +public class AIGCStylizeImageRequest { |
| 36 | + @SerializedName("binary_data_base64") |
| 37 | + private List<String> binaryDataBase64 = null; |
| 38 | + |
| 39 | + @SerializedName("image_urls") |
| 40 | + private List<String> imageUrls = null; |
| 41 | + |
| 42 | + @SerializedName("logo_info") |
| 43 | + private LogoInfoForAIGCStylizeImageInput logoInfo = null; |
| 44 | + |
| 45 | + @SerializedName("req_key") |
| 46 | + private String reqKey = null; |
| 47 | + |
| 48 | + @SerializedName("return_url") |
| 49 | + private Boolean returnUrl = null; |
| 50 | + |
| 51 | + @SerializedName("sub_req_key") |
| 52 | + private String subReqKey = null; |
| 53 | + |
| 54 | + public AIGCStylizeImageRequest binaryDataBase64(List<String> binaryDataBase64) { |
| 55 | + this.binaryDataBase64 = binaryDataBase64; |
| 56 | + return this; |
| 57 | + } |
| 58 | + |
| 59 | + public AIGCStylizeImageRequest addBinaryDataBase64Item(String binaryDataBase64Item) { |
| 60 | + if (this.binaryDataBase64 == null) { |
| 61 | + this.binaryDataBase64 = new ArrayList<String>(); |
| 62 | + } |
| 63 | + this.binaryDataBase64.add(binaryDataBase64Item); |
| 64 | + return this; |
| 65 | + } |
| 66 | + |
| 67 | + /** |
| 68 | + * Get binaryDataBase64 |
| 69 | + * @return binaryDataBase64 |
| 70 | + **/ |
| 71 | + @Schema(description = "") |
| 72 | + public List<String> getBinaryDataBase64() { |
| 73 | + return binaryDataBase64; |
| 74 | + } |
| 75 | + |
| 76 | + public void setBinaryDataBase64(List<String> binaryDataBase64) { |
| 77 | + this.binaryDataBase64 = binaryDataBase64; |
| 78 | + } |
| 79 | + |
| 80 | + public AIGCStylizeImageRequest imageUrls(List<String> imageUrls) { |
| 81 | + this.imageUrls = imageUrls; |
| 82 | + return this; |
| 83 | + } |
| 84 | + |
| 85 | + public AIGCStylizeImageRequest addImageUrlsItem(String imageUrlsItem) { |
| 86 | + if (this.imageUrls == null) { |
| 87 | + this.imageUrls = new ArrayList<String>(); |
| 88 | + } |
| 89 | + this.imageUrls.add(imageUrlsItem); |
| 90 | + return this; |
| 91 | + } |
| 92 | + |
| 93 | + /** |
| 94 | + * Get imageUrls |
| 95 | + * @return imageUrls |
| 96 | + **/ |
| 97 | + @Schema(description = "") |
| 98 | + public List<String> getImageUrls() { |
| 99 | + return imageUrls; |
| 100 | + } |
| 101 | + |
| 102 | + public void setImageUrls(List<String> imageUrls) { |
| 103 | + this.imageUrls = imageUrls; |
| 104 | + } |
| 105 | + |
| 106 | + public AIGCStylizeImageRequest logoInfo(LogoInfoForAIGCStylizeImageInput logoInfo) { |
| 107 | + this.logoInfo = logoInfo; |
| 108 | + return this; |
| 109 | + } |
| 110 | + |
| 111 | + /** |
| 112 | + * Get logoInfo |
| 113 | + * @return logoInfo |
| 114 | + **/ |
| 115 | + @Valid |
| 116 | + @Schema(description = "") |
| 117 | + public LogoInfoForAIGCStylizeImageInput getLogoInfo() { |
| 118 | + return logoInfo; |
| 119 | + } |
| 120 | + |
| 121 | + public void setLogoInfo(LogoInfoForAIGCStylizeImageInput logoInfo) { |
| 122 | + this.logoInfo = logoInfo; |
| 123 | + } |
| 124 | + |
| 125 | + public AIGCStylizeImageRequest reqKey(String reqKey) { |
| 126 | + this.reqKey = reqKey; |
| 127 | + return this; |
| 128 | + } |
| 129 | + |
| 130 | + /** |
| 131 | + * Get reqKey |
| 132 | + * @return reqKey |
| 133 | + **/ |
| 134 | + @NotNull |
| 135 | + @Schema(required = true, description = "") |
| 136 | + public String getReqKey() { |
| 137 | + return reqKey; |
| 138 | + } |
| 139 | + |
| 140 | + public void setReqKey(String reqKey) { |
| 141 | + this.reqKey = reqKey; |
| 142 | + } |
| 143 | + |
| 144 | + public AIGCStylizeImageRequest returnUrl(Boolean returnUrl) { |
| 145 | + this.returnUrl = returnUrl; |
| 146 | + return this; |
| 147 | + } |
| 148 | + |
| 149 | + /** |
| 150 | + * Get returnUrl |
| 151 | + * @return returnUrl |
| 152 | + **/ |
| 153 | + @Schema(description = "") |
| 154 | + public Boolean isReturnUrl() { |
| 155 | + return returnUrl; |
| 156 | + } |
| 157 | + |
| 158 | + public void setReturnUrl(Boolean returnUrl) { |
| 159 | + this.returnUrl = returnUrl; |
| 160 | + } |
| 161 | + |
| 162 | + public AIGCStylizeImageRequest subReqKey(String subReqKey) { |
| 163 | + this.subReqKey = subReqKey; |
| 164 | + return this; |
| 165 | + } |
| 166 | + |
| 167 | + /** |
| 168 | + * Get subReqKey |
| 169 | + * @return subReqKey |
| 170 | + **/ |
| 171 | + @Schema(description = "") |
| 172 | + public String getSubReqKey() { |
| 173 | + return subReqKey; |
| 174 | + } |
| 175 | + |
| 176 | + public void setSubReqKey(String subReqKey) { |
| 177 | + this.subReqKey = subReqKey; |
| 178 | + } |
| 179 | + |
| 180 | + |
| 181 | + @Override |
| 182 | + public boolean equals(java.lang.Object o) { |
| 183 | + if (this == o) { |
| 184 | + return true; |
| 185 | + } |
| 186 | + if (o == null || getClass() != o.getClass()) { |
| 187 | + return false; |
| 188 | + } |
| 189 | + AIGCStylizeImageRequest aiGCStylizeImageRequest = (AIGCStylizeImageRequest) o; |
| 190 | + return Objects.equals(this.binaryDataBase64, aiGCStylizeImageRequest.binaryDataBase64) && |
| 191 | + Objects.equals(this.imageUrls, aiGCStylizeImageRequest.imageUrls) && |
| 192 | + Objects.equals(this.logoInfo, aiGCStylizeImageRequest.logoInfo) && |
| 193 | + Objects.equals(this.reqKey, aiGCStylizeImageRequest.reqKey) && |
| 194 | + Objects.equals(this.returnUrl, aiGCStylizeImageRequest.returnUrl) && |
| 195 | + Objects.equals(this.subReqKey, aiGCStylizeImageRequest.subReqKey); |
| 196 | + } |
| 197 | + |
| 198 | + @Override |
| 199 | + public int hashCode() { |
| 200 | + return Objects.hash(binaryDataBase64, imageUrls, logoInfo, reqKey, returnUrl, subReqKey); |
| 201 | + } |
| 202 | + |
| 203 | + |
| 204 | + @Override |
| 205 | + public String toString() { |
| 206 | + StringBuilder sb = new StringBuilder(); |
| 207 | + sb.append("class AIGCStylizeImageRequest {\n"); |
| 208 | + |
| 209 | + sb.append(" binaryDataBase64: ").append(toIndentedString(binaryDataBase64)).append("\n"); |
| 210 | + sb.append(" imageUrls: ").append(toIndentedString(imageUrls)).append("\n"); |
| 211 | + sb.append(" logoInfo: ").append(toIndentedString(logoInfo)).append("\n"); |
| 212 | + sb.append(" reqKey: ").append(toIndentedString(reqKey)).append("\n"); |
| 213 | + sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); |
| 214 | + sb.append(" subReqKey: ").append(toIndentedString(subReqKey)).append("\n"); |
| 215 | + sb.append("}"); |
| 216 | + return sb.toString(); |
| 217 | + } |
| 218 | + |
| 219 | + /** |
| 220 | + * Convert the given object to string with each line indented by 4 spaces |
| 221 | + * (except the first line). |
| 222 | + */ |
| 223 | + private String toIndentedString(java.lang.Object o) { |
| 224 | + if (o == null) { |
| 225 | + return "null"; |
| 226 | + } |
| 227 | + return o.toString().replace("\n", "\n "); |
| 228 | + } |
| 229 | + |
| 230 | +} |
0 commit comments