|
| 1 | +/* |
| 2 | + * vefaas |
| 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.vefaas.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 io.swagger.v3.oas.annotations.media.Schema; |
| 23 | +import java.io.IOException; |
| 24 | +import javax.validation.constraints.*; |
| 25 | +import javax.validation.Valid; |
| 26 | +/** |
| 27 | + * AbortReleaseRequest |
| 28 | + */ |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +public class AbortReleaseRequest { |
| 33 | + @SerializedName("Async") |
| 34 | + private Boolean async = null; |
| 35 | + |
| 36 | + @SerializedName("FunctionId") |
| 37 | + private String functionId = null; |
| 38 | + |
| 39 | + public AbortReleaseRequest async(Boolean async) { |
| 40 | + this.async = async; |
| 41 | + return this; |
| 42 | + } |
| 43 | + |
| 44 | + /** |
| 45 | + * Get async |
| 46 | + * @return async |
| 47 | + **/ |
| 48 | + @Schema(description = "") |
| 49 | + public Boolean isAsync() { |
| 50 | + return async; |
| 51 | + } |
| 52 | + |
| 53 | + public void setAsync(Boolean async) { |
| 54 | + this.async = async; |
| 55 | + } |
| 56 | + |
| 57 | + public AbortReleaseRequest functionId(String functionId) { |
| 58 | + this.functionId = functionId; |
| 59 | + return this; |
| 60 | + } |
| 61 | + |
| 62 | + /** |
| 63 | + * Get functionId |
| 64 | + * @return functionId |
| 65 | + **/ |
| 66 | + @NotNull |
| 67 | + @Schema(required = true, description = "") |
| 68 | + public String getFunctionId() { |
| 69 | + return functionId; |
| 70 | + } |
| 71 | + |
| 72 | + public void setFunctionId(String functionId) { |
| 73 | + this.functionId = functionId; |
| 74 | + } |
| 75 | + |
| 76 | + |
| 77 | + @Override |
| 78 | + public boolean equals(java.lang.Object o) { |
| 79 | + if (this == o) { |
| 80 | + return true; |
| 81 | + } |
| 82 | + if (o == null || getClass() != o.getClass()) { |
| 83 | + return false; |
| 84 | + } |
| 85 | + AbortReleaseRequest abortReleaseRequest = (AbortReleaseRequest) o; |
| 86 | + return Objects.equals(this.async, abortReleaseRequest.async) && |
| 87 | + Objects.equals(this.functionId, abortReleaseRequest.functionId); |
| 88 | + } |
| 89 | + |
| 90 | + @Override |
| 91 | + public int hashCode() { |
| 92 | + return Objects.hash(async, functionId); |
| 93 | + } |
| 94 | + |
| 95 | + |
| 96 | + @Override |
| 97 | + public String toString() { |
| 98 | + StringBuilder sb = new StringBuilder(); |
| 99 | + sb.append("class AbortReleaseRequest {\n"); |
| 100 | + |
| 101 | + sb.append(" async: ").append(toIndentedString(async)).append("\n"); |
| 102 | + sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); |
| 103 | + sb.append("}"); |
| 104 | + return sb.toString(); |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Convert the given object to string with each line indented by 4 spaces |
| 109 | + * (except the first line). |
| 110 | + */ |
| 111 | + private String toIndentedString(java.lang.Object o) { |
| 112 | + if (o == null) { |
| 113 | + return "null"; |
| 114 | + } |
| 115 | + return o.toString().replace("\n", "\n "); |
| 116 | + } |
| 117 | + |
| 118 | +} |
0 commit comments