|
| 1 | +/* |
| 2 | + * Fingerprint Pro Server API |
| 3 | + * Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. |
| 4 | + * |
| 5 | + * The version of the OpenAPI document: 3 |
| 6 | + * Contact: support@fingerprint.com |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 9 | + * https://openapi-generator.tech |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | + |
| 14 | +package com.fingerprint.model; |
| 15 | + |
| 16 | +import java.util.Objects; |
| 17 | +import java.util.Arrays; |
| 18 | +import java.util.Map; |
| 19 | +import java.util.HashMap; |
| 20 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 21 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 22 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 23 | +import com.fasterxml.jackson.annotation.JsonTypeName; |
| 24 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 25 | +import io.swagger.annotations.ApiModel; |
| 26 | +import io.swagger.annotations.ApiModelProperty; |
| 27 | +import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| 28 | +import com.fingerprint.sdk.JSON; |
| 29 | + |
| 30 | + |
| 31 | +/** |
| 32 | + * ASN |
| 33 | + */ |
| 34 | +@JsonPropertyOrder({ |
| 35 | + ASN.JSON_PROPERTY_ASN, |
| 36 | + ASN.JSON_PROPERTY_NETWORK, |
| 37 | + ASN.JSON_PROPERTY_NAME |
| 38 | +}) |
| 39 | +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") |
| 40 | +public class ASN { |
| 41 | + public static final String JSON_PROPERTY_ASN = "asn"; |
| 42 | + private String asn; |
| 43 | + |
| 44 | + public static final String JSON_PROPERTY_NETWORK = "network"; |
| 45 | + private String network; |
| 46 | + |
| 47 | + public static final String JSON_PROPERTY_NAME = "name"; |
| 48 | + private String name; |
| 49 | + |
| 50 | + public ASN() { |
| 51 | + } |
| 52 | + |
| 53 | + public ASN asn(String asn) { |
| 54 | + this.asn = asn; |
| 55 | + return this; |
| 56 | + } |
| 57 | + |
| 58 | + /** |
| 59 | + * Get asn |
| 60 | + * @return asn |
| 61 | + **/ |
| 62 | + @javax.annotation.Nonnull |
| 63 | + @ApiModelProperty(example = "7922", required = true, value = "") |
| 64 | + @JsonProperty(JSON_PROPERTY_ASN) |
| 65 | + @JsonInclude(value = JsonInclude.Include.ALWAYS) |
| 66 | + |
| 67 | + public String getAsn() { |
| 68 | + return asn; |
| 69 | + } |
| 70 | + |
| 71 | + |
| 72 | + @JsonProperty(JSON_PROPERTY_ASN) |
| 73 | + @JsonInclude(value = JsonInclude.Include.ALWAYS) |
| 74 | + public void setAsn(String asn) { |
| 75 | + this.asn = asn; |
| 76 | + } |
| 77 | + |
| 78 | + |
| 79 | + public ASN network(String network) { |
| 80 | + this.network = network; |
| 81 | + return this; |
| 82 | + } |
| 83 | + |
| 84 | + /** |
| 85 | + * Get network |
| 86 | + * @return network |
| 87 | + **/ |
| 88 | + @javax.annotation.Nonnull |
| 89 | + @ApiModelProperty(example = "73.136.0.0/13", required = true, value = "") |
| 90 | + @JsonProperty(JSON_PROPERTY_NETWORK) |
| 91 | + @JsonInclude(value = JsonInclude.Include.ALWAYS) |
| 92 | + |
| 93 | + public String getNetwork() { |
| 94 | + return network; |
| 95 | + } |
| 96 | + |
| 97 | + |
| 98 | + @JsonProperty(JSON_PROPERTY_NETWORK) |
| 99 | + @JsonInclude(value = JsonInclude.Include.ALWAYS) |
| 100 | + public void setNetwork(String network) { |
| 101 | + this.network = network; |
| 102 | + } |
| 103 | + |
| 104 | + |
| 105 | + public ASN name(String name) { |
| 106 | + this.name = name; |
| 107 | + return this; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * Get name |
| 112 | + * @return name |
| 113 | + **/ |
| 114 | + @javax.annotation.Nullable |
| 115 | + @ApiModelProperty(example = "COMCAST-7922", value = "") |
| 116 | + @JsonProperty(JSON_PROPERTY_NAME) |
| 117 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 118 | + |
| 119 | + public String getName() { |
| 120 | + return name; |
| 121 | + } |
| 122 | + |
| 123 | + |
| 124 | + @JsonProperty(JSON_PROPERTY_NAME) |
| 125 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 126 | + public void setName(String name) { |
| 127 | + this.name = name; |
| 128 | + } |
| 129 | + |
| 130 | + |
| 131 | + /** |
| 132 | + * Return true if this ASN object is equal to o. |
| 133 | + */ |
| 134 | + @Override |
| 135 | + public boolean equals(Object o) { |
| 136 | + if (this == o) { |
| 137 | + return true; |
| 138 | + } |
| 139 | + if (o == null || getClass() != o.getClass()) { |
| 140 | + return false; |
| 141 | + } |
| 142 | + ASN ASN = (ASN) o; |
| 143 | + return Objects.equals(this.asn, ASN.asn) && |
| 144 | + Objects.equals(this.network, ASN.network) && |
| 145 | + Objects.equals(this.name, ASN.name); |
| 146 | + } |
| 147 | + |
| 148 | + @Override |
| 149 | + public int hashCode() { |
| 150 | + return Objects.hash(asn, network, name); |
| 151 | + } |
| 152 | + |
| 153 | + @Override |
| 154 | + public String toString() { |
| 155 | + StringBuilder sb = new StringBuilder(); |
| 156 | + sb.append("class ASN {\n"); |
| 157 | + sb.append(" asn: ").append(toIndentedString(asn)).append("\n"); |
| 158 | + sb.append(" network: ").append(toIndentedString(network)).append("\n"); |
| 159 | + sb.append(" name: ").append(toIndentedString(name)).append("\n"); |
| 160 | + sb.append("}"); |
| 161 | + return sb.toString(); |
| 162 | + } |
| 163 | + |
| 164 | + /** |
| 165 | + * Convert the given object to string with each line indented by 4 spaces |
| 166 | + * (except the first line). |
| 167 | + */ |
| 168 | + private String toIndentedString(Object o) { |
| 169 | + if (o == null) { |
| 170 | + return "null"; |
| 171 | + } |
| 172 | + return o.toString().replace("\n", "\n "); |
| 173 | + } |
| 174 | + |
| 175 | +} |
| 176 | + |
0 commit comments