Alerts.java 7.99 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
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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
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
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
package io.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
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]")


public class Alerts   {
  @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
   * @return headline
   **/
  @Schema(description = "")
      @NotNull

    public String getHeadline() {
    return headline;
  }

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

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

  /**
   * Get msgtype
   * @return msgtype
   **/
  @Schema(description = "")
  
    public String getMsgtype() {
    return msgtype;
  }

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

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

  /**
   * Get severity
   * @return severity
   **/
  @Schema(description = "")
  
    public String getSeverity() {
    return severity;
  }

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

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

  /**
   * Get urgency
   * @return urgency
   **/
  @Schema(description = "")
  
    public String getUrgency() {
    return urgency;
  }

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

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

  /**
   * Get areas
   * @return areas
   **/
  @Schema(description = "")
  
    public String getAreas() {
    return areas;
  }

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

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

  /**
   * Get category
   * @return category
   **/
  @Schema(description = "")
      @NotNull

    public String getCategory() {
    return category;
  }

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

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

  /**
   * Get certainty
   * @return certainty
   **/
  @Schema(description = "")
  
    public String getCertainty() {
    return certainty;
  }

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

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

  /**
   * Get event
   * @return event
   **/
  @Schema(description = "")
      @NotNull

    public String getEvent() {
    return event;
  }

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

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

  /**
   * Get note
   * @return note
   **/
  @Schema(description = "")
  
    public String getNote() {
    return note;
  }

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

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

  /**
   * Get effective
   * @return effective
   **/
  @Schema(description = "")
      @NotNull

    @Valid
    public OffsetDateTime getEffective() {
    return effective;
  }

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

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

  /**
   * Get expires
   * @return expires
   **/
  @Schema(description = "")
      @NotNull

    @Valid
    public OffsetDateTime getExpires() {
    return expires;
  }

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

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

  /**
   * Get desc
   * @return desc
   **/
  @Schema(description = "")
      @NotNull

    public String getDesc() {
    return desc;
  }

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

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

  /**
   * Get instruction
   * @return instruction
   **/
  @Schema(description = "")
      @NotNull

    public String getInstruction() {
    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() {
    return Objects.hash(headline, msgtype, severity, urgency, areas, category, certainty, event, note, effective, expires, desc, instruction);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Alerts {\n");
    
    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    ");
  }
}