|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | + * you may not use this file except in compliance with the License. |
| 4 | + * You may obtain a copy of the License at |
| 5 | + * |
| 6 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | + * |
| 8 | + * Unless required by applicable law or agreed to in writing, software |
| 9 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | + * See the License for the specific language governing permissions and |
| 12 | + * limitations under the License. |
| 13 | + */ |
| 14 | + |
| 15 | +package com.aliyuncs.websitebuild.model.v20250429; |
| 16 | + |
| 17 | +import com.aliyuncs.RpcAcsRequest; |
| 18 | +import java.util.List; |
| 19 | +import com.aliyuncs.http.ProtocolType; |
| 20 | +import com.aliyuncs.http.MethodType; |
| 21 | + |
| 22 | +/** |
| 23 | + * @author auto create |
| 24 | + * @version |
| 25 | + */ |
| 26 | +public class SearchImageRequest extends RpcAcsRequest<SearchImageResponse> { |
| 27 | + |
| 28 | + |
| 29 | + private Boolean hasPerson; |
| 30 | + |
| 31 | + private Integer maxWidth; |
| 32 | + |
| 33 | + private String ossKey; |
| 34 | + |
| 35 | + private String imageCategory; |
| 36 | + |
| 37 | + private Integer maxHeight; |
| 38 | + |
| 39 | + private String imageRatio; |
| 40 | + |
| 41 | + private String nextToken; |
| 42 | + |
| 43 | + private String text; |
| 44 | + |
| 45 | + private String colorHex; |
| 46 | + |
| 47 | + private Integer minHeight; |
| 48 | + |
| 49 | + private Integer start; |
| 50 | + |
| 51 | + private List<String> tags; |
| 52 | + |
| 53 | + private Integer size; |
| 54 | + |
| 55 | + private Integer minWidth; |
| 56 | + |
| 57 | + private Integer maxResults; |
| 58 | + public SearchImageRequest() { |
| 59 | + super("WebsiteBuild", "2025-04-29", "SearchImage"); |
| 60 | + setProtocol(ProtocolType.HTTPS); |
| 61 | + setMethod(MethodType.POST); |
| 62 | + } |
| 63 | + |
| 64 | + public Boolean getHasPerson() { |
| 65 | + return this.hasPerson; |
| 66 | + } |
| 67 | + |
| 68 | + public void setHasPerson(Boolean hasPerson) { |
| 69 | + this.hasPerson = hasPerson; |
| 70 | + if(hasPerson != null){ |
| 71 | + putQueryParameter("HasPerson", hasPerson.toString()); |
| 72 | + } |
| 73 | + } |
| 74 | + |
| 75 | + public Integer getMaxWidth() { |
| 76 | + return this.maxWidth; |
| 77 | + } |
| 78 | + |
| 79 | + public void setMaxWidth(Integer maxWidth) { |
| 80 | + this.maxWidth = maxWidth; |
| 81 | + if(maxWidth != null){ |
| 82 | + putQueryParameter("MaxWidth", maxWidth.toString()); |
| 83 | + } |
| 84 | + } |
| 85 | + |
| 86 | + public String getOssKey() { |
| 87 | + return this.ossKey; |
| 88 | + } |
| 89 | + |
| 90 | + public void setOssKey(String ossKey) { |
| 91 | + this.ossKey = ossKey; |
| 92 | + if(ossKey != null){ |
| 93 | + putQueryParameter("OssKey", ossKey); |
| 94 | + } |
| 95 | + } |
| 96 | + |
| 97 | + public String getImageCategory() { |
| 98 | + return this.imageCategory; |
| 99 | + } |
| 100 | + |
| 101 | + public void setImageCategory(String imageCategory) { |
| 102 | + this.imageCategory = imageCategory; |
| 103 | + if(imageCategory != null){ |
| 104 | + putQueryParameter("ImageCategory", imageCategory); |
| 105 | + } |
| 106 | + } |
| 107 | + |
| 108 | + public Integer getMaxHeight() { |
| 109 | + return this.maxHeight; |
| 110 | + } |
| 111 | + |
| 112 | + public void setMaxHeight(Integer maxHeight) { |
| 113 | + this.maxHeight = maxHeight; |
| 114 | + if(maxHeight != null){ |
| 115 | + putQueryParameter("MaxHeight", maxHeight.toString()); |
| 116 | + } |
| 117 | + } |
| 118 | + |
| 119 | + public String getImageRatio() { |
| 120 | + return this.imageRatio; |
| 121 | + } |
| 122 | + |
| 123 | + public void setImageRatio(String imageRatio) { |
| 124 | + this.imageRatio = imageRatio; |
| 125 | + if(imageRatio != null){ |
| 126 | + putQueryParameter("ImageRatio", imageRatio); |
| 127 | + } |
| 128 | + } |
| 129 | + |
| 130 | + public String getNextToken() { |
| 131 | + return this.nextToken; |
| 132 | + } |
| 133 | + |
| 134 | + public void setNextToken(String nextToken) { |
| 135 | + this.nextToken = nextToken; |
| 136 | + if(nextToken != null){ |
| 137 | + putQueryParameter("NextToken", nextToken); |
| 138 | + } |
| 139 | + } |
| 140 | + |
| 141 | + public String getText() { |
| 142 | + return this.text; |
| 143 | + } |
| 144 | + |
| 145 | + public void setText(String text) { |
| 146 | + this.text = text; |
| 147 | + if(text != null){ |
| 148 | + putQueryParameter("Text", text); |
| 149 | + } |
| 150 | + } |
| 151 | + |
| 152 | + public String getColorHex() { |
| 153 | + return this.colorHex; |
| 154 | + } |
| 155 | + |
| 156 | + public void setColorHex(String colorHex) { |
| 157 | + this.colorHex = colorHex; |
| 158 | + if(colorHex != null){ |
| 159 | + putQueryParameter("ColorHex", colorHex); |
| 160 | + } |
| 161 | + } |
| 162 | + |
| 163 | + public Integer getMinHeight() { |
| 164 | + return this.minHeight; |
| 165 | + } |
| 166 | + |
| 167 | + public void setMinHeight(Integer minHeight) { |
| 168 | + this.minHeight = minHeight; |
| 169 | + if(minHeight != null){ |
| 170 | + putQueryParameter("MinHeight", minHeight.toString()); |
| 171 | + } |
| 172 | + } |
| 173 | + |
| 174 | + public Integer getStart() { |
| 175 | + return this.start; |
| 176 | + } |
| 177 | + |
| 178 | + public void setStart(Integer start) { |
| 179 | + this.start = start; |
| 180 | + if(start != null){ |
| 181 | + putQueryParameter("Start", start.toString()); |
| 182 | + } |
| 183 | + } |
| 184 | + |
| 185 | + public List<String> getTags() { |
| 186 | + return this.tags; |
| 187 | + } |
| 188 | + |
| 189 | + public void setTags(List<String> tags) { |
| 190 | + this.tags = tags; |
| 191 | + if (tags != null) { |
| 192 | + String tagsArrVal = ""; |
| 193 | + for(int depth1 = 0; depth1 < tags.size(); depth1++) { |
| 194 | + tagsArrVal += tags.get(depth1) + ","; |
| 195 | + } |
| 196 | + if (tagsArrVal.length() > 0) { |
| 197 | + tagsArrVal = tagsArrVal.substring(0, tagsArrVal.length() - 1); |
| 198 | + } |
| 199 | + putQueryParameter("Tags" , tagsArrVal); |
| 200 | + } |
| 201 | + } |
| 202 | + |
| 203 | + public Integer getSize() { |
| 204 | + return this.size; |
| 205 | + } |
| 206 | + |
| 207 | + public void setSize(Integer size) { |
| 208 | + this.size = size; |
| 209 | + if(size != null){ |
| 210 | + putQueryParameter("Size", size.toString()); |
| 211 | + } |
| 212 | + } |
| 213 | + |
| 214 | + public Integer getMinWidth() { |
| 215 | + return this.minWidth; |
| 216 | + } |
| 217 | + |
| 218 | + public void setMinWidth(Integer minWidth) { |
| 219 | + this.minWidth = minWidth; |
| 220 | + if(minWidth != null){ |
| 221 | + putQueryParameter("MinWidth", minWidth.toString()); |
| 222 | + } |
| 223 | + } |
| 224 | + |
| 225 | + public Integer getMaxResults() { |
| 226 | + return this.maxResults; |
| 227 | + } |
| 228 | + |
| 229 | + public void setMaxResults(Integer maxResults) { |
| 230 | + this.maxResults = maxResults; |
| 231 | + if(maxResults != null){ |
| 232 | + putQueryParameter("MaxResults", maxResults.toString()); |
| 233 | + } |
| 234 | + } |
| 235 | + |
| 236 | + @Override |
| 237 | + public Class<SearchImageResponse> getResponseClass() { |
| 238 | + return SearchImageResponse.class; |
| 239 | + } |
| 240 | + |
| 241 | +} |
0 commit comments