|
| 1 | +/* |
| 2 | + * id |
| 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.id.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.id.model.ExtractorForBatchCreateRoutesInput; |
| 23 | +import com.volcengine.id.model.ResponseFilterForBatchCreateRoutesInput; |
| 24 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 25 | +import java.io.IOException; |
| 26 | +import java.util.ArrayList; |
| 27 | +import java.util.List; |
| 28 | +import javax.validation.constraints.*; |
| 29 | +import javax.validation.Valid; |
| 30 | +/** |
| 31 | + * ApiSpecForBatchCreateRoutesInput |
| 32 | + */ |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +public class ApiSpecForBatchCreateRoutesInput { |
| 37 | + @SerializedName("ActionType") |
| 38 | + private String actionType = null; |
| 39 | + |
| 40 | + @SerializedName("ActionValue") |
| 41 | + private String actionValue = null; |
| 42 | + |
| 43 | + @SerializedName("Extractors") |
| 44 | + private List<ExtractorForBatchCreateRoutesInput> extractors = null; |
| 45 | + |
| 46 | + @SerializedName("IdentifierType") |
| 47 | + private Integer identifierType = null; |
| 48 | + |
| 49 | + @SerializedName("IdentifierValue") |
| 50 | + private String identifierValue = null; |
| 51 | + |
| 52 | + @SerializedName("ResponseFilters") |
| 53 | + private List<ResponseFilterForBatchCreateRoutesInput> responseFilters = null; |
| 54 | + |
| 55 | + public ApiSpecForBatchCreateRoutesInput actionType(String actionType) { |
| 56 | + this.actionType = actionType; |
| 57 | + return this; |
| 58 | + } |
| 59 | + |
| 60 | + /** |
| 61 | + * Get actionType |
| 62 | + * @return actionType |
| 63 | + **/ |
| 64 | + @Schema(description = "") |
| 65 | + public String getActionType() { |
| 66 | + return actionType; |
| 67 | + } |
| 68 | + |
| 69 | + public void setActionType(String actionType) { |
| 70 | + this.actionType = actionType; |
| 71 | + } |
| 72 | + |
| 73 | + public ApiSpecForBatchCreateRoutesInput actionValue(String actionValue) { |
| 74 | + this.actionValue = actionValue; |
| 75 | + return this; |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * Get actionValue |
| 80 | + * @return actionValue |
| 81 | + **/ |
| 82 | + @Schema(description = "") |
| 83 | + public String getActionValue() { |
| 84 | + return actionValue; |
| 85 | + } |
| 86 | + |
| 87 | + public void setActionValue(String actionValue) { |
| 88 | + this.actionValue = actionValue; |
| 89 | + } |
| 90 | + |
| 91 | + public ApiSpecForBatchCreateRoutesInput extractors(List<ExtractorForBatchCreateRoutesInput> extractors) { |
| 92 | + this.extractors = extractors; |
| 93 | + return this; |
| 94 | + } |
| 95 | + |
| 96 | + public ApiSpecForBatchCreateRoutesInput addExtractorsItem(ExtractorForBatchCreateRoutesInput extractorsItem) { |
| 97 | + if (this.extractors == null) { |
| 98 | + this.extractors = new ArrayList<ExtractorForBatchCreateRoutesInput>(); |
| 99 | + } |
| 100 | + this.extractors.add(extractorsItem); |
| 101 | + return this; |
| 102 | + } |
| 103 | + |
| 104 | + /** |
| 105 | + * Get extractors |
| 106 | + * @return extractors |
| 107 | + **/ |
| 108 | + @Valid |
| 109 | + @Schema(description = "") |
| 110 | + public List<ExtractorForBatchCreateRoutesInput> getExtractors() { |
| 111 | + return extractors; |
| 112 | + } |
| 113 | + |
| 114 | + public void setExtractors(List<ExtractorForBatchCreateRoutesInput> extractors) { |
| 115 | + this.extractors = extractors; |
| 116 | + } |
| 117 | + |
| 118 | + public ApiSpecForBatchCreateRoutesInput identifierType(Integer identifierType) { |
| 119 | + this.identifierType = identifierType; |
| 120 | + return this; |
| 121 | + } |
| 122 | + |
| 123 | + /** |
| 124 | + * Get identifierType |
| 125 | + * @return identifierType |
| 126 | + **/ |
| 127 | + @Schema(description = "") |
| 128 | + public Integer getIdentifierType() { |
| 129 | + return identifierType; |
| 130 | + } |
| 131 | + |
| 132 | + public void setIdentifierType(Integer identifierType) { |
| 133 | + this.identifierType = identifierType; |
| 134 | + } |
| 135 | + |
| 136 | + public ApiSpecForBatchCreateRoutesInput identifierValue(String identifierValue) { |
| 137 | + this.identifierValue = identifierValue; |
| 138 | + return this; |
| 139 | + } |
| 140 | + |
| 141 | + /** |
| 142 | + * Get identifierValue |
| 143 | + * @return identifierValue |
| 144 | + **/ |
| 145 | + @Schema(description = "") |
| 146 | + public String getIdentifierValue() { |
| 147 | + return identifierValue; |
| 148 | + } |
| 149 | + |
| 150 | + public void setIdentifierValue(String identifierValue) { |
| 151 | + this.identifierValue = identifierValue; |
| 152 | + } |
| 153 | + |
| 154 | + public ApiSpecForBatchCreateRoutesInput responseFilters(List<ResponseFilterForBatchCreateRoutesInput> responseFilters) { |
| 155 | + this.responseFilters = responseFilters; |
| 156 | + return this; |
| 157 | + } |
| 158 | + |
| 159 | + public ApiSpecForBatchCreateRoutesInput addResponseFiltersItem(ResponseFilterForBatchCreateRoutesInput responseFiltersItem) { |
| 160 | + if (this.responseFilters == null) { |
| 161 | + this.responseFilters = new ArrayList<ResponseFilterForBatchCreateRoutesInput>(); |
| 162 | + } |
| 163 | + this.responseFilters.add(responseFiltersItem); |
| 164 | + return this; |
| 165 | + } |
| 166 | + |
| 167 | + /** |
| 168 | + * Get responseFilters |
| 169 | + * @return responseFilters |
| 170 | + **/ |
| 171 | + @Valid |
| 172 | + @Schema(description = "") |
| 173 | + public List<ResponseFilterForBatchCreateRoutesInput> getResponseFilters() { |
| 174 | + return responseFilters; |
| 175 | + } |
| 176 | + |
| 177 | + public void setResponseFilters(List<ResponseFilterForBatchCreateRoutesInput> responseFilters) { |
| 178 | + this.responseFilters = responseFilters; |
| 179 | + } |
| 180 | + |
| 181 | + |
| 182 | + @Override |
| 183 | + public boolean equals(java.lang.Object o) { |
| 184 | + if (this == o) { |
| 185 | + return true; |
| 186 | + } |
| 187 | + if (o == null || getClass() != o.getClass()) { |
| 188 | + return false; |
| 189 | + } |
| 190 | + ApiSpecForBatchCreateRoutesInput apiSpecForBatchCreateRoutesInput = (ApiSpecForBatchCreateRoutesInput) o; |
| 191 | + return Objects.equals(this.actionType, apiSpecForBatchCreateRoutesInput.actionType) && |
| 192 | + Objects.equals(this.actionValue, apiSpecForBatchCreateRoutesInput.actionValue) && |
| 193 | + Objects.equals(this.extractors, apiSpecForBatchCreateRoutesInput.extractors) && |
| 194 | + Objects.equals(this.identifierType, apiSpecForBatchCreateRoutesInput.identifierType) && |
| 195 | + Objects.equals(this.identifierValue, apiSpecForBatchCreateRoutesInput.identifierValue) && |
| 196 | + Objects.equals(this.responseFilters, apiSpecForBatchCreateRoutesInput.responseFilters); |
| 197 | + } |
| 198 | + |
| 199 | + @Override |
| 200 | + public int hashCode() { |
| 201 | + return Objects.hash(actionType, actionValue, extractors, identifierType, identifierValue, responseFilters); |
| 202 | + } |
| 203 | + |
| 204 | + |
| 205 | + @Override |
| 206 | + public String toString() { |
| 207 | + StringBuilder sb = new StringBuilder(); |
| 208 | + sb.append("class ApiSpecForBatchCreateRoutesInput {\n"); |
| 209 | + |
| 210 | + sb.append(" actionType: ").append(toIndentedString(actionType)).append("\n"); |
| 211 | + sb.append(" actionValue: ").append(toIndentedString(actionValue)).append("\n"); |
| 212 | + sb.append(" extractors: ").append(toIndentedString(extractors)).append("\n"); |
| 213 | + sb.append(" identifierType: ").append(toIndentedString(identifierType)).append("\n"); |
| 214 | + sb.append(" identifierValue: ").append(toIndentedString(identifierValue)).append("\n"); |
| 215 | + sb.append(" responseFilters: ").append(toIndentedString(responseFilters)).append("\n"); |
| 216 | + sb.append("}"); |
| 217 | + return sb.toString(); |
| 218 | + } |
| 219 | + |
| 220 | + /** |
| 221 | + * Convert the given object to string with each line indented by 4 spaces |
| 222 | + * (except the first line). |
| 223 | + */ |
| 224 | + private String toIndentedString(java.lang.Object o) { |
| 225 | + if (o == null) { |
| 226 | + return "null"; |
| 227 | + } |
| 228 | + return o.toString().replace("\n", "\n "); |
| 229 | + } |
| 230 | + |
| 231 | +} |
0 commit comments