|
| 1 | +/* |
| 2 | + * apig |
| 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.apig.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.apig.model.CustomBodyParamsForCreateUpstreamInput; |
| 23 | +import com.volcengine.apig.model.CustomHeaderParamsForCreateUpstreamInput; |
| 24 | +import com.volcengine.apig.model.CustomModelServiceForCreateUpstreamInput; |
| 25 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 26 | +import java.io.IOException; |
| 27 | +import javax.validation.constraints.*; |
| 28 | +import javax.validation.Valid; |
| 29 | +/** |
| 30 | + * AIProviderForCreateUpstreamInput |
| 31 | + */ |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +public class AIProviderForCreateUpstreamInput { |
| 36 | + @SerializedName("BaseUrl") |
| 37 | + private String baseUrl = null; |
| 38 | + |
| 39 | + @SerializedName("CustomBodyParams") |
| 40 | + private CustomBodyParamsForCreateUpstreamInput customBodyParams = null; |
| 41 | + |
| 42 | + @SerializedName("CustomHeaderParams") |
| 43 | + private CustomHeaderParamsForCreateUpstreamInput customHeaderParams = null; |
| 44 | + |
| 45 | + @SerializedName("CustomModelService") |
| 46 | + private CustomModelServiceForCreateUpstreamInput customModelService = null; |
| 47 | + |
| 48 | + @SerializedName("Name") |
| 49 | + private String name = null; |
| 50 | + |
| 51 | + @SerializedName("Token") |
| 52 | + private String token = null; |
| 53 | + |
| 54 | + public AIProviderForCreateUpstreamInput baseUrl(String baseUrl) { |
| 55 | + this.baseUrl = baseUrl; |
| 56 | + return this; |
| 57 | + } |
| 58 | + |
| 59 | + /** |
| 60 | + * Get baseUrl |
| 61 | + * @return baseUrl |
| 62 | + **/ |
| 63 | + @Schema(description = "") |
| 64 | + public String getBaseUrl() { |
| 65 | + return baseUrl; |
| 66 | + } |
| 67 | + |
| 68 | + public void setBaseUrl(String baseUrl) { |
| 69 | + this.baseUrl = baseUrl; |
| 70 | + } |
| 71 | + |
| 72 | + public AIProviderForCreateUpstreamInput customBodyParams(CustomBodyParamsForCreateUpstreamInput customBodyParams) { |
| 73 | + this.customBodyParams = customBodyParams; |
| 74 | + return this; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * Get customBodyParams |
| 79 | + * @return customBodyParams |
| 80 | + **/ |
| 81 | + @Valid |
| 82 | + @Schema(description = "") |
| 83 | + public CustomBodyParamsForCreateUpstreamInput getCustomBodyParams() { |
| 84 | + return customBodyParams; |
| 85 | + } |
| 86 | + |
| 87 | + public void setCustomBodyParams(CustomBodyParamsForCreateUpstreamInput customBodyParams) { |
| 88 | + this.customBodyParams = customBodyParams; |
| 89 | + } |
| 90 | + |
| 91 | + public AIProviderForCreateUpstreamInput customHeaderParams(CustomHeaderParamsForCreateUpstreamInput customHeaderParams) { |
| 92 | + this.customHeaderParams = customHeaderParams; |
| 93 | + return this; |
| 94 | + } |
| 95 | + |
| 96 | + /** |
| 97 | + * Get customHeaderParams |
| 98 | + * @return customHeaderParams |
| 99 | + **/ |
| 100 | + @Valid |
| 101 | + @Schema(description = "") |
| 102 | + public CustomHeaderParamsForCreateUpstreamInput getCustomHeaderParams() { |
| 103 | + return customHeaderParams; |
| 104 | + } |
| 105 | + |
| 106 | + public void setCustomHeaderParams(CustomHeaderParamsForCreateUpstreamInput customHeaderParams) { |
| 107 | + this.customHeaderParams = customHeaderParams; |
| 108 | + } |
| 109 | + |
| 110 | + public AIProviderForCreateUpstreamInput customModelService(CustomModelServiceForCreateUpstreamInput customModelService) { |
| 111 | + this.customModelService = customModelService; |
| 112 | + return this; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Get customModelService |
| 117 | + * @return customModelService |
| 118 | + **/ |
| 119 | + @Valid |
| 120 | + @Schema(description = "") |
| 121 | + public CustomModelServiceForCreateUpstreamInput getCustomModelService() { |
| 122 | + return customModelService; |
| 123 | + } |
| 124 | + |
| 125 | + public void setCustomModelService(CustomModelServiceForCreateUpstreamInput customModelService) { |
| 126 | + this.customModelService = customModelService; |
| 127 | + } |
| 128 | + |
| 129 | + public AIProviderForCreateUpstreamInput name(String name) { |
| 130 | + this.name = name; |
| 131 | + return this; |
| 132 | + } |
| 133 | + |
| 134 | + /** |
| 135 | + * Get name |
| 136 | + * @return name |
| 137 | + **/ |
| 138 | + @Schema(description = "") |
| 139 | + public String getName() { |
| 140 | + return name; |
| 141 | + } |
| 142 | + |
| 143 | + public void setName(String name) { |
| 144 | + this.name = name; |
| 145 | + } |
| 146 | + |
| 147 | + public AIProviderForCreateUpstreamInput token(String token) { |
| 148 | + this.token = token; |
| 149 | + return this; |
| 150 | + } |
| 151 | + |
| 152 | + /** |
| 153 | + * Get token |
| 154 | + * @return token |
| 155 | + **/ |
| 156 | + @Schema(description = "") |
| 157 | + public String getToken() { |
| 158 | + return token; |
| 159 | + } |
| 160 | + |
| 161 | + public void setToken(String token) { |
| 162 | + this.token = token; |
| 163 | + } |
| 164 | + |
| 165 | + |
| 166 | + @Override |
| 167 | + public boolean equals(java.lang.Object o) { |
| 168 | + if (this == o) { |
| 169 | + return true; |
| 170 | + } |
| 171 | + if (o == null || getClass() != o.getClass()) { |
| 172 | + return false; |
| 173 | + } |
| 174 | + AIProviderForCreateUpstreamInput aiProviderForCreateUpstreamInput = (AIProviderForCreateUpstreamInput) o; |
| 175 | + return Objects.equals(this.baseUrl, aiProviderForCreateUpstreamInput.baseUrl) && |
| 176 | + Objects.equals(this.customBodyParams, aiProviderForCreateUpstreamInput.customBodyParams) && |
| 177 | + Objects.equals(this.customHeaderParams, aiProviderForCreateUpstreamInput.customHeaderParams) && |
| 178 | + Objects.equals(this.customModelService, aiProviderForCreateUpstreamInput.customModelService) && |
| 179 | + Objects.equals(this.name, aiProviderForCreateUpstreamInput.name) && |
| 180 | + Objects.equals(this.token, aiProviderForCreateUpstreamInput.token); |
| 181 | + } |
| 182 | + |
| 183 | + @Override |
| 184 | + public int hashCode() { |
| 185 | + return Objects.hash(baseUrl, customBodyParams, customHeaderParams, customModelService, name, token); |
| 186 | + } |
| 187 | + |
| 188 | + |
| 189 | + @Override |
| 190 | + public String toString() { |
| 191 | + StringBuilder sb = new StringBuilder(); |
| 192 | + sb.append("class AIProviderForCreateUpstreamInput {\n"); |
| 193 | + |
| 194 | + sb.append(" baseUrl: ").append(toIndentedString(baseUrl)).append("\n"); |
| 195 | + sb.append(" customBodyParams: ").append(toIndentedString(customBodyParams)).append("\n"); |
| 196 | + sb.append(" customHeaderParams: ").append(toIndentedString(customHeaderParams)).append("\n"); |
| 197 | + sb.append(" customModelService: ").append(toIndentedString(customModelService)).append("\n"); |
| 198 | + sb.append(" name: ").append(toIndentedString(name)).append("\n"); |
| 199 | + sb.append(" token: ").append(toIndentedString(token)).append("\n"); |
| 200 | + sb.append("}"); |
| 201 | + return sb.toString(); |
| 202 | + } |
| 203 | + |
| 204 | + /** |
| 205 | + * Convert the given object to string with each line indented by 4 spaces |
| 206 | + * (except the first line). |
| 207 | + */ |
| 208 | + private String toIndentedString(java.lang.Object o) { |
| 209 | + if (o == null) { |
| 210 | + return "null"; |
| 211 | + } |
| 212 | + return o.toString().replace("\n", "\n "); |
| 213 | + } |
| 214 | + |
| 215 | +} |
0 commit comments