|
| 1 | +/* |
| 2 | + * ark |
| 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.ark.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.ark.model.InputFileTosLocationForCreateBatchInferenceJobInput; |
| 23 | +import com.volcengine.ark.model.ModelReferenceForCreateBatchInferenceJobInput; |
| 24 | +import com.volcengine.ark.model.OutputDirTosLocationForCreateBatchInferenceJobInput; |
| 25 | +import com.volcengine.ark.model.TagForCreateBatchInferenceJobInput; |
| 26 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 27 | +import java.io.IOException; |
| 28 | +import java.util.ArrayList; |
| 29 | +import java.util.List; |
| 30 | +import javax.validation.constraints.*; |
| 31 | +import javax.validation.Valid; |
| 32 | +/** |
| 33 | + * CreateBatchInferenceJobRequest |
| 34 | + */ |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +public class CreateBatchInferenceJobRequest { |
| 39 | + @SerializedName("CompletionWindow") |
| 40 | + private String completionWindow = null; |
| 41 | + |
| 42 | + @SerializedName("Description") |
| 43 | + private String description = null; |
| 44 | + |
| 45 | + @SerializedName("DryRun") |
| 46 | + private Boolean dryRun = null; |
| 47 | + |
| 48 | + @SerializedName("InputFileTosLocation") |
| 49 | + private InputFileTosLocationForCreateBatchInferenceJobInput inputFileTosLocation = null; |
| 50 | + |
| 51 | + @SerializedName("ModelReference") |
| 52 | + private ModelReferenceForCreateBatchInferenceJobInput modelReference = null; |
| 53 | + |
| 54 | + @SerializedName("Name") |
| 55 | + private String name = null; |
| 56 | + |
| 57 | + @SerializedName("OutputDirTosLocation") |
| 58 | + private OutputDirTosLocationForCreateBatchInferenceJobInput outputDirTosLocation = null; |
| 59 | + |
| 60 | + @SerializedName("ProjectName") |
| 61 | + private String projectName = null; |
| 62 | + |
| 63 | + @SerializedName("Tags") |
| 64 | + private List<TagForCreateBatchInferenceJobInput> tags = null; |
| 65 | + |
| 66 | + public CreateBatchInferenceJobRequest completionWindow(String completionWindow) { |
| 67 | + this.completionWindow = completionWindow; |
| 68 | + return this; |
| 69 | + } |
| 70 | + |
| 71 | + /** |
| 72 | + * Get completionWindow |
| 73 | + * @return completionWindow |
| 74 | + **/ |
| 75 | + @Schema(description = "") |
| 76 | + public String getCompletionWindow() { |
| 77 | + return completionWindow; |
| 78 | + } |
| 79 | + |
| 80 | + public void setCompletionWindow(String completionWindow) { |
| 81 | + this.completionWindow = completionWindow; |
| 82 | + } |
| 83 | + |
| 84 | + public CreateBatchInferenceJobRequest description(String description) { |
| 85 | + this.description = description; |
| 86 | + return this; |
| 87 | + } |
| 88 | + |
| 89 | + /** |
| 90 | + * Get description |
| 91 | + * @return description |
| 92 | + **/ |
| 93 | + @Schema(description = "") |
| 94 | + public String getDescription() { |
| 95 | + return description; |
| 96 | + } |
| 97 | + |
| 98 | + public void setDescription(String description) { |
| 99 | + this.description = description; |
| 100 | + } |
| 101 | + |
| 102 | + public CreateBatchInferenceJobRequest dryRun(Boolean dryRun) { |
| 103 | + this.dryRun = dryRun; |
| 104 | + return this; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Get dryRun |
| 109 | + * @return dryRun |
| 110 | + **/ |
| 111 | + @Schema(description = "") |
| 112 | + public Boolean isDryRun() { |
| 113 | + return dryRun; |
| 114 | + } |
| 115 | + |
| 116 | + public void setDryRun(Boolean dryRun) { |
| 117 | + this.dryRun = dryRun; |
| 118 | + } |
| 119 | + |
| 120 | + public CreateBatchInferenceJobRequest inputFileTosLocation(InputFileTosLocationForCreateBatchInferenceJobInput inputFileTosLocation) { |
| 121 | + this.inputFileTosLocation = inputFileTosLocation; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Get inputFileTosLocation |
| 127 | + * @return inputFileTosLocation |
| 128 | + **/ |
| 129 | + @Valid |
| 130 | + @Schema(description = "") |
| 131 | + public InputFileTosLocationForCreateBatchInferenceJobInput getInputFileTosLocation() { |
| 132 | + return inputFileTosLocation; |
| 133 | + } |
| 134 | + |
| 135 | + public void setInputFileTosLocation(InputFileTosLocationForCreateBatchInferenceJobInput inputFileTosLocation) { |
| 136 | + this.inputFileTosLocation = inputFileTosLocation; |
| 137 | + } |
| 138 | + |
| 139 | + public CreateBatchInferenceJobRequest modelReference(ModelReferenceForCreateBatchInferenceJobInput modelReference) { |
| 140 | + this.modelReference = modelReference; |
| 141 | + return this; |
| 142 | + } |
| 143 | + |
| 144 | + /** |
| 145 | + * Get modelReference |
| 146 | + * @return modelReference |
| 147 | + **/ |
| 148 | + @Valid |
| 149 | + @Schema(description = "") |
| 150 | + public ModelReferenceForCreateBatchInferenceJobInput getModelReference() { |
| 151 | + return modelReference; |
| 152 | + } |
| 153 | + |
| 154 | + public void setModelReference(ModelReferenceForCreateBatchInferenceJobInput modelReference) { |
| 155 | + this.modelReference = modelReference; |
| 156 | + } |
| 157 | + |
| 158 | + public CreateBatchInferenceJobRequest name(String name) { |
| 159 | + this.name = name; |
| 160 | + return this; |
| 161 | + } |
| 162 | + |
| 163 | + /** |
| 164 | + * Get name |
| 165 | + * @return name |
| 166 | + **/ |
| 167 | + @NotNull |
| 168 | + @Schema(required = true, description = "") |
| 169 | + public String getName() { |
| 170 | + return name; |
| 171 | + } |
| 172 | + |
| 173 | + public void setName(String name) { |
| 174 | + this.name = name; |
| 175 | + } |
| 176 | + |
| 177 | + public CreateBatchInferenceJobRequest outputDirTosLocation(OutputDirTosLocationForCreateBatchInferenceJobInput outputDirTosLocation) { |
| 178 | + this.outputDirTosLocation = outputDirTosLocation; |
| 179 | + return this; |
| 180 | + } |
| 181 | + |
| 182 | + /** |
| 183 | + * Get outputDirTosLocation |
| 184 | + * @return outputDirTosLocation |
| 185 | + **/ |
| 186 | + @Valid |
| 187 | + @Schema(description = "") |
| 188 | + public OutputDirTosLocationForCreateBatchInferenceJobInput getOutputDirTosLocation() { |
| 189 | + return outputDirTosLocation; |
| 190 | + } |
| 191 | + |
| 192 | + public void setOutputDirTosLocation(OutputDirTosLocationForCreateBatchInferenceJobInput outputDirTosLocation) { |
| 193 | + this.outputDirTosLocation = outputDirTosLocation; |
| 194 | + } |
| 195 | + |
| 196 | + public CreateBatchInferenceJobRequest projectName(String projectName) { |
| 197 | + this.projectName = projectName; |
| 198 | + return this; |
| 199 | + } |
| 200 | + |
| 201 | + /** |
| 202 | + * Get projectName |
| 203 | + * @return projectName |
| 204 | + **/ |
| 205 | + @Schema(description = "") |
| 206 | + public String getProjectName() { |
| 207 | + return projectName; |
| 208 | + } |
| 209 | + |
| 210 | + public void setProjectName(String projectName) { |
| 211 | + this.projectName = projectName; |
| 212 | + } |
| 213 | + |
| 214 | + public CreateBatchInferenceJobRequest tags(List<TagForCreateBatchInferenceJobInput> tags) { |
| 215 | + this.tags = tags; |
| 216 | + return this; |
| 217 | + } |
| 218 | + |
| 219 | + public CreateBatchInferenceJobRequest addTagsItem(TagForCreateBatchInferenceJobInput tagsItem) { |
| 220 | + if (this.tags == null) { |
| 221 | + this.tags = new ArrayList<TagForCreateBatchInferenceJobInput>(); |
| 222 | + } |
| 223 | + this.tags.add(tagsItem); |
| 224 | + return this; |
| 225 | + } |
| 226 | + |
| 227 | + /** |
| 228 | + * Get tags |
| 229 | + * @return tags |
| 230 | + **/ |
| 231 | + @Valid |
| 232 | + @Schema(description = "") |
| 233 | + public List<TagForCreateBatchInferenceJobInput> getTags() { |
| 234 | + return tags; |
| 235 | + } |
| 236 | + |
| 237 | + public void setTags(List<TagForCreateBatchInferenceJobInput> tags) { |
| 238 | + this.tags = tags; |
| 239 | + } |
| 240 | + |
| 241 | + |
| 242 | + @Override |
| 243 | + public boolean equals(java.lang.Object o) { |
| 244 | + if (this == o) { |
| 245 | + return true; |
| 246 | + } |
| 247 | + if (o == null || getClass() != o.getClass()) { |
| 248 | + return false; |
| 249 | + } |
| 250 | + CreateBatchInferenceJobRequest createBatchInferenceJobRequest = (CreateBatchInferenceJobRequest) o; |
| 251 | + return Objects.equals(this.completionWindow, createBatchInferenceJobRequest.completionWindow) && |
| 252 | + Objects.equals(this.description, createBatchInferenceJobRequest.description) && |
| 253 | + Objects.equals(this.dryRun, createBatchInferenceJobRequest.dryRun) && |
| 254 | + Objects.equals(this.inputFileTosLocation, createBatchInferenceJobRequest.inputFileTosLocation) && |
| 255 | + Objects.equals(this.modelReference, createBatchInferenceJobRequest.modelReference) && |
| 256 | + Objects.equals(this.name, createBatchInferenceJobRequest.name) && |
| 257 | + Objects.equals(this.outputDirTosLocation, createBatchInferenceJobRequest.outputDirTosLocation) && |
| 258 | + Objects.equals(this.projectName, createBatchInferenceJobRequest.projectName) && |
| 259 | + Objects.equals(this.tags, createBatchInferenceJobRequest.tags); |
| 260 | + } |
| 261 | + |
| 262 | + @Override |
| 263 | + public int hashCode() { |
| 264 | + return Objects.hash(completionWindow, description, dryRun, inputFileTosLocation, modelReference, name, outputDirTosLocation, projectName, tags); |
| 265 | + } |
| 266 | + |
| 267 | + |
| 268 | + @Override |
| 269 | + public String toString() { |
| 270 | + StringBuilder sb = new StringBuilder(); |
| 271 | + sb.append("class CreateBatchInferenceJobRequest {\n"); |
| 272 | + |
| 273 | + sb.append(" completionWindow: ").append(toIndentedString(completionWindow)).append("\n"); |
| 274 | + sb.append(" description: ").append(toIndentedString(description)).append("\n"); |
| 275 | + sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); |
| 276 | + sb.append(" inputFileTosLocation: ").append(toIndentedString(inputFileTosLocation)).append("\n"); |
| 277 | + sb.append(" modelReference: ").append(toIndentedString(modelReference)).append("\n"); |
| 278 | + sb.append(" name: ").append(toIndentedString(name)).append("\n"); |
| 279 | + sb.append(" outputDirTosLocation: ").append(toIndentedString(outputDirTosLocation)).append("\n"); |
| 280 | + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); |
| 281 | + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); |
| 282 | + sb.append("}"); |
| 283 | + return sb.toString(); |
| 284 | + } |
| 285 | + |
| 286 | + /** |
| 287 | + * Convert the given object to string with each line indented by 4 spaces |
| 288 | + * (except the first line). |
| 289 | + */ |
| 290 | + private String toIndentedString(java.lang.Object o) { |
| 291 | + if (o == null) { |
| 292 | + return "null"; |
| 293 | + } |
| 294 | + return o.toString().replace("\n", "\n "); |
| 295 | + } |
| 296 | + |
| 297 | +} |
0 commit comments