|
| 1 | +/* |
| 2 | + * vpn |
| 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.vpn.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 java.util.ArrayList; |
| 25 | +import java.util.List; |
| 26 | +import javax.validation.constraints.*; |
| 27 | +import javax.validation.Valid; |
| 28 | +/** |
| 29 | + * AsPathForDescribeVpnGatewayRouteAttributesOutput |
| 30 | + */ |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +public class AsPathForDescribeVpnGatewayRouteAttributesOutput { |
| 35 | + @SerializedName("Numbers") |
| 36 | + private List<Integer> numbers = null; |
| 37 | + |
| 38 | + /** |
| 39 | + * Gets or Sets type |
| 40 | + */ |
| 41 | + @JsonAdapter(TypeEnum.Adapter.class) |
| 42 | + public enum TypeEnum { |
| 43 | + @SerializedName("Sequence") |
| 44 | + SEQUENCE("Sequence"), |
| 45 | + @SerializedName(" Set") |
| 46 | + _SET(" Set"); |
| 47 | + |
| 48 | + private String value; |
| 49 | + |
| 50 | + TypeEnum(String value) { |
| 51 | + this.value = value; |
| 52 | + } |
| 53 | + public String getValue() { |
| 54 | + return value; |
| 55 | + } |
| 56 | + |
| 57 | + @Override |
| 58 | + public String toString() { |
| 59 | + return String.valueOf(value); |
| 60 | + } |
| 61 | + public static TypeEnum fromValue(String input) { |
| 62 | + for (TypeEnum b : TypeEnum.values()) { |
| 63 | + if (b.value.equals(input)) { |
| 64 | + return b; |
| 65 | + } |
| 66 | + } |
| 67 | + return null; |
| 68 | + } |
| 69 | + public static class Adapter extends TypeAdapter<TypeEnum> { |
| 70 | + @Override |
| 71 | + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { |
| 72 | + jsonWriter.value(String.valueOf(enumeration.getValue())); |
| 73 | + } |
| 74 | + |
| 75 | + @Override |
| 76 | + public TypeEnum read(final JsonReader jsonReader) throws IOException { |
| 77 | + Object value = jsonReader.nextString(); |
| 78 | + return TypeEnum.fromValue((String)(value)); |
| 79 | + } |
| 80 | + } |
| 81 | + } @SerializedName("Type") |
| 82 | + private TypeEnum type = null; |
| 83 | + |
| 84 | + public AsPathForDescribeVpnGatewayRouteAttributesOutput numbers(List<Integer> numbers) { |
| 85 | + this.numbers = numbers; |
| 86 | + return this; |
| 87 | + } |
| 88 | + |
| 89 | + public AsPathForDescribeVpnGatewayRouteAttributesOutput addNumbersItem(Integer numbersItem) { |
| 90 | + if (this.numbers == null) { |
| 91 | + this.numbers = new ArrayList<Integer>(); |
| 92 | + } |
| 93 | + this.numbers.add(numbersItem); |
| 94 | + return this; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Get numbers |
| 99 | + * @return numbers |
| 100 | + **/ |
| 101 | + @Schema(description = "") |
| 102 | + public List<Integer> getNumbers() { |
| 103 | + return numbers; |
| 104 | + } |
| 105 | + |
| 106 | + public void setNumbers(List<Integer> numbers) { |
| 107 | + this.numbers = numbers; |
| 108 | + } |
| 109 | + |
| 110 | + public AsPathForDescribeVpnGatewayRouteAttributesOutput type(TypeEnum type) { |
| 111 | + this.type = type; |
| 112 | + return this; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Get type |
| 117 | + * @return type |
| 118 | + **/ |
| 119 | + @Schema(description = "") |
| 120 | + public TypeEnum getType() { |
| 121 | + return type; |
| 122 | + } |
| 123 | + |
| 124 | + public void setType(TypeEnum type) { |
| 125 | + this.type = type; |
| 126 | + } |
| 127 | + |
| 128 | + |
| 129 | + @Override |
| 130 | + public boolean equals(java.lang.Object o) { |
| 131 | + if (this == o) { |
| 132 | + return true; |
| 133 | + } |
| 134 | + if (o == null || getClass() != o.getClass()) { |
| 135 | + return false; |
| 136 | + } |
| 137 | + AsPathForDescribeVpnGatewayRouteAttributesOutput asPathForDescribeVpnGatewayRouteAttributesOutput = (AsPathForDescribeVpnGatewayRouteAttributesOutput) o; |
| 138 | + return Objects.equals(this.numbers, asPathForDescribeVpnGatewayRouteAttributesOutput.numbers) && |
| 139 | + Objects.equals(this.type, asPathForDescribeVpnGatewayRouteAttributesOutput.type); |
| 140 | + } |
| 141 | + |
| 142 | + @Override |
| 143 | + public int hashCode() { |
| 144 | + return Objects.hash(numbers, type); |
| 145 | + } |
| 146 | + |
| 147 | + |
| 148 | + @Override |
| 149 | + public String toString() { |
| 150 | + StringBuilder sb = new StringBuilder(); |
| 151 | + sb.append("class AsPathForDescribeVpnGatewayRouteAttributesOutput {\n"); |
| 152 | + |
| 153 | + sb.append(" numbers: ").append(toIndentedString(numbers)).append("\n"); |
| 154 | + sb.append(" type: ").append(toIndentedString(type)).append("\n"); |
| 155 | + sb.append("}"); |
| 156 | + return sb.toString(); |
| 157 | + } |
| 158 | + |
| 159 | + /** |
| 160 | + * Convert the given object to string with each line indented by 4 spaces |
| 161 | + * (except the first line). |
| 162 | + */ |
| 163 | + private String toIndentedString(java.lang.Object o) { |
| 164 | + if (o == null) { |
| 165 | + return "null"; |
| 166 | + } |
| 167 | + return o.toString().replace("\n", "\n "); |
| 168 | + } |
| 169 | + |
| 170 | +} |
0 commit comments