Alerts.java 8.14 KB
Newer Older
EnesKarakas's avatar
EnesKarakas committed
1
2
3
4
5
package io.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
EnesKarakas's avatar
de    
EnesKarakas committed
6
7
8
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

EnesKarakas's avatar
EnesKarakas committed
9
10
11
12
13
14
15
16
17
18
19
import io.swagger.v3.oas.annotations.media.Schema;
import org.threeten.bp.OffsetDateTime;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;

/**
 * Alerts
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-06-06T14:20:51.790816423Z[GMT]")
EnesKarakas's avatar
de    
EnesKarakas committed
20
@JsonInclude(Include.NON_NULL)
EnesKarakas's avatar
EnesKarakas committed
21

EnesKarakas's avatar
de    
EnesKarakas committed
22
public class Alerts {
EnesKarakas's avatar
EnesKarakas committed
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
  @JsonProperty("headline")
  private String headline = null;

  @JsonProperty("msgtype")
  private String msgtype = null;

  @JsonProperty("severity")
  private String severity = null;

  @JsonProperty("urgency")
  private String urgency = null;

  @JsonProperty("areas")
  private String areas = null;

  @JsonProperty("category")
  private String category = null;

  @JsonProperty("certainty")
  private String certainty = null;

  @JsonProperty("event")
  private String event = null;

  @JsonProperty("note")
  private String note = null;

  @JsonProperty("effective")
  private OffsetDateTime effective = null;

  @JsonProperty("expires")
  private OffsetDateTime expires = null;

  @JsonProperty("desc")
  private String desc = null;

  @JsonProperty("instruction")
  private String instruction = null;

  public Alerts headline(String headline) {
    this.headline = headline;
    return this;
  }

  /**
   * Get headline
EnesKarakas's avatar
de    
EnesKarakas committed
69
   * 
EnesKarakas's avatar
EnesKarakas committed
70
71
72
   * @return headline
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
73
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
74

EnesKarakas's avatar
de    
EnesKarakas committed
75
  public String getHeadline() {
EnesKarakas's avatar
EnesKarakas committed
76
77
78
79
80
81
82
83
84
85
86
87
88
89
    return headline;
  }

  public void setHeadline(String headline) {
    this.headline = headline;
  }

  public Alerts msgtype(String msgtype) {
    this.msgtype = msgtype;
    return this;
  }

  /**
   * Get msgtype
EnesKarakas's avatar
de    
EnesKarakas committed
90
   * 
EnesKarakas's avatar
EnesKarakas committed
91
92
93
   * @return msgtype
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
94
95

  public String getMsgtype() {
EnesKarakas's avatar
EnesKarakas committed
96
97
98
99
100
101
102
103
104
105
106
107
108
109
    return msgtype;
  }

  public void setMsgtype(String msgtype) {
    this.msgtype = msgtype;
  }

  public Alerts severity(String severity) {
    this.severity = severity;
    return this;
  }

  /**
   * Get severity
EnesKarakas's avatar
de    
EnesKarakas committed
110
   * 
EnesKarakas's avatar
EnesKarakas committed
111
112
113
   * @return severity
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
114
115

  public String getSeverity() {
EnesKarakas's avatar
EnesKarakas committed
116
117
118
119
120
121
122
123
124
125
126
127
128
129
    return severity;
  }

  public void setSeverity(String severity) {
    this.severity = severity;
  }

  public Alerts urgency(String urgency) {
    this.urgency = urgency;
    return this;
  }

  /**
   * Get urgency
EnesKarakas's avatar
de    
EnesKarakas committed
130
   * 
EnesKarakas's avatar
EnesKarakas committed
131
132
133
   * @return urgency
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
134
135

  public String getUrgency() {
EnesKarakas's avatar
EnesKarakas committed
136
137
138
139
140
141
142
143
144
145
146
147
148
149
    return urgency;
  }

  public void setUrgency(String urgency) {
    this.urgency = urgency;
  }

  public Alerts areas(String areas) {
    this.areas = areas;
    return this;
  }

  /**
   * Get areas
EnesKarakas's avatar
de    
EnesKarakas committed
150
   * 
EnesKarakas's avatar
EnesKarakas committed
151
152
153
   * @return areas
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
154
155

  public String getAreas() {
EnesKarakas's avatar
EnesKarakas committed
156
157
158
159
160
161
162
163
164
165
166
167
168
169
    return areas;
  }

  public void setAreas(String areas) {
    this.areas = areas;
  }

  public Alerts category(String category) {
    this.category = category;
    return this;
  }

  /**
   * Get category
EnesKarakas's avatar
de    
EnesKarakas committed
170
   * 
EnesKarakas's avatar
EnesKarakas committed
171
172
173
   * @return category
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
174
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
175

EnesKarakas's avatar
de    
EnesKarakas committed
176
  public String getCategory() {
EnesKarakas's avatar
EnesKarakas committed
177
178
179
180
181
182
183
184
185
186
187
188
189
190
    return category;
  }

  public void setCategory(String category) {
    this.category = category;
  }

  public Alerts certainty(String certainty) {
    this.certainty = certainty;
    return this;
  }

  /**
   * Get certainty
EnesKarakas's avatar
de    
EnesKarakas committed
191
   * 
EnesKarakas's avatar
EnesKarakas committed
192
193
194
   * @return certainty
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
195
196

  public String getCertainty() {
EnesKarakas's avatar
EnesKarakas committed
197
198
199
200
201
202
203
204
205
206
207
208
209
210
    return certainty;
  }

  public void setCertainty(String certainty) {
    this.certainty = certainty;
  }

  public Alerts event(String event) {
    this.event = event;
    return this;
  }

  /**
   * Get event
EnesKarakas's avatar
de    
EnesKarakas committed
211
   * 
EnesKarakas's avatar
EnesKarakas committed
212
213
214
   * @return event
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
215
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
216

EnesKarakas's avatar
de    
EnesKarakas committed
217
  public String getEvent() {
EnesKarakas's avatar
EnesKarakas committed
218
219
220
221
222
223
224
225
226
227
228
229
230
231
    return event;
  }

  public void setEvent(String event) {
    this.event = event;
  }

  public Alerts note(String note) {
    this.note = note;
    return this;
  }

  /**
   * Get note
EnesKarakas's avatar
de    
EnesKarakas committed
232
   * 
EnesKarakas's avatar
EnesKarakas committed
233
234
235
   * @return note
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
236
237

  public String getNote() {
EnesKarakas's avatar
EnesKarakas committed
238
239
240
241
242
243
244
245
246
247
248
249
250
251
    return note;
  }

  public void setNote(String note) {
    this.note = note;
  }

  public Alerts effective(OffsetDateTime effective) {
    this.effective = effective;
    return this;
  }

  /**
   * Get effective
EnesKarakas's avatar
de    
EnesKarakas committed
252
   * 
EnesKarakas's avatar
EnesKarakas committed
253
254
255
   * @return effective
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
256
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
257

EnesKarakas's avatar
de    
EnesKarakas committed
258
259
  @Valid
  public OffsetDateTime getEffective() {
EnesKarakas's avatar
EnesKarakas committed
260
261
262
263
264
265
266
267
268
269
270
271
272
273
    return effective;
  }

  public void setEffective(OffsetDateTime effective) {
    this.effective = effective;
  }

  public Alerts expires(OffsetDateTime expires) {
    this.expires = expires;
    return this;
  }

  /**
   * Get expires
EnesKarakas's avatar
de    
EnesKarakas committed
274
   * 
EnesKarakas's avatar
EnesKarakas committed
275
276
277
   * @return expires
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
278
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
279

EnesKarakas's avatar
de    
EnesKarakas committed
280
281
  @Valid
  public OffsetDateTime getExpires() {
EnesKarakas's avatar
EnesKarakas committed
282
283
284
285
286
287
288
289
290
291
292
293
294
295
    return expires;
  }

  public void setExpires(OffsetDateTime expires) {
    this.expires = expires;
  }

  public Alerts desc(String desc) {
    this.desc = desc;
    return this;
  }

  /**
   * Get desc
EnesKarakas's avatar
de    
EnesKarakas committed
296
   * 
EnesKarakas's avatar
EnesKarakas committed
297
298
299
   * @return desc
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
300
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
301

EnesKarakas's avatar
de    
EnesKarakas committed
302
  public String getDesc() {
EnesKarakas's avatar
EnesKarakas committed
303
304
305
306
307
308
309
310
311
312
313
314
315
316
    return desc;
  }

  public void setDesc(String desc) {
    this.desc = desc;
  }

  public Alerts instruction(String instruction) {
    this.instruction = instruction;
    return this;
  }

  /**
   * Get instruction
EnesKarakas's avatar
de    
EnesKarakas committed
317
   * 
EnesKarakas's avatar
EnesKarakas committed
318
319
320
   * @return instruction
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
321
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
322

EnesKarakas's avatar
de    
EnesKarakas committed
323
  public String getInstruction() {
EnesKarakas's avatar
EnesKarakas committed
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
    return instruction;
  }

  public void setInstruction(String instruction) {
    this.instruction = instruction;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Alerts alerts = (Alerts) o;
    return Objects.equals(this.headline, alerts.headline) &&
        Objects.equals(this.msgtype, alerts.msgtype) &&
        Objects.equals(this.severity, alerts.severity) &&
        Objects.equals(this.urgency, alerts.urgency) &&
        Objects.equals(this.areas, alerts.areas) &&
        Objects.equals(this.category, alerts.category) &&
        Objects.equals(this.certainty, alerts.certainty) &&
        Objects.equals(this.event, alerts.event) &&
        Objects.equals(this.note, alerts.note) &&
        Objects.equals(this.effective, alerts.effective) &&
        Objects.equals(this.expires, alerts.expires) &&
        Objects.equals(this.desc, alerts.desc) &&
        Objects.equals(this.instruction, alerts.instruction);
  }

  @Override
  public int hashCode() {
EnesKarakas's avatar
de    
EnesKarakas committed
357
358
    return Objects.hash(headline, msgtype, severity, urgency, areas, category, certainty, event, note, effective,
        expires, desc, instruction);
EnesKarakas's avatar
EnesKarakas committed
359
360
361
362
363
364
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Alerts {\n");
EnesKarakas's avatar
de    
EnesKarakas committed
365

EnesKarakas's avatar
EnesKarakas committed
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
    sb.append("    headline: ").append(toIndentedString(headline)).append("\n");
    sb.append("    msgtype: ").append(toIndentedString(msgtype)).append("\n");
    sb.append("    severity: ").append(toIndentedString(severity)).append("\n");
    sb.append("    urgency: ").append(toIndentedString(urgency)).append("\n");
    sb.append("    areas: ").append(toIndentedString(areas)).append("\n");
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
    sb.append("    certainty: ").append(toIndentedString(certainty)).append("\n");
    sb.append("    event: ").append(toIndentedString(event)).append("\n");
    sb.append("    note: ").append(toIndentedString(note)).append("\n");
    sb.append("    effective: ").append(toIndentedString(effective)).append("\n");
    sb.append("    expires: ").append(toIndentedString(expires)).append("\n");
    sb.append("    desc: ").append(toIndentedString(desc)).append("\n");
    sb.append("    instruction: ").append(toIndentedString(instruction)).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    ");
  }
}