|
| 1 | +/* |
| 2 | + * dcdn |
| 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.dcdn.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 | + * BatchBlockIPRequest |
| 30 | + */ |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +public class BatchBlockIPRequest { |
| 35 | + @SerializedName("BlockInterval") |
| 36 | + private Integer blockInterval = null; |
| 37 | + |
| 38 | + @SerializedName("Domains") |
| 39 | + private List<String> domains = null; |
| 40 | + |
| 41 | + @SerializedName("IPList") |
| 42 | + private List<String> ipList = null; |
| 43 | + |
| 44 | + @SerializedName("OperatorType") |
| 45 | + private String operatorType = null; |
| 46 | + |
| 47 | + @SerializedName("UpdateType") |
| 48 | + private String updateType = null; |
| 49 | + |
| 50 | + public BatchBlockIPRequest blockInterval(Integer blockInterval) { |
| 51 | + this.blockInterval = blockInterval; |
| 52 | + return this; |
| 53 | + } |
| 54 | + |
| 55 | + /** |
| 56 | + * Get blockInterval |
| 57 | + * @return blockInterval |
| 58 | + **/ |
| 59 | + @Schema(description = "") |
| 60 | + public Integer getBlockInterval() { |
| 61 | + return blockInterval; |
| 62 | + } |
| 63 | + |
| 64 | + public void setBlockInterval(Integer blockInterval) { |
| 65 | + this.blockInterval = blockInterval; |
| 66 | + } |
| 67 | + |
| 68 | + public BatchBlockIPRequest domains(List<String> domains) { |
| 69 | + this.domains = domains; |
| 70 | + return this; |
| 71 | + } |
| 72 | + |
| 73 | + public BatchBlockIPRequest addDomainsItem(String domainsItem) { |
| 74 | + if (this.domains == null) { |
| 75 | + this.domains = new ArrayList<String>(); |
| 76 | + } |
| 77 | + this.domains.add(domainsItem); |
| 78 | + return this; |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * Get domains |
| 83 | + * @return domains |
| 84 | + **/ |
| 85 | + @Schema(description = "") |
| 86 | + public List<String> getDomains() { |
| 87 | + return domains; |
| 88 | + } |
| 89 | + |
| 90 | + public void setDomains(List<String> domains) { |
| 91 | + this.domains = domains; |
| 92 | + } |
| 93 | + |
| 94 | + public BatchBlockIPRequest ipList(List<String> ipList) { |
| 95 | + this.ipList = ipList; |
| 96 | + return this; |
| 97 | + } |
| 98 | + |
| 99 | + public BatchBlockIPRequest addIpListItem(String ipListItem) { |
| 100 | + if (this.ipList == null) { |
| 101 | + this.ipList = new ArrayList<String>(); |
| 102 | + } |
| 103 | + this.ipList.add(ipListItem); |
| 104 | + return this; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Get ipList |
| 109 | + * @return ipList |
| 110 | + **/ |
| 111 | + @Schema(description = "") |
| 112 | + public List<String> getIpList() { |
| 113 | + return ipList; |
| 114 | + } |
| 115 | + |
| 116 | + public void setIpList(List<String> ipList) { |
| 117 | + this.ipList = ipList; |
| 118 | + } |
| 119 | + |
| 120 | + public BatchBlockIPRequest operatorType(String operatorType) { |
| 121 | + this.operatorType = operatorType; |
| 122 | + return this; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Get operatorType |
| 127 | + * @return operatorType |
| 128 | + **/ |
| 129 | + @NotNull |
| 130 | + @Schema(required = true, description = "") |
| 131 | + public String getOperatorType() { |
| 132 | + return operatorType; |
| 133 | + } |
| 134 | + |
| 135 | + public void setOperatorType(String operatorType) { |
| 136 | + this.operatorType = operatorType; |
| 137 | + } |
| 138 | + |
| 139 | + public BatchBlockIPRequest updateType(String updateType) { |
| 140 | + this.updateType = updateType; |
| 141 | + return this; |
| 142 | + } |
| 143 | + |
| 144 | + /** |
| 145 | + * Get updateType |
| 146 | + * @return updateType |
| 147 | + **/ |
| 148 | + @Schema(description = "") |
| 149 | + public String getUpdateType() { |
| 150 | + return updateType; |
| 151 | + } |
| 152 | + |
| 153 | + public void setUpdateType(String updateType) { |
| 154 | + this.updateType = updateType; |
| 155 | + } |
| 156 | + |
| 157 | + |
| 158 | + @Override |
| 159 | + public boolean equals(java.lang.Object o) { |
| 160 | + if (this == o) { |
| 161 | + return true; |
| 162 | + } |
| 163 | + if (o == null || getClass() != o.getClass()) { |
| 164 | + return false; |
| 165 | + } |
| 166 | + BatchBlockIPRequest batchBlockIPRequest = (BatchBlockIPRequest) o; |
| 167 | + return Objects.equals(this.blockInterval, batchBlockIPRequest.blockInterval) && |
| 168 | + Objects.equals(this.domains, batchBlockIPRequest.domains) && |
| 169 | + Objects.equals(this.ipList, batchBlockIPRequest.ipList) && |
| 170 | + Objects.equals(this.operatorType, batchBlockIPRequest.operatorType) && |
| 171 | + Objects.equals(this.updateType, batchBlockIPRequest.updateType); |
| 172 | + } |
| 173 | + |
| 174 | + @Override |
| 175 | + public int hashCode() { |
| 176 | + return Objects.hash(blockInterval, domains, ipList, operatorType, updateType); |
| 177 | + } |
| 178 | + |
| 179 | + |
| 180 | + @Override |
| 181 | + public String toString() { |
| 182 | + StringBuilder sb = new StringBuilder(); |
| 183 | + sb.append("class BatchBlockIPRequest {\n"); |
| 184 | + |
| 185 | + sb.append(" blockInterval: ").append(toIndentedString(blockInterval)).append("\n"); |
| 186 | + sb.append(" domains: ").append(toIndentedString(domains)).append("\n"); |
| 187 | + sb.append(" ipList: ").append(toIndentedString(ipList)).append("\n"); |
| 188 | + sb.append(" operatorType: ").append(toIndentedString(operatorType)).append("\n"); |
| 189 | + sb.append(" updateType: ").append(toIndentedString(updateType)).append("\n"); |
| 190 | + sb.append("}"); |
| 191 | + return sb.toString(); |
| 192 | + } |
| 193 | + |
| 194 | + /** |
| 195 | + * Convert the given object to string with each line indented by 4 spaces |
| 196 | + * (except the first line). |
| 197 | + */ |
| 198 | + private String toIndentedString(java.lang.Object o) { |
| 199 | + if (o == null) { |
| 200 | + return "null"; |
| 201 | + } |
| 202 | + return o.toString().replace("\n", "\n "); |
| 203 | + } |
| 204 | + |
| 205 | +} |
0 commit comments