|
| 1 | +/* |
| 2 | + * vke |
| 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.vke.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.vke.model.ProxyConfigForUpdateClusterConfigInput; |
| 23 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 24 | +import java.io.IOException; |
| 25 | +import javax.validation.constraints.*; |
| 26 | +import javax.validation.Valid; |
| 27 | +/** |
| 28 | + * ClusterConnectorConfigRequestForUpdateClusterConfigInput |
| 29 | + */ |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +public class ClusterConnectorConfigRequestForUpdateClusterConfigInput { |
| 34 | + /** |
| 35 | + * Gets or Sets provider |
| 36 | + */ |
| 37 | + @JsonAdapter(ProviderEnum.Adapter.class) |
| 38 | + public enum ProviderEnum { |
| 39 | + @SerializedName("Ack") |
| 40 | + ACK("Ack"), |
| 41 | + @SerializedName("Tke") |
| 42 | + TKE("Tke"), |
| 43 | + @SerializedName("Cce") |
| 44 | + CCE("Cce"), |
| 45 | + @SerializedName("Gke") |
| 46 | + GKE("Gke"), |
| 47 | + @SerializedName("Eks") |
| 48 | + EKS("Eks"), |
| 49 | + @SerializedName("BaiduCce") |
| 50 | + BAIDUCCE("BaiduCce"), |
| 51 | + @SerializedName("None") |
| 52 | + NONE("None"); |
| 53 | + |
| 54 | + private String value; |
| 55 | + |
| 56 | + ProviderEnum(String value) { |
| 57 | + this.value = value; |
| 58 | + } |
| 59 | + public String getValue() { |
| 60 | + return value; |
| 61 | + } |
| 62 | + |
| 63 | + @Override |
| 64 | + public String toString() { |
| 65 | + return String.valueOf(value); |
| 66 | + } |
| 67 | + public static ProviderEnum fromValue(String input) { |
| 68 | + for (ProviderEnum b : ProviderEnum.values()) { |
| 69 | + if (b.value.equals(input)) { |
| 70 | + return b; |
| 71 | + } |
| 72 | + } |
| 73 | + return null; |
| 74 | + } |
| 75 | + public static class Adapter extends TypeAdapter<ProviderEnum> { |
| 76 | + @Override |
| 77 | + public void write(final JsonWriter jsonWriter, final ProviderEnum enumeration) throws IOException { |
| 78 | + jsonWriter.value(String.valueOf(enumeration.getValue())); |
| 79 | + } |
| 80 | + |
| 81 | + @Override |
| 82 | + public ProviderEnum read(final JsonReader jsonReader) throws IOException { |
| 83 | + Object value = jsonReader.nextString(); |
| 84 | + return ProviderEnum.fromValue((String)(value)); |
| 85 | + } |
| 86 | + } |
| 87 | + } @SerializedName("Provider") |
| 88 | + private ProviderEnum provider = null; |
| 89 | + |
| 90 | + @SerializedName("ProxyConfig") |
| 91 | + private ProxyConfigForUpdateClusterConfigInput proxyConfig = null; |
| 92 | + |
| 93 | + @SerializedName("TargetKubeConfig") |
| 94 | + private String targetKubeConfig = null; |
| 95 | + |
| 96 | + /** |
| 97 | + * Gets or Sets type |
| 98 | + */ |
| 99 | + @JsonAdapter(TypeEnum.Adapter.class) |
| 100 | + public enum TypeEnum { |
| 101 | + @SerializedName("Direct") |
| 102 | + DIRECT("Direct"), |
| 103 | + @SerializedName("Proxy") |
| 104 | + PROXY("Proxy"); |
| 105 | + |
| 106 | + private String value; |
| 107 | + |
| 108 | + TypeEnum(String value) { |
| 109 | + this.value = value; |
| 110 | + } |
| 111 | + public String getValue() { |
| 112 | + return value; |
| 113 | + } |
| 114 | + |
| 115 | + @Override |
| 116 | + public String toString() { |
| 117 | + return String.valueOf(value); |
| 118 | + } |
| 119 | + public static TypeEnum fromValue(String input) { |
| 120 | + for (TypeEnum b : TypeEnum.values()) { |
| 121 | + if (b.value.equals(input)) { |
| 122 | + return b; |
| 123 | + } |
| 124 | + } |
| 125 | + return null; |
| 126 | + } |
| 127 | + public static class Adapter extends TypeAdapter<TypeEnum> { |
| 128 | + @Override |
| 129 | + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { |
| 130 | + jsonWriter.value(String.valueOf(enumeration.getValue())); |
| 131 | + } |
| 132 | + |
| 133 | + @Override |
| 134 | + public TypeEnum read(final JsonReader jsonReader) throws IOException { |
| 135 | + Object value = jsonReader.nextString(); |
| 136 | + return TypeEnum.fromValue((String)(value)); |
| 137 | + } |
| 138 | + } |
| 139 | + } @SerializedName("Type") |
| 140 | + private TypeEnum type = null; |
| 141 | + |
| 142 | + public ClusterConnectorConfigRequestForUpdateClusterConfigInput provider(ProviderEnum provider) { |
| 143 | + this.provider = provider; |
| 144 | + return this; |
| 145 | + } |
| 146 | + |
| 147 | + /** |
| 148 | + * Get provider |
| 149 | + * @return provider |
| 150 | + **/ |
| 151 | + @Schema(description = "") |
| 152 | + public ProviderEnum getProvider() { |
| 153 | + return provider; |
| 154 | + } |
| 155 | + |
| 156 | + public void setProvider(ProviderEnum provider) { |
| 157 | + this.provider = provider; |
| 158 | + } |
| 159 | + |
| 160 | + public ClusterConnectorConfigRequestForUpdateClusterConfigInput proxyConfig(ProxyConfigForUpdateClusterConfigInput proxyConfig) { |
| 161 | + this.proxyConfig = proxyConfig; |
| 162 | + return this; |
| 163 | + } |
| 164 | + |
| 165 | + /** |
| 166 | + * Get proxyConfig |
| 167 | + * @return proxyConfig |
| 168 | + **/ |
| 169 | + @Valid |
| 170 | + @Schema(description = "") |
| 171 | + public ProxyConfigForUpdateClusterConfigInput getProxyConfig() { |
| 172 | + return proxyConfig; |
| 173 | + } |
| 174 | + |
| 175 | + public void setProxyConfig(ProxyConfigForUpdateClusterConfigInput proxyConfig) { |
| 176 | + this.proxyConfig = proxyConfig; |
| 177 | + } |
| 178 | + |
| 179 | + public ClusterConnectorConfigRequestForUpdateClusterConfigInput targetKubeConfig(String targetKubeConfig) { |
| 180 | + this.targetKubeConfig = targetKubeConfig; |
| 181 | + return this; |
| 182 | + } |
| 183 | + |
| 184 | + /** |
| 185 | + * Get targetKubeConfig |
| 186 | + * @return targetKubeConfig |
| 187 | + **/ |
| 188 | + @Schema(description = "") |
| 189 | + public String getTargetKubeConfig() { |
| 190 | + return targetKubeConfig; |
| 191 | + } |
| 192 | + |
| 193 | + public void setTargetKubeConfig(String targetKubeConfig) { |
| 194 | + this.targetKubeConfig = targetKubeConfig; |
| 195 | + } |
| 196 | + |
| 197 | + public ClusterConnectorConfigRequestForUpdateClusterConfigInput type(TypeEnum type) { |
| 198 | + this.type = type; |
| 199 | + return this; |
| 200 | + } |
| 201 | + |
| 202 | + /** |
| 203 | + * Get type |
| 204 | + * @return type |
| 205 | + **/ |
| 206 | + @Schema(description = "") |
| 207 | + public TypeEnum getType() { |
| 208 | + return type; |
| 209 | + } |
| 210 | + |
| 211 | + public void setType(TypeEnum type) { |
| 212 | + this.type = type; |
| 213 | + } |
| 214 | + |
| 215 | + |
| 216 | + @Override |
| 217 | + public boolean equals(java.lang.Object o) { |
| 218 | + if (this == o) { |
| 219 | + return true; |
| 220 | + } |
| 221 | + if (o == null || getClass() != o.getClass()) { |
| 222 | + return false; |
| 223 | + } |
| 224 | + ClusterConnectorConfigRequestForUpdateClusterConfigInput clusterConnectorConfigRequestForUpdateClusterConfigInput = (ClusterConnectorConfigRequestForUpdateClusterConfigInput) o; |
| 225 | + return Objects.equals(this.provider, clusterConnectorConfigRequestForUpdateClusterConfigInput.provider) && |
| 226 | + Objects.equals(this.proxyConfig, clusterConnectorConfigRequestForUpdateClusterConfigInput.proxyConfig) && |
| 227 | + Objects.equals(this.targetKubeConfig, clusterConnectorConfigRequestForUpdateClusterConfigInput.targetKubeConfig) && |
| 228 | + Objects.equals(this.type, clusterConnectorConfigRequestForUpdateClusterConfigInput.type); |
| 229 | + } |
| 230 | + |
| 231 | + @Override |
| 232 | + public int hashCode() { |
| 233 | + return Objects.hash(provider, proxyConfig, targetKubeConfig, type); |
| 234 | + } |
| 235 | + |
| 236 | + |
| 237 | + @Override |
| 238 | + public String toString() { |
| 239 | + StringBuilder sb = new StringBuilder(); |
| 240 | + sb.append("class ClusterConnectorConfigRequestForUpdateClusterConfigInput {\n"); |
| 241 | + |
| 242 | + sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); |
| 243 | + sb.append(" proxyConfig: ").append(toIndentedString(proxyConfig)).append("\n"); |
| 244 | + sb.append(" targetKubeConfig: ").append(toIndentedString(targetKubeConfig)).append("\n"); |
| 245 | + sb.append(" type: ").append(toIndentedString(type)).append("\n"); |
| 246 | + sb.append("}"); |
| 247 | + return sb.toString(); |
| 248 | + } |
| 249 | + |
| 250 | + /** |
| 251 | + * Convert the given object to string with each line indented by 4 spaces |
| 252 | + * (except the first line). |
| 253 | + */ |
| 254 | + private String toIndentedString(java.lang.Object o) { |
| 255 | + if (o == null) { |
| 256 | + return "null"; |
| 257 | + } |
| 258 | + return o.toString().replace("\n", "\n "); |
| 259 | + } |
| 260 | + |
| 261 | +} |
0 commit comments