summaryrefslogtreecommitdiff
path: root/app/src/main/java/io/swagger/client/model/ModelsLocation.java
blob: adda676ba9c09e19ee2a9f9347583e2c7c62f721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
/*
 * Menshen API
 * This is a LEAP VPN Service API
 *
 * OpenAPI spec version: 0.5.2
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * ModelsLocation
 */

public class ModelsLocation {
  @SerializedName("country_code")
  private String countryCode = null;

  @SerializedName("display_name")
  private String displayName = null;

  @SerializedName("has_bridges")
  private Boolean hasBridges = null;

  @SerializedName("healthy")
  private Boolean healthy = null;

  @SerializedName("hemisphere")
  private String hemisphere = null;

  @SerializedName("label")
  private String label = null;

  @SerializedName("lat")
  private String lat = null;

  @SerializedName("lon")
  private String lon = null;

  @SerializedName("region")
  private String region = null;

  @SerializedName("timezone")
  private String timezone = null;

  public ModelsLocation countryCode(String countryCode) {
    this.countryCode = countryCode;
    return this;
  }

   /**
   * CountryCode is the two-character country ISO identifier (uppercase).
   * @return countryCode
  **/
  @ApiModelProperty(value = "CountryCode is the two-character country ISO identifier (uppercase).")
  public String getCountryCode() {
    return countryCode;
  }

  public void setCountryCode(String countryCode) {
    this.countryCode = countryCode;
  }

  public ModelsLocation displayName(String displayName) {
    this.displayName = displayName;
    return this;
  }

   /**
   * DisplayName is the user-facing string for a given location.
   * @return displayName
  **/
  @ApiModelProperty(value = "DisplayName is the user-facing string for a given location.")
  public String getDisplayName() {
    return displayName;
  }

  public void setDisplayName(String displayName) {
    this.displayName = displayName;
  }

  public ModelsLocation hasBridges(Boolean hasBridges) {
    this.hasBridges = hasBridges;
    return this;
  }

   /**
   * Any location that has at least one bridge configured will set this to true.
   * @return hasBridges
  **/
  @ApiModelProperty(value = "Any location that has at least one bridge configured will set this to true.")
  public Boolean isHasBridges() {
    return hasBridges;
  }

  public void setHasBridges(Boolean hasBridges) {
    this.hasBridges = hasBridges;
  }

  public ModelsLocation healthy(Boolean healthy) {
    this.healthy = healthy;
    return this;
  }

   /**
   * TODO Not used right now, but intended to signal when a location has all of their nodes overwhelmed.
   * @return healthy
  **/
  @ApiModelProperty(value = "TODO Not used right now, but intended to signal when a location has all of their nodes overwhelmed.")
  public Boolean isHealthy() {
    return healthy;
  }

  public void setHealthy(Boolean healthy) {
    this.healthy = healthy;
  }

  public ModelsLocation hemisphere(String hemisphere) {
    this.hemisphere = hemisphere;
    return this;
  }

   /**
   * Hemisphere is a legacy label for a gateway. The rationale was once intended to be to allocate gateways for an hemisphere with certain regional \"fairness\", even if they're geographically located in a different region. We might want to set this on the Gateway or Bridge, not in the Location itself...
   * @return hemisphere
  **/
  @ApiModelProperty(value = "Hemisphere is a legacy label for a gateway. The rationale was once intended to be to allocate gateways for an hemisphere with certain regional \"fairness\", even if they're geographically located in a different region. We might want to set this on the Gateway or Bridge, not in the Location itself...")
  public String getHemisphere() {
    return hemisphere;
  }

  public void setHemisphere(String hemisphere) {
    this.hemisphere = hemisphere;
  }

  public ModelsLocation label(String label) {
    this.label = label;
    return this;
  }

   /**
   * Label is the short representation of a location, used internally.
   * @return label
  **/
  @ApiModelProperty(value = "Label is the short representation of a location, used internally.")
  public String getLabel() {
    return label;
  }

  public void setLabel(String label) {
    this.label = label;
  }

  public ModelsLocation lat(String lat) {
    this.lat = lat;
    return this;
  }

   /**
   * Lat is the latitude for the location.
   * @return lat
  **/
  @ApiModelProperty(value = "Lat is the latitude for the location.")
  public String getLat() {
    return lat;
  }

  public void setLat(String lat) {
    this.lat = lat;
  }

  public ModelsLocation lon(String lon) {
    this.lon = lon;
    return this;
  }

   /**
   * Lon is the longitude for the location.
   * @return lon
  **/
  @ApiModelProperty(value = "Lon is the longitude for the location.")
  public String getLon() {
    return lon;
  }

  public void setLon(String lon) {
    this.lon = lon;
  }

  public ModelsLocation region(String region) {
    this.region = region;
    return this;
  }

   /**
   * Region is the continental region this gateway is assigned to. Not used at the moment, intended to use a label from the 7-continent model.
   * @return region
  **/
  @ApiModelProperty(value = "Region is the continental region this gateway is assigned to. Not used at the moment, intended to use a label from the 7-continent model.")
  public String getRegion() {
    return region;
  }

  public void setRegion(String region) {
    this.region = region;
  }

  public ModelsLocation timezone(String timezone) {
    this.timezone = timezone;
    return this;
  }

   /**
   * Timezone is the TZ for the location (-1, 0, +1, ...)
   * @return timezone
  **/
  @ApiModelProperty(value = "Timezone is the TZ for the location (-1, 0, +1, ...)")
  public String getTimezone() {
    return timezone;
  }

  public void setTimezone(String timezone) {
    this.timezone = timezone;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ModelsLocation modelsLocation = (ModelsLocation) o;
    return Objects.equals(this.countryCode, modelsLocation.countryCode) &&
        Objects.equals(this.displayName, modelsLocation.displayName) &&
        Objects.equals(this.hasBridges, modelsLocation.hasBridges) &&
        Objects.equals(this.healthy, modelsLocation.healthy) &&
        Objects.equals(this.hemisphere, modelsLocation.hemisphere) &&
        Objects.equals(this.label, modelsLocation.label) &&
        Objects.equals(this.lat, modelsLocation.lat) &&
        Objects.equals(this.lon, modelsLocation.lon) &&
        Objects.equals(this.region, modelsLocation.region) &&
        Objects.equals(this.timezone, modelsLocation.timezone);
  }

  @Override
  public int hashCode() {
    return Objects.hash(countryCode, displayName, hasBridges, healthy, hemisphere, label, lat, lon, region, timezone);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ModelsLocation {\n");
    
    sb.append("    countryCode: ").append(toIndentedString(countryCode)).append("\n");
    sb.append("    displayName: ").append(toIndentedString(displayName)).append("\n");
    sb.append("    hasBridges: ").append(toIndentedString(hasBridges)).append("\n");
    sb.append("    healthy: ").append(toIndentedString(healthy)).append("\n");
    sb.append("    hemisphere: ").append(toIndentedString(hemisphere)).append("\n");
    sb.append("    label: ").append(toIndentedString(label)).append("\n");
    sb.append("    lat: ").append(toIndentedString(lat)).append("\n");
    sb.append("    lon: ").append(toIndentedString(lon)).append("\n");
    sb.append("    region: ").append(toIndentedString(region)).append("\n");
    sb.append("    timezone: ").append(toIndentedString(timezone)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}