WeatherAirQuality.java 5.71 KB
Newer Older
EnesKarakas's avatar
EnesKarakas committed
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
package io.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;

/**
 * WeatherAirQuality
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-04T09:41:03.559554872Z[GMT]")

@JsonInclude(Include.NON_NULL)
public class WeatherAirQuality {
  @JsonProperty("co")
  private BigDecimal co = null;

  @JsonProperty("no2")
  private BigDecimal no2 = null;

  @JsonProperty("o3")
  private BigDecimal o3 = null;

  @JsonProperty("so2")
  private BigDecimal so2 = null;

  @JsonProperty("pm2_5")
  private BigDecimal pm25 = null;

  @JsonProperty("pm10")
  private BigDecimal pm10 = null;

  @JsonProperty("us-epa-index")
  private Integer usEpaIndex = null;

  @JsonProperty("gb-defra-index")
  private Integer gbDefraIndex = null;

  public WeatherAirQuality co(BigDecimal co) {
    this.co = co;
    return this;
  }

  /**
   * Get co
   * 
   * @return co
   **/
  @Schema(example = "234.32", description = "")
  @NotNull

  @Valid
  public BigDecimal getCo() {
    return co;
  }

  public void setCo(BigDecimal co) {
    this.co = co;
  }

  public WeatherAirQuality no2(BigDecimal no2) {
    this.no2 = no2;
    return this;
  }

  /**
   * Get no2
   * 
   * @return no2
   **/
  @Schema(example = "3.4", description = "")
  @NotNull

  @Valid
  public BigDecimal getNo2() {
    return no2;
  }

  public void setNo2(BigDecimal no2) {
    this.no2 = no2;
  }

  public WeatherAirQuality o3(BigDecimal o3) {
    this.o3 = o3;
    return this;
  }

  /**
   * Get o3
   * 
   * @return o3
   **/
  @Schema(example = "234.3", description = "")
  @NotNull

  @Valid
  public BigDecimal getO3() {
    return o3;
  }

  public void setO3(BigDecimal o3) {
    this.o3 = o3;
  }

  public WeatherAirQuality so2(BigDecimal so2) {
    this.so2 = so2;
    return this;
  }

  /**
   * Get so2
   * 
   * @return so2
   **/
  @Schema(example = "490.34", description = "")
  @NotNull

  @Valid
  public BigDecimal getSo2() {
    return so2;
  }

  public void setSo2(BigDecimal so2) {
    this.so2 = so2;
  }

  public WeatherAirQuality pm25(BigDecimal pm25) {
    this.pm25 = pm25;
    return this;
  }

  /**
   * Get pm25
   * 
   * @return pm25
   **/
  @Schema(example = "96.34", description = "")
  @NotNull

  @Valid
  public BigDecimal getPm25() {
    return pm25;
  }

  public void setPm25(BigDecimal pm25) {
    this.pm25 = pm25;
  }

  public WeatherAirQuality pm10(BigDecimal pm10) {
    this.pm10 = pm10;
    return this;
  }

  /**
   * Get pm10
   * 
   * @return pm10
   **/
  @Schema(example = "22.3", description = "")
  @NotNull

  @Valid
  public BigDecimal getPm10() {
    return pm10;
  }

  public void setPm10(BigDecimal pm10) {
    this.pm10 = pm10;
  }

  public WeatherAirQuality usEpaIndex(Integer usEpaIndex) {
    this.usEpaIndex = usEpaIndex;
    return this;
  }

  /**
   * Get usEpaIndex
   * 
   * @return usEpaIndex
   **/
  @Schema(example = "32", description = "")
  @NotNull

  public Integer getUsEpaIndex() {
    return usEpaIndex;
  }

  public void setUsEpaIndex(Integer usEpaIndex) {
    this.usEpaIndex = usEpaIndex;
  }

  public WeatherAirQuality gbDefraIndex(Integer gbDefraIndex) {
    this.gbDefraIndex = gbDefraIndex;
    return this;
  }

  /**
   * Get gbDefraIndex
   * 
   * @return gbDefraIndex
   **/
  @Schema(example = "9999", description = "")
  @NotNull

  public Integer getGbDefraIndex() {
    return gbDefraIndex;
  }

  public void setGbDefraIndex(Integer gbDefraIndex) {
    this.gbDefraIndex = gbDefraIndex;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    WeatherAirQuality weatherAirQuality = (WeatherAirQuality) o;
    return Objects.equals(this.co, weatherAirQuality.co) &&
        Objects.equals(this.no2, weatherAirQuality.no2) &&
        Objects.equals(this.o3, weatherAirQuality.o3) &&
        Objects.equals(this.so2, weatherAirQuality.so2) &&
        Objects.equals(this.pm25, weatherAirQuality.pm25) &&
        Objects.equals(this.pm10, weatherAirQuality.pm10) &&
        Objects.equals(this.usEpaIndex, weatherAirQuality.usEpaIndex) &&
        Objects.equals(this.gbDefraIndex, weatherAirQuality.gbDefraIndex);
  }

  @Override
  public int hashCode() {
    return Objects.hash(co, no2, o3, so2, pm25, pm10, usEpaIndex, gbDefraIndex);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class WeatherAirQuality {\n");

    sb.append("    co: ").append(toIndentedString(co)).append("\n");
    sb.append("    no2: ").append(toIndentedString(no2)).append("\n");
    sb.append("    o3: ").append(toIndentedString(o3)).append("\n");
    sb.append("    so2: ").append(toIndentedString(so2)).append("\n");
    sb.append("    pm25: ").append(toIndentedString(pm25)).append("\n");
    sb.append("    pm10: ").append(toIndentedString(pm10)).append("\n");
    sb.append("    usEpaIndex: ").append(toIndentedString(usEpaIndex)).append("\n");
    sb.append("    gbDefraIndex: ").append(toIndentedString(gbDefraIndex)).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    ");
  }
}