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

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

EnesKarakas's avatar
EnesKarakas committed
8
9
10
11
12
13
14
15
16
17
18
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
19
@JsonInclude(Include.NON_NULL)
EnesKarakas's avatar
EnesKarakas committed
20

EnesKarakas's avatar
de    
EnesKarakas committed
21
public class Alerts {
EnesKarakas's avatar
EnesKarakas committed
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
  @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
68
   * 
EnesKarakas's avatar
EnesKarakas committed
69
70
71
   * @return headline
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
72
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
73

EnesKarakas's avatar
de    
EnesKarakas committed
74
  public String getHeadline() {
EnesKarakas's avatar
EnesKarakas committed
75
76
77
78
79
80
81
82
83
84
85
86
87
88
    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
89
   * 
EnesKarakas's avatar
EnesKarakas committed
90
91
92
   * @return msgtype
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
93
94

  public String getMsgtype() {
EnesKarakas's avatar
EnesKarakas committed
95
96
97
98
99
100
101
102
103
104
105
106
107
108
    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
109
   * 
EnesKarakas's avatar
EnesKarakas committed
110
111
112
   * @return severity
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
113
114

  public String getSeverity() {
EnesKarakas's avatar
EnesKarakas committed
115
116
117
118
119
120
121
122
123
124
125
126
127
128
    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
129
   * 
EnesKarakas's avatar
EnesKarakas committed
130
131
132
   * @return urgency
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
133
134

  public String getUrgency() {
EnesKarakas's avatar
EnesKarakas committed
135
136
137
138
139
140
141
142
143
144
145
146
147
148
    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
149
   * 
EnesKarakas's avatar
EnesKarakas committed
150
151
152
   * @return areas
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
153
154

  public String getAreas() {
EnesKarakas's avatar
EnesKarakas committed
155
156
157
158
159
160
161
162
163
164
165
166
167
168
    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
169
   * 
EnesKarakas's avatar
EnesKarakas committed
170
171
172
   * @return category
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
173
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
174

EnesKarakas's avatar
de    
EnesKarakas committed
175
  public String getCategory() {
EnesKarakas's avatar
EnesKarakas committed
176
177
178
179
180
181
182
183
184
185
186
187
188
189
    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
190
   * 
EnesKarakas's avatar
EnesKarakas committed
191
192
193
   * @return certainty
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
194
195

  public String getCertainty() {
EnesKarakas's avatar
EnesKarakas committed
196
197
198
199
200
201
202
203
204
205
206
207
208
209
    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
210
   * 
EnesKarakas's avatar
EnesKarakas committed
211
212
213
   * @return event
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
214
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
215

EnesKarakas's avatar
de    
EnesKarakas committed
216
  public String getEvent() {
EnesKarakas's avatar
EnesKarakas committed
217
218
219
220
221
222
223
224
225
226
227
228
229
230
    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
231
   * 
EnesKarakas's avatar
EnesKarakas committed
232
233
234
   * @return note
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
235
236

  public String getNote() {
EnesKarakas's avatar
EnesKarakas committed
237
238
239
240
241
242
243
244
245
246
247
248
249
250
    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
251
   * 
EnesKarakas's avatar
EnesKarakas committed
252
253
254
   * @return effective
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
255
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
256

EnesKarakas's avatar
de    
EnesKarakas committed
257
258
  @Valid
  public OffsetDateTime getEffective() {
EnesKarakas's avatar
EnesKarakas committed
259
260
261
262
263
264
265
266
267
268
269
270
271
272
    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
273
   * 
EnesKarakas's avatar
EnesKarakas committed
274
275
276
   * @return expires
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
277
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
278

EnesKarakas's avatar
de    
EnesKarakas committed
279
280
  @Valid
  public OffsetDateTime getExpires() {
EnesKarakas's avatar
EnesKarakas committed
281
282
283
284
285
286
287
288
289
290
291
292
293
294
    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
295
   * 
EnesKarakas's avatar
EnesKarakas committed
296
297
298
   * @return desc
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
299
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
300

EnesKarakas's avatar
de    
EnesKarakas committed
301
  public String getDesc() {
EnesKarakas's avatar
EnesKarakas committed
302
303
304
305
306
307
308
309
310
311
312
313
314
315
    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
316
   * 
EnesKarakas's avatar
EnesKarakas committed
317
318
319
   * @return instruction
   **/
  @Schema(description = "")
EnesKarakas's avatar
de    
EnesKarakas committed
320
  @NotNull
EnesKarakas's avatar
EnesKarakas committed
321

EnesKarakas's avatar
de    
EnesKarakas committed
322
  public String getInstruction() {
EnesKarakas's avatar
EnesKarakas committed
323
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
    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
356
357
    return Objects.hash(headline, msgtype, severity, urgency, areas, category, certainty, event, note, effective,
        expires, desc, instruction);
EnesKarakas's avatar
EnesKarakas committed
358
359
360
361
362
363
  }

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

EnesKarakas's avatar
EnesKarakas committed
365
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
    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    ");
  }
}