-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActionItemTriggerParams.java
More file actions
3196 lines (2566 loc) · 123 KB
/
Copy pathActionItemTriggerParams.java
File metadata and controls
3196 lines (2566 loc) · 123 KB
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
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Rootly API v1
* # How to generate an API Key? - **Organization dropdown** > **Organization Settings** > **API Keys** # JSON:API Specification Rootly is using **JSON:API** (https://jsonapi.org) specification: - JSON:API is a specification for how a client should request that resources be fetched or modified, and how a server should respond to those requests. - JSON:API is designed to minimize both the number of requests and the amount of data transmitted between clients and servers. This efficiency is achieved without compromising readability, flexibility, or discoverability. - JSON:API requires use of the JSON:API media type (**application/vnd.api+json**) for exchanging data. # Authentication and Requests We use standard HTTP Authentication over HTTPS to authorize your requests. ``` curl --request GET \\ --header 'Content-Type: application/vnd.api+json' \\ --header 'Authorization: Bearer YOUR-TOKEN' \\ --url https://api.rootly.com/v1/incidents ``` <br/> # Rate limiting - There is a default limit of **5** **GET**, **HEAD**, and **OPTIONS** calls **per API key** every **60 seconds** (0 hours). The limit is calculated over a **0-hour sliding window** looking back from the current time. While the limit can be configured to support higher thresholds, you must first contact your **Rootly Customer Success Manager** to make any adjustments. - There is a default limit of **3** **POST**, **PUT**, **PATCH** or **DELETE** calls **per API key** every **60 seconds** (0 hours). The limit is calculated over a **0-hour sliding window** looking back from the current time. While the limit can be configured to support higher thresholds, you must first contact your **Rootly Customer Success Manager** to make any adjustments. - When rate limits are exceeded, the API will return a **429 Too Many Requests** HTTP status code with the response: `{\"error\": \"Rate limit exceeded. Try again later.\"}` - **X-RateLimit headers** are included in every API response, providing real-time rate limit information: - **X-RateLimit-Limit** - The maximum number of requests permitted and the time window (e.g., \"1000, 1000;window=3600\" for 1000 requests per hour) - **X-RateLimit-Remaining** - The number of requests remaining in the current rate limit window - **X-RateLimit-Used** - The number of requests already made in the current window - **X-RateLimit-Reset** - The time at which the current rate limit window resets, in UTC epoch seconds # Pagination - Pagination is supported for all endpoints that return a collection of items. - Pagination is controlled by the **page** query parameter ## Example ``` curl --request GET \\ --header 'Content-Type: application/vnd.api+json' \\ --header 'Authorization: Bearer YOUR-TOKEN' \\ --url https://api.rootly.com/v1/incidents?page[number]=1&page[size]=10 ```
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.rootly.client.model;
import java.util.Objects;
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 java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.jackson.nullable.JsonNullable;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.TypeAdapterFactory;
import com.google.gson.reflect.TypeToken;
import com.google.gson.TypeAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.rootly.client.JSON;
/**
* ActionItemTriggerParams
*/
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-20T18:42:42.907690594Z[Etc/UTC]", comments = "Generator version: 7.13.0")
public class ActionItemTriggerParams {
/**
* Gets or Sets triggerType
*/
@JsonAdapter(TriggerTypeEnum.Adapter.class)
public enum TriggerTypeEnum {
ACTION_ITEM("action_item");
private String value;
TriggerTypeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static TriggerTypeEnum fromValue(String value) {
for (TriggerTypeEnum b : TriggerTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<TriggerTypeEnum> {
@Override
public void write(final JsonWriter jsonWriter, final TriggerTypeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public TriggerTypeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return TriggerTypeEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
TriggerTypeEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_TRIGGER_TYPE = "trigger_type";
@SerializedName(SERIALIZED_NAME_TRIGGER_TYPE)
@jakarta.annotation.Nonnull
private TriggerTypeEnum triggerType;
public static final String SERIALIZED_NAME_TRIGGERS = "triggers";
@SerializedName(SERIALIZED_NAME_TRIGGERS)
@jakarta.annotation.Nullable
private List<String> triggers = new ArrayList<>();
public static final String SERIALIZED_NAME_INCIDENT_VISIBILITIES = "incident_visibilities";
@SerializedName(SERIALIZED_NAME_INCIDENT_VISIBILITIES)
@jakarta.annotation.Nullable
private List<Boolean> incidentVisibilities = new ArrayList<>();
/**
* Gets or Sets incidentKinds
*/
@JsonAdapter(IncidentKindsEnum.Adapter.class)
public enum IncidentKindsEnum {
TEST("test"),
TEST_SUB("test_sub"),
EXAMPLE("example"),
EXAMPLE_SUB("example_sub"),
NORMAL("normal"),
NORMAL_SUB("normal_sub"),
BACKFILLED("backfilled"),
SCHEDULED("scheduled"),
SCHEDULED_SUB("scheduled_sub");
private String value;
IncidentKindsEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentKindsEnum fromValue(String value) {
for (IncidentKindsEnum b : IncidentKindsEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentKindsEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentKindsEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentKindsEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentKindsEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentKindsEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_KINDS = "incident_kinds";
@SerializedName(SERIALIZED_NAME_INCIDENT_KINDS)
@jakarta.annotation.Nullable
private List<IncidentKindsEnum> incidentKinds = new ArrayList<>();
/**
* Gets or Sets incidentStatuses
*/
@JsonAdapter(IncidentStatusesEnum.Adapter.class)
public enum IncidentStatusesEnum {
IN_TRIAGE("in_triage"),
STARTED("started"),
DETECTED("detected"),
ACKNOWLEDGED("acknowledged"),
MITIGATED("mitigated"),
RESOLVED("resolved"),
CLOSED("closed"),
CANCELLED("cancelled"),
SCHEDULED("scheduled"),
IN_PROGRESS("in_progress"),
COMPLETED("completed");
private String value;
IncidentStatusesEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentStatusesEnum fromValue(String value) {
for (IncidentStatusesEnum b : IncidentStatusesEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentStatusesEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentStatusesEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentStatusesEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentStatusesEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentStatusesEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_STATUSES = "incident_statuses";
@SerializedName(SERIALIZED_NAME_INCIDENT_STATUSES)
@jakarta.annotation.Nullable
private List<IncidentStatusesEnum> incidentStatuses = new ArrayList<>();
public static final String SERIALIZED_NAME_INCIDENT_INACTIVITY_DURATION = "incident_inactivity_duration";
@SerializedName(SERIALIZED_NAME_INCIDENT_INACTIVITY_DURATION)
@jakarta.annotation.Nullable
private String incidentInactivityDuration;
/**
* Gets or Sets incidentCondition
*/
@JsonAdapter(IncidentConditionEnum.Adapter.class)
public enum IncidentConditionEnum {
ALL("ALL"),
ANY("ANY"),
NONE("NONE");
private String value;
IncidentConditionEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentConditionEnum fromValue(String value) {
for (IncidentConditionEnum b : IncidentConditionEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentConditionEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentConditionEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentConditionEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentConditionEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentConditionEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_CONDITION = "incident_condition";
@SerializedName(SERIALIZED_NAME_INCIDENT_CONDITION)
@jakarta.annotation.Nullable
private IncidentConditionEnum incidentCondition = IncidentConditionEnum.ALL;
/**
* Gets or Sets incidentConditionVisibility
*/
@JsonAdapter(IncidentConditionVisibilityEnum.Adapter.class)
public enum IncidentConditionVisibilityEnum {
IS("IS"),
IS_NOT("IS NOT"),
ANY("ANY"),
CONTAINS("CONTAINS"),
CONTAINS_ALL("CONTAINS_ALL"),
CONTAINS_NONE("CONTAINS_NONE"),
NONE("NONE"),
SET("SET"),
UNSET("UNSET");
private String value;
IncidentConditionVisibilityEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentConditionVisibilityEnum fromValue(String value) {
for (IncidentConditionVisibilityEnum b : IncidentConditionVisibilityEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentConditionVisibilityEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentConditionVisibilityEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentConditionVisibilityEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentConditionVisibilityEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentConditionVisibilityEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_CONDITION_VISIBILITY = "incident_condition_visibility";
@SerializedName(SERIALIZED_NAME_INCIDENT_CONDITION_VISIBILITY)
@jakarta.annotation.Nullable
private IncidentConditionVisibilityEnum incidentConditionVisibility = IncidentConditionVisibilityEnum.ANY;
/**
* Gets or Sets incidentConditionKind
*/
@JsonAdapter(IncidentConditionKindEnum.Adapter.class)
public enum IncidentConditionKindEnum {
IS("IS"),
IS_NOT("IS NOT"),
ANY("ANY"),
CONTAINS("CONTAINS"),
CONTAINS_ALL("CONTAINS_ALL"),
CONTAINS_NONE("CONTAINS_NONE"),
NONE("NONE"),
SET("SET"),
UNSET("UNSET");
private String value;
IncidentConditionKindEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentConditionKindEnum fromValue(String value) {
for (IncidentConditionKindEnum b : IncidentConditionKindEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentConditionKindEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentConditionKindEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentConditionKindEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentConditionKindEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentConditionKindEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_CONDITION_KIND = "incident_condition_kind";
@SerializedName(SERIALIZED_NAME_INCIDENT_CONDITION_KIND)
@jakarta.annotation.Nullable
private IncidentConditionKindEnum incidentConditionKind = IncidentConditionKindEnum.IS;
/**
* Gets or Sets incidentConditionStatus
*/
@JsonAdapter(IncidentConditionStatusEnum.Adapter.class)
public enum IncidentConditionStatusEnum {
IS("IS"),
IS_NOT("IS NOT"),
ANY("ANY"),
CONTAINS("CONTAINS"),
CONTAINS_ALL("CONTAINS_ALL"),
CONTAINS_NONE("CONTAINS_NONE"),
NONE("NONE"),
SET("SET"),
UNSET("UNSET");
private String value;
IncidentConditionStatusEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentConditionStatusEnum fromValue(String value) {
for (IncidentConditionStatusEnum b : IncidentConditionStatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentConditionStatusEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentConditionStatusEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentConditionStatusEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentConditionStatusEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentConditionStatusEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_CONDITION_STATUS = "incident_condition_status";
@SerializedName(SERIALIZED_NAME_INCIDENT_CONDITION_STATUS)
@jakarta.annotation.Nullable
private IncidentConditionStatusEnum incidentConditionStatus = IncidentConditionStatusEnum.ANY;
/**
* Gets or Sets incidentConditionSubStatus
*/
@JsonAdapter(IncidentConditionSubStatusEnum.Adapter.class)
public enum IncidentConditionSubStatusEnum {
IS("IS"),
IS_NOT("IS NOT"),
ANY("ANY"),
CONTAINS("CONTAINS"),
CONTAINS_ALL("CONTAINS_ALL"),
CONTAINS_NONE("CONTAINS_NONE"),
NONE("NONE"),
SET("SET"),
UNSET("UNSET");
private String value;
IncidentConditionSubStatusEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentConditionSubStatusEnum fromValue(String value) {
for (IncidentConditionSubStatusEnum b : IncidentConditionSubStatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentConditionSubStatusEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentConditionSubStatusEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentConditionSubStatusEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentConditionSubStatusEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentConditionSubStatusEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_CONDITION_SUB_STATUS = "incident_condition_sub_status";
@SerializedName(SERIALIZED_NAME_INCIDENT_CONDITION_SUB_STATUS)
@jakarta.annotation.Nullable
private IncidentConditionSubStatusEnum incidentConditionSubStatus = IncidentConditionSubStatusEnum.ANY;
/**
* Gets or Sets incidentConditionEnvironment
*/
@JsonAdapter(IncidentConditionEnvironmentEnum.Adapter.class)
public enum IncidentConditionEnvironmentEnum {
IS("IS"),
IS_NOT("IS NOT"),
ANY("ANY"),
CONTAINS("CONTAINS"),
CONTAINS_ALL("CONTAINS_ALL"),
CONTAINS_NONE("CONTAINS_NONE"),
NONE("NONE"),
SET("SET"),
UNSET("UNSET");
private String value;
IncidentConditionEnvironmentEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentConditionEnvironmentEnum fromValue(String value) {
for (IncidentConditionEnvironmentEnum b : IncidentConditionEnvironmentEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentConditionEnvironmentEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentConditionEnvironmentEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentConditionEnvironmentEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentConditionEnvironmentEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentConditionEnvironmentEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_CONDITION_ENVIRONMENT = "incident_condition_environment";
@SerializedName(SERIALIZED_NAME_INCIDENT_CONDITION_ENVIRONMENT)
@jakarta.annotation.Nullable
private IncidentConditionEnvironmentEnum incidentConditionEnvironment = IncidentConditionEnvironmentEnum.ANY;
/**
* Gets or Sets incidentConditionSeverity
*/
@JsonAdapter(IncidentConditionSeverityEnum.Adapter.class)
public enum IncidentConditionSeverityEnum {
IS("IS"),
IS_NOT("IS NOT"),
ANY("ANY"),
CONTAINS("CONTAINS"),
CONTAINS_ALL("CONTAINS_ALL"),
CONTAINS_NONE("CONTAINS_NONE"),
NONE("NONE"),
SET("SET"),
UNSET("UNSET");
private String value;
IncidentConditionSeverityEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentConditionSeverityEnum fromValue(String value) {
for (IncidentConditionSeverityEnum b : IncidentConditionSeverityEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentConditionSeverityEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentConditionSeverityEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentConditionSeverityEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentConditionSeverityEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentConditionSeverityEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_CONDITION_SEVERITY = "incident_condition_severity";
@SerializedName(SERIALIZED_NAME_INCIDENT_CONDITION_SEVERITY)
@jakarta.annotation.Nullable
private IncidentConditionSeverityEnum incidentConditionSeverity = IncidentConditionSeverityEnum.ANY;
/**
* Gets or Sets incidentConditionIncidentType
*/
@JsonAdapter(IncidentConditionIncidentTypeEnum.Adapter.class)
public enum IncidentConditionIncidentTypeEnum {
IS("IS"),
IS_NOT("IS NOT"),
ANY("ANY"),
CONTAINS("CONTAINS"),
CONTAINS_ALL("CONTAINS_ALL"),
CONTAINS_NONE("CONTAINS_NONE"),
NONE("NONE"),
SET("SET"),
UNSET("UNSET");
private String value;
IncidentConditionIncidentTypeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentConditionIncidentTypeEnum fromValue(String value) {
for (IncidentConditionIncidentTypeEnum b : IncidentConditionIncidentTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentConditionIncidentTypeEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentConditionIncidentTypeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentConditionIncidentTypeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentConditionIncidentTypeEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentConditionIncidentTypeEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_CONDITION_INCIDENT_TYPE = "incident_condition_incident_type";
@SerializedName(SERIALIZED_NAME_INCIDENT_CONDITION_INCIDENT_TYPE)
@jakarta.annotation.Nullable
private IncidentConditionIncidentTypeEnum incidentConditionIncidentType = IncidentConditionIncidentTypeEnum.ANY;
/**
* Gets or Sets incidentConditionIncidentRoles
*/
@JsonAdapter(IncidentConditionIncidentRolesEnum.Adapter.class)
public enum IncidentConditionIncidentRolesEnum {
IS("IS"),
IS_NOT("IS NOT"),
ANY("ANY"),
CONTAINS("CONTAINS"),
CONTAINS_ALL("CONTAINS_ALL"),
CONTAINS_NONE("CONTAINS_NONE"),
NONE("NONE"),
SET("SET"),
UNSET("UNSET");
private String value;
IncidentConditionIncidentRolesEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentConditionIncidentRolesEnum fromValue(String value) {
for (IncidentConditionIncidentRolesEnum b : IncidentConditionIncidentRolesEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentConditionIncidentRolesEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentConditionIncidentRolesEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentConditionIncidentRolesEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentConditionIncidentRolesEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentConditionIncidentRolesEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_CONDITION_INCIDENT_ROLES = "incident_condition_incident_roles";
@SerializedName(SERIALIZED_NAME_INCIDENT_CONDITION_INCIDENT_ROLES)
@jakarta.annotation.Nullable
private IncidentConditionIncidentRolesEnum incidentConditionIncidentRoles = IncidentConditionIncidentRolesEnum.ANY;
/**
* Gets or Sets incidentConditionService
*/
@JsonAdapter(IncidentConditionServiceEnum.Adapter.class)
public enum IncidentConditionServiceEnum {
IS("IS"),
IS_NOT("IS NOT"),
ANY("ANY"),
CONTAINS("CONTAINS"),
CONTAINS_ALL("CONTAINS_ALL"),
CONTAINS_NONE("CONTAINS_NONE"),
NONE("NONE"),
SET("SET"),
UNSET("UNSET");
private String value;
IncidentConditionServiceEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static IncidentConditionServiceEnum fromValue(String value) {
for (IncidentConditionServiceEnum b : IncidentConditionServiceEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter<IncidentConditionServiceEnum> {
@Override
public void write(final JsonWriter jsonWriter, final IncidentConditionServiceEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public IncidentConditionServiceEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return IncidentConditionServiceEnum.fromValue(value);
}
}
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
String value = jsonElement.getAsString();
IncidentConditionServiceEnum.fromValue(value);
}
}
public static final String SERIALIZED_NAME_INCIDENT_CONDITION_SERVICE = "incident_condition_service";
@SerializedName(SERIALIZED_NAME_INCIDENT_CONDITION_SERVICE)
@jakarta.annotation.Nullable
private IncidentConditionServiceEnum incidentConditionService = IncidentConditionServiceEnum.ANY;
/**
* Gets or Sets incidentConditionFunctionality
*/
@JsonAdapter(IncidentConditionFunctionalityEnum.Adapter.class)
public enum IncidentConditionFunctionalityEnum {
IS("IS"),
IS_NOT("IS NOT"),
ANY("ANY"),
CONTAINS("CONTAINS"),
CONTAINS_ALL("CONTAINS_ALL"),
CONTAINS_NONE("CONTAINS_NONE"),
NONE("NONE"),
SET("SET"),
UNSET("UNSET");
private String value;
IncidentConditionFunctionalityEnum(String value) {
this.value = value;
}
public String getValue() {
return value;