summaryrefslogtreecommitdiff
path: root/app/src/main/java/io/swagger/client/model/ModelsEIPService.java
blob: 939f8aa6a5cdc3ab0b61820af0ee3db5abdd7392 (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
/*
 * 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 io.swagger.client.model.ModelsLocation;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * ModelsEIPService
 */

public class ModelsEIPService {
  @SerializedName("auth")
  private String auth = null;

  @SerializedName("locations")
  private Map<String, ModelsLocation> locations = null;

  @SerializedName("openvpn_configuration")
  private Map<String, Object> openvpnConfiguration = null;

  @SerializedName("serial")
  private Integer serial = null;

  @SerializedName("version")
  private Integer version = null;

  public ModelsEIPService auth(String auth) {
    this.auth = auth;
    return this;
  }

   /**
   * Get auth
   * @return auth
  **/
  @ApiModelProperty(value = "")
  public String getAuth() {
    return auth;
  }

  public void setAuth(String auth) {
    this.auth = auth;
  }

  public ModelsEIPService locations(Map<String, ModelsLocation> locations) {
    this.locations = locations;
    return this;
  }

  public ModelsEIPService putLocationsItem(String key, ModelsLocation locationsItem) {
    if (this.locations == null) {
      this.locations = new HashMap<String, ModelsLocation>();
    }
    this.locations.put(key, locationsItem);
    return this;
  }

   /**
   * Get locations
   * @return locations
  **/
  @ApiModelProperty(value = "")
  public Map<String, ModelsLocation> getLocations() {
    return locations;
  }

  public void setLocations(Map<String, ModelsLocation> locations) {
    this.locations = locations;
  }

  public ModelsEIPService openvpnConfiguration(Map<String, Object> openvpnConfiguration) {
    this.openvpnConfiguration = openvpnConfiguration;
    return this;
  }

  public ModelsEIPService putOpenvpnConfigurationItem(String key, Object openvpnConfigurationItem) {
    if (this.openvpnConfiguration == null) {
      this.openvpnConfiguration = new HashMap<String, Object>();
    }
    this.openvpnConfiguration.put(key, openvpnConfigurationItem);
    return this;
  }

   /**
   * Get openvpnConfiguration
   * @return openvpnConfiguration
  **/
  @ApiModelProperty(value = "")
  public Map<String, Object> getOpenvpnConfiguration() {
    return openvpnConfiguration;
  }

  public void setOpenvpnConfiguration(Map<String, Object> openvpnConfiguration) {
    this.openvpnConfiguration = openvpnConfiguration;
  }

  public ModelsEIPService serial(Integer serial) {
    this.serial = serial;
    return this;
  }

   /**
   * Get serial
   * @return serial
  **/
  @ApiModelProperty(value = "")
  public Integer getSerial() {
    return serial;
  }

  public void setSerial(Integer serial) {
    this.serial = serial;
  }

  public ModelsEIPService version(Integer version) {
    this.version = version;
    return this;
  }

   /**
   * Get version
   * @return version
  **/
  @ApiModelProperty(value = "")
  public Integer getVersion() {
    return version;
  }

  public void setVersion(Integer version) {
    this.version = version;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ModelsEIPService modelsEIPService = (ModelsEIPService) o;
    return Objects.equals(this.auth, modelsEIPService.auth) &&
        Objects.equals(this.locations, modelsEIPService.locations) &&
        Objects.equals(this.openvpnConfiguration, modelsEIPService.openvpnConfiguration) &&
        Objects.equals(this.serial, modelsEIPService.serial) &&
        Objects.equals(this.version, modelsEIPService.version);
  }

  @Override
  public int hashCode() {
    return Objects.hash(auth, locations, openvpnConfiguration, serial, version);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ModelsEIPService {\n");
    
    sb.append("    auth: ").append(toIndentedString(auth)).append("\n");
    sb.append("    locations: ").append(toIndentedString(locations)).append("\n");
    sb.append("    openvpnConfiguration: ").append(toIndentedString(openvpnConfiguration)).append("\n");
    sb.append("    serial: ").append(toIndentedString(serial)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).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    ");
  }

}