This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_alarm_record.go
1136 lines (972 loc) · 34.6 KB
/
model_alarm_record.go
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
/*
3GPP 5GC NRM
OAS 3.0.1 specification of the 5GC NRM © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 18.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_5GcNrm
import (
"encoding/json"
"time"
)
// checks if the AlarmRecord type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AlarmRecord{}
// AlarmRecord The alarmId is not a property of an alarm record. It is used as key in the map of alarm records instead.
type AlarmRecord struct {
ObjectInstance *string `json:"objectInstance,omitempty"`
NotificationId *int32 `json:"notificationId,omitempty"`
AlarmRaisedTime *time.Time `json:"alarmRaisedTime,omitempty"`
AlarmChangedTime *time.Time `json:"alarmChangedTime,omitempty"`
AlarmClearedTime *time.Time `json:"alarmClearedTime,omitempty"`
AlarmType *AlarmType `json:"alarmType,omitempty"`
ProbableCause *ProbableCause `json:"probableCause,omitempty"`
SpecificProblem *SpecificProblem `json:"specificProblem,omitempty"`
PerceivedSeverity *PerceivedSeverity `json:"perceivedSeverity,omitempty"`
BackedUpStatus *bool `json:"backedUpStatus,omitempty"`
BackUpObject *string `json:"backUpObject,omitempty"`
TrendIndication *TrendIndication `json:"trendIndication,omitempty"`
Thresholdinfo *ThresholdInfo1 `json:"thresholdinfo,omitempty"`
CorrelatedNotifications []CorrelatedNotification `json:"correlatedNotifications,omitempty"`
// The first array item contains the attribute name value pairs with the new values, and the second array item the attribute name value pairs with the optional old values.
StateChangeDefinition []map[string]interface{} `json:"stateChangeDefinition,omitempty"`
// The key of this map is the attribute name, and the value the attribute value.
MonitoredAttributes map[string]interface{} `json:"monitoredAttributes,omitempty"`
ProposedRepairActions *string `json:"proposedRepairActions,omitempty"`
AdditionalText *string `json:"additionalText,omitempty"`
// The key of this map is the attribute name, and the value the attribute value.
AdditionalInformation map[string]interface{} `json:"additionalInformation,omitempty"`
RootCauseIndicator *bool `json:"rootCauseIndicator,omitempty"`
AckTime *time.Time `json:"ackTime,omitempty"`
AckUserId *string `json:"ackUserId,omitempty"`
AckSystemId *string `json:"ackSystemId,omitempty"`
AckState *AckState `json:"ackState,omitempty"`
ClearUserId *string `json:"clearUserId,omitempty"`
ClearSystemId *string `json:"clearSystemId,omitempty"`
ServiceUser *string `json:"serviceUser,omitempty"`
ServiceProvider *string `json:"serviceProvider,omitempty"`
SecurityAlarmDetector *string `json:"securityAlarmDetector,omitempty"`
}
// NewAlarmRecord instantiates a new AlarmRecord object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewAlarmRecord() *AlarmRecord {
this := AlarmRecord{}
return &this
}
// NewAlarmRecordWithDefaults instantiates a new AlarmRecord object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAlarmRecordWithDefaults() *AlarmRecord {
this := AlarmRecord{}
return &this
}
// GetObjectInstance returns the ObjectInstance field value if set, zero value otherwise.
func (o *AlarmRecord) GetObjectInstance() string {
if o == nil || IsNil(o.ObjectInstance) {
var ret string
return ret
}
return *o.ObjectInstance
}
// GetObjectInstanceOk returns a tuple with the ObjectInstance field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetObjectInstanceOk() (*string, bool) {
if o == nil || IsNil(o.ObjectInstance) {
return nil, false
}
return o.ObjectInstance, true
}
// HasObjectInstance returns a boolean if a field has been set.
func (o *AlarmRecord) HasObjectInstance() bool {
if o != nil && !IsNil(o.ObjectInstance) {
return true
}
return false
}
// SetObjectInstance gets a reference to the given string and assigns it to the ObjectInstance field.
func (o *AlarmRecord) SetObjectInstance(v string) {
o.ObjectInstance = &v
}
// GetNotificationId returns the NotificationId field value if set, zero value otherwise.
func (o *AlarmRecord) GetNotificationId() int32 {
if o == nil || IsNil(o.NotificationId) {
var ret int32
return ret
}
return *o.NotificationId
}
// GetNotificationIdOk returns a tuple with the NotificationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetNotificationIdOk() (*int32, bool) {
if o == nil || IsNil(o.NotificationId) {
return nil, false
}
return o.NotificationId, true
}
// HasNotificationId returns a boolean if a field has been set.
func (o *AlarmRecord) HasNotificationId() bool {
if o != nil && !IsNil(o.NotificationId) {
return true
}
return false
}
// SetNotificationId gets a reference to the given int32 and assigns it to the NotificationId field.
func (o *AlarmRecord) SetNotificationId(v int32) {
o.NotificationId = &v
}
// GetAlarmRaisedTime returns the AlarmRaisedTime field value if set, zero value otherwise.
func (o *AlarmRecord) GetAlarmRaisedTime() time.Time {
if o == nil || IsNil(o.AlarmRaisedTime) {
var ret time.Time
return ret
}
return *o.AlarmRaisedTime
}
// GetAlarmRaisedTimeOk returns a tuple with the AlarmRaisedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetAlarmRaisedTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.AlarmRaisedTime) {
return nil, false
}
return o.AlarmRaisedTime, true
}
// HasAlarmRaisedTime returns a boolean if a field has been set.
func (o *AlarmRecord) HasAlarmRaisedTime() bool {
if o != nil && !IsNil(o.AlarmRaisedTime) {
return true
}
return false
}
// SetAlarmRaisedTime gets a reference to the given time.Time and assigns it to the AlarmRaisedTime field.
func (o *AlarmRecord) SetAlarmRaisedTime(v time.Time) {
o.AlarmRaisedTime = &v
}
// GetAlarmChangedTime returns the AlarmChangedTime field value if set, zero value otherwise.
func (o *AlarmRecord) GetAlarmChangedTime() time.Time {
if o == nil || IsNil(o.AlarmChangedTime) {
var ret time.Time
return ret
}
return *o.AlarmChangedTime
}
// GetAlarmChangedTimeOk returns a tuple with the AlarmChangedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetAlarmChangedTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.AlarmChangedTime) {
return nil, false
}
return o.AlarmChangedTime, true
}
// HasAlarmChangedTime returns a boolean if a field has been set.
func (o *AlarmRecord) HasAlarmChangedTime() bool {
if o != nil && !IsNil(o.AlarmChangedTime) {
return true
}
return false
}
// SetAlarmChangedTime gets a reference to the given time.Time and assigns it to the AlarmChangedTime field.
func (o *AlarmRecord) SetAlarmChangedTime(v time.Time) {
o.AlarmChangedTime = &v
}
// GetAlarmClearedTime returns the AlarmClearedTime field value if set, zero value otherwise.
func (o *AlarmRecord) GetAlarmClearedTime() time.Time {
if o == nil || IsNil(o.AlarmClearedTime) {
var ret time.Time
return ret
}
return *o.AlarmClearedTime
}
// GetAlarmClearedTimeOk returns a tuple with the AlarmClearedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetAlarmClearedTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.AlarmClearedTime) {
return nil, false
}
return o.AlarmClearedTime, true
}
// HasAlarmClearedTime returns a boolean if a field has been set.
func (o *AlarmRecord) HasAlarmClearedTime() bool {
if o != nil && !IsNil(o.AlarmClearedTime) {
return true
}
return false
}
// SetAlarmClearedTime gets a reference to the given time.Time and assigns it to the AlarmClearedTime field.
func (o *AlarmRecord) SetAlarmClearedTime(v time.Time) {
o.AlarmClearedTime = &v
}
// GetAlarmType returns the AlarmType field value if set, zero value otherwise.
func (o *AlarmRecord) GetAlarmType() AlarmType {
if o == nil || IsNil(o.AlarmType) {
var ret AlarmType
return ret
}
return *o.AlarmType
}
// GetAlarmTypeOk returns a tuple with the AlarmType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetAlarmTypeOk() (*AlarmType, bool) {
if o == nil || IsNil(o.AlarmType) {
return nil, false
}
return o.AlarmType, true
}
// HasAlarmType returns a boolean if a field has been set.
func (o *AlarmRecord) HasAlarmType() bool {
if o != nil && !IsNil(o.AlarmType) {
return true
}
return false
}
// SetAlarmType gets a reference to the given AlarmType and assigns it to the AlarmType field.
func (o *AlarmRecord) SetAlarmType(v AlarmType) {
o.AlarmType = &v
}
// GetProbableCause returns the ProbableCause field value if set, zero value otherwise.
func (o *AlarmRecord) GetProbableCause() ProbableCause {
if o == nil || IsNil(o.ProbableCause) {
var ret ProbableCause
return ret
}
return *o.ProbableCause
}
// GetProbableCauseOk returns a tuple with the ProbableCause field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetProbableCauseOk() (*ProbableCause, bool) {
if o == nil || IsNil(o.ProbableCause) {
return nil, false
}
return o.ProbableCause, true
}
// HasProbableCause returns a boolean if a field has been set.
func (o *AlarmRecord) HasProbableCause() bool {
if o != nil && !IsNil(o.ProbableCause) {
return true
}
return false
}
// SetProbableCause gets a reference to the given ProbableCause and assigns it to the ProbableCause field.
func (o *AlarmRecord) SetProbableCause(v ProbableCause) {
o.ProbableCause = &v
}
// GetSpecificProblem returns the SpecificProblem field value if set, zero value otherwise.
func (o *AlarmRecord) GetSpecificProblem() SpecificProblem {
if o == nil || IsNil(o.SpecificProblem) {
var ret SpecificProblem
return ret
}
return *o.SpecificProblem
}
// GetSpecificProblemOk returns a tuple with the SpecificProblem field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetSpecificProblemOk() (*SpecificProblem, bool) {
if o == nil || IsNil(o.SpecificProblem) {
return nil, false
}
return o.SpecificProblem, true
}
// HasSpecificProblem returns a boolean if a field has been set.
func (o *AlarmRecord) HasSpecificProblem() bool {
if o != nil && !IsNil(o.SpecificProblem) {
return true
}
return false
}
// SetSpecificProblem gets a reference to the given SpecificProblem and assigns it to the SpecificProblem field.
func (o *AlarmRecord) SetSpecificProblem(v SpecificProblem) {
o.SpecificProblem = &v
}
// GetPerceivedSeverity returns the PerceivedSeverity field value if set, zero value otherwise.
func (o *AlarmRecord) GetPerceivedSeverity() PerceivedSeverity {
if o == nil || IsNil(o.PerceivedSeverity) {
var ret PerceivedSeverity
return ret
}
return *o.PerceivedSeverity
}
// GetPerceivedSeverityOk returns a tuple with the PerceivedSeverity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetPerceivedSeverityOk() (*PerceivedSeverity, bool) {
if o == nil || IsNil(o.PerceivedSeverity) {
return nil, false
}
return o.PerceivedSeverity, true
}
// HasPerceivedSeverity returns a boolean if a field has been set.
func (o *AlarmRecord) HasPerceivedSeverity() bool {
if o != nil && !IsNil(o.PerceivedSeverity) {
return true
}
return false
}
// SetPerceivedSeverity gets a reference to the given PerceivedSeverity and assigns it to the PerceivedSeverity field.
func (o *AlarmRecord) SetPerceivedSeverity(v PerceivedSeverity) {
o.PerceivedSeverity = &v
}
// GetBackedUpStatus returns the BackedUpStatus field value if set, zero value otherwise.
func (o *AlarmRecord) GetBackedUpStatus() bool {
if o == nil || IsNil(o.BackedUpStatus) {
var ret bool
return ret
}
return *o.BackedUpStatus
}
// GetBackedUpStatusOk returns a tuple with the BackedUpStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetBackedUpStatusOk() (*bool, bool) {
if o == nil || IsNil(o.BackedUpStatus) {
return nil, false
}
return o.BackedUpStatus, true
}
// HasBackedUpStatus returns a boolean if a field has been set.
func (o *AlarmRecord) HasBackedUpStatus() bool {
if o != nil && !IsNil(o.BackedUpStatus) {
return true
}
return false
}
// SetBackedUpStatus gets a reference to the given bool and assigns it to the BackedUpStatus field.
func (o *AlarmRecord) SetBackedUpStatus(v bool) {
o.BackedUpStatus = &v
}
// GetBackUpObject returns the BackUpObject field value if set, zero value otherwise.
func (o *AlarmRecord) GetBackUpObject() string {
if o == nil || IsNil(o.BackUpObject) {
var ret string
return ret
}
return *o.BackUpObject
}
// GetBackUpObjectOk returns a tuple with the BackUpObject field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetBackUpObjectOk() (*string, bool) {
if o == nil || IsNil(o.BackUpObject) {
return nil, false
}
return o.BackUpObject, true
}
// HasBackUpObject returns a boolean if a field has been set.
func (o *AlarmRecord) HasBackUpObject() bool {
if o != nil && !IsNil(o.BackUpObject) {
return true
}
return false
}
// SetBackUpObject gets a reference to the given string and assigns it to the BackUpObject field.
func (o *AlarmRecord) SetBackUpObject(v string) {
o.BackUpObject = &v
}
// GetTrendIndication returns the TrendIndication field value if set, zero value otherwise.
func (o *AlarmRecord) GetTrendIndication() TrendIndication {
if o == nil || IsNil(o.TrendIndication) {
var ret TrendIndication
return ret
}
return *o.TrendIndication
}
// GetTrendIndicationOk returns a tuple with the TrendIndication field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetTrendIndicationOk() (*TrendIndication, bool) {
if o == nil || IsNil(o.TrendIndication) {
return nil, false
}
return o.TrendIndication, true
}
// HasTrendIndication returns a boolean if a field has been set.
func (o *AlarmRecord) HasTrendIndication() bool {
if o != nil && !IsNil(o.TrendIndication) {
return true
}
return false
}
// SetTrendIndication gets a reference to the given TrendIndication and assigns it to the TrendIndication field.
func (o *AlarmRecord) SetTrendIndication(v TrendIndication) {
o.TrendIndication = &v
}
// GetThresholdinfo returns the Thresholdinfo field value if set, zero value otherwise.
func (o *AlarmRecord) GetThresholdinfo() ThresholdInfo1 {
if o == nil || IsNil(o.Thresholdinfo) {
var ret ThresholdInfo1
return ret
}
return *o.Thresholdinfo
}
// GetThresholdinfoOk returns a tuple with the Thresholdinfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetThresholdinfoOk() (*ThresholdInfo1, bool) {
if o == nil || IsNil(o.Thresholdinfo) {
return nil, false
}
return o.Thresholdinfo, true
}
// HasThresholdinfo returns a boolean if a field has been set.
func (o *AlarmRecord) HasThresholdinfo() bool {
if o != nil && !IsNil(o.Thresholdinfo) {
return true
}
return false
}
// SetThresholdinfo gets a reference to the given ThresholdInfo1 and assigns it to the Thresholdinfo field.
func (o *AlarmRecord) SetThresholdinfo(v ThresholdInfo1) {
o.Thresholdinfo = &v
}
// GetCorrelatedNotifications returns the CorrelatedNotifications field value if set, zero value otherwise.
func (o *AlarmRecord) GetCorrelatedNotifications() []CorrelatedNotification {
if o == nil || IsNil(o.CorrelatedNotifications) {
var ret []CorrelatedNotification
return ret
}
return o.CorrelatedNotifications
}
// GetCorrelatedNotificationsOk returns a tuple with the CorrelatedNotifications field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetCorrelatedNotificationsOk() ([]CorrelatedNotification, bool) {
if o == nil || IsNil(o.CorrelatedNotifications) {
return nil, false
}
return o.CorrelatedNotifications, true
}
// HasCorrelatedNotifications returns a boolean if a field has been set.
func (o *AlarmRecord) HasCorrelatedNotifications() bool {
if o != nil && !IsNil(o.CorrelatedNotifications) {
return true
}
return false
}
// SetCorrelatedNotifications gets a reference to the given []CorrelatedNotification and assigns it to the CorrelatedNotifications field.
func (o *AlarmRecord) SetCorrelatedNotifications(v []CorrelatedNotification) {
o.CorrelatedNotifications = v
}
// GetStateChangeDefinition returns the StateChangeDefinition field value if set, zero value otherwise.
func (o *AlarmRecord) GetStateChangeDefinition() []map[string]interface{} {
if o == nil || IsNil(o.StateChangeDefinition) {
var ret []map[string]interface{}
return ret
}
return o.StateChangeDefinition
}
// GetStateChangeDefinitionOk returns a tuple with the StateChangeDefinition field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetStateChangeDefinitionOk() ([]map[string]interface{}, bool) {
if o == nil || IsNil(o.StateChangeDefinition) {
return nil, false
}
return o.StateChangeDefinition, true
}
// HasStateChangeDefinition returns a boolean if a field has been set.
func (o *AlarmRecord) HasStateChangeDefinition() bool {
if o != nil && !IsNil(o.StateChangeDefinition) {
return true
}
return false
}
// SetStateChangeDefinition gets a reference to the given []map[string]interface{} and assigns it to the StateChangeDefinition field.
func (o *AlarmRecord) SetStateChangeDefinition(v []map[string]interface{}) {
o.StateChangeDefinition = v
}
// GetMonitoredAttributes returns the MonitoredAttributes field value if set, zero value otherwise.
func (o *AlarmRecord) GetMonitoredAttributes() map[string]interface{} {
if o == nil || IsNil(o.MonitoredAttributes) {
var ret map[string]interface{}
return ret
}
return o.MonitoredAttributes
}
// GetMonitoredAttributesOk returns a tuple with the MonitoredAttributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetMonitoredAttributesOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.MonitoredAttributes) {
return map[string]interface{}{}, false
}
return o.MonitoredAttributes, true
}
// HasMonitoredAttributes returns a boolean if a field has been set.
func (o *AlarmRecord) HasMonitoredAttributes() bool {
if o != nil && !IsNil(o.MonitoredAttributes) {
return true
}
return false
}
// SetMonitoredAttributes gets a reference to the given map[string]interface{} and assigns it to the MonitoredAttributes field.
func (o *AlarmRecord) SetMonitoredAttributes(v map[string]interface{}) {
o.MonitoredAttributes = v
}
// GetProposedRepairActions returns the ProposedRepairActions field value if set, zero value otherwise.
func (o *AlarmRecord) GetProposedRepairActions() string {
if o == nil || IsNil(o.ProposedRepairActions) {
var ret string
return ret
}
return *o.ProposedRepairActions
}
// GetProposedRepairActionsOk returns a tuple with the ProposedRepairActions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetProposedRepairActionsOk() (*string, bool) {
if o == nil || IsNil(o.ProposedRepairActions) {
return nil, false
}
return o.ProposedRepairActions, true
}
// HasProposedRepairActions returns a boolean if a field has been set.
func (o *AlarmRecord) HasProposedRepairActions() bool {
if o != nil && !IsNil(o.ProposedRepairActions) {
return true
}
return false
}
// SetProposedRepairActions gets a reference to the given string and assigns it to the ProposedRepairActions field.
func (o *AlarmRecord) SetProposedRepairActions(v string) {
o.ProposedRepairActions = &v
}
// GetAdditionalText returns the AdditionalText field value if set, zero value otherwise.
func (o *AlarmRecord) GetAdditionalText() string {
if o == nil || IsNil(o.AdditionalText) {
var ret string
return ret
}
return *o.AdditionalText
}
// GetAdditionalTextOk returns a tuple with the AdditionalText field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetAdditionalTextOk() (*string, bool) {
if o == nil || IsNil(o.AdditionalText) {
return nil, false
}
return o.AdditionalText, true
}
// HasAdditionalText returns a boolean if a field has been set.
func (o *AlarmRecord) HasAdditionalText() bool {
if o != nil && !IsNil(o.AdditionalText) {
return true
}
return false
}
// SetAdditionalText gets a reference to the given string and assigns it to the AdditionalText field.
func (o *AlarmRecord) SetAdditionalText(v string) {
o.AdditionalText = &v
}
// GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.
func (o *AlarmRecord) GetAdditionalInformation() map[string]interface{} {
if o == nil || IsNil(o.AdditionalInformation) {
var ret map[string]interface{}
return ret
}
return o.AdditionalInformation
}
// GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetAdditionalInformationOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.AdditionalInformation) {
return map[string]interface{}{}, false
}
return o.AdditionalInformation, true
}
// HasAdditionalInformation returns a boolean if a field has been set.
func (o *AlarmRecord) HasAdditionalInformation() bool {
if o != nil && !IsNil(o.AdditionalInformation) {
return true
}
return false
}
// SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.
func (o *AlarmRecord) SetAdditionalInformation(v map[string]interface{}) {
o.AdditionalInformation = v
}
// GetRootCauseIndicator returns the RootCauseIndicator field value if set, zero value otherwise.
func (o *AlarmRecord) GetRootCauseIndicator() bool {
if o == nil || IsNil(o.RootCauseIndicator) {
var ret bool
return ret
}
return *o.RootCauseIndicator
}
// GetRootCauseIndicatorOk returns a tuple with the RootCauseIndicator field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetRootCauseIndicatorOk() (*bool, bool) {
if o == nil || IsNil(o.RootCauseIndicator) {
return nil, false
}
return o.RootCauseIndicator, true
}
// HasRootCauseIndicator returns a boolean if a field has been set.
func (o *AlarmRecord) HasRootCauseIndicator() bool {
if o != nil && !IsNil(o.RootCauseIndicator) {
return true
}
return false
}
// SetRootCauseIndicator gets a reference to the given bool and assigns it to the RootCauseIndicator field.
func (o *AlarmRecord) SetRootCauseIndicator(v bool) {
o.RootCauseIndicator = &v
}
// GetAckTime returns the AckTime field value if set, zero value otherwise.
func (o *AlarmRecord) GetAckTime() time.Time {
if o == nil || IsNil(o.AckTime) {
var ret time.Time
return ret
}
return *o.AckTime
}
// GetAckTimeOk returns a tuple with the AckTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetAckTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.AckTime) {
return nil, false
}
return o.AckTime, true
}
// HasAckTime returns a boolean if a field has been set.
func (o *AlarmRecord) HasAckTime() bool {
if o != nil && !IsNil(o.AckTime) {
return true
}
return false
}
// SetAckTime gets a reference to the given time.Time and assigns it to the AckTime field.
func (o *AlarmRecord) SetAckTime(v time.Time) {
o.AckTime = &v
}
// GetAckUserId returns the AckUserId field value if set, zero value otherwise.
func (o *AlarmRecord) GetAckUserId() string {
if o == nil || IsNil(o.AckUserId) {
var ret string
return ret
}
return *o.AckUserId
}
// GetAckUserIdOk returns a tuple with the AckUserId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetAckUserIdOk() (*string, bool) {
if o == nil || IsNil(o.AckUserId) {
return nil, false
}
return o.AckUserId, true
}
// HasAckUserId returns a boolean if a field has been set.
func (o *AlarmRecord) HasAckUserId() bool {
if o != nil && !IsNil(o.AckUserId) {
return true
}
return false
}
// SetAckUserId gets a reference to the given string and assigns it to the AckUserId field.
func (o *AlarmRecord) SetAckUserId(v string) {
o.AckUserId = &v
}
// GetAckSystemId returns the AckSystemId field value if set, zero value otherwise.
func (o *AlarmRecord) GetAckSystemId() string {
if o == nil || IsNil(o.AckSystemId) {
var ret string
return ret
}
return *o.AckSystemId
}
// GetAckSystemIdOk returns a tuple with the AckSystemId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetAckSystemIdOk() (*string, bool) {
if o == nil || IsNil(o.AckSystemId) {
return nil, false
}
return o.AckSystemId, true
}
// HasAckSystemId returns a boolean if a field has been set.
func (o *AlarmRecord) HasAckSystemId() bool {
if o != nil && !IsNil(o.AckSystemId) {
return true
}
return false
}
// SetAckSystemId gets a reference to the given string and assigns it to the AckSystemId field.
func (o *AlarmRecord) SetAckSystemId(v string) {
o.AckSystemId = &v
}
// GetAckState returns the AckState field value if set, zero value otherwise.
func (o *AlarmRecord) GetAckState() AckState {
if o == nil || IsNil(o.AckState) {
var ret AckState
return ret
}
return *o.AckState
}
// GetAckStateOk returns a tuple with the AckState field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetAckStateOk() (*AckState, bool) {
if o == nil || IsNil(o.AckState) {
return nil, false
}
return o.AckState, true
}
// HasAckState returns a boolean if a field has been set.
func (o *AlarmRecord) HasAckState() bool {
if o != nil && !IsNil(o.AckState) {
return true
}
return false
}
// SetAckState gets a reference to the given AckState and assigns it to the AckState field.
func (o *AlarmRecord) SetAckState(v AckState) {
o.AckState = &v
}
// GetClearUserId returns the ClearUserId field value if set, zero value otherwise.
func (o *AlarmRecord) GetClearUserId() string {
if o == nil || IsNil(o.ClearUserId) {
var ret string
return ret
}
return *o.ClearUserId
}
// GetClearUserIdOk returns a tuple with the ClearUserId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetClearUserIdOk() (*string, bool) {
if o == nil || IsNil(o.ClearUserId) {
return nil, false
}
return o.ClearUserId, true
}
// HasClearUserId returns a boolean if a field has been set.
func (o *AlarmRecord) HasClearUserId() bool {
if o != nil && !IsNil(o.ClearUserId) {
return true
}
return false
}
// SetClearUserId gets a reference to the given string and assigns it to the ClearUserId field.
func (o *AlarmRecord) SetClearUserId(v string) {
o.ClearUserId = &v
}
// GetClearSystemId returns the ClearSystemId field value if set, zero value otherwise.
func (o *AlarmRecord) GetClearSystemId() string {
if o == nil || IsNil(o.ClearSystemId) {
var ret string
return ret
}
return *o.ClearSystemId
}
// GetClearSystemIdOk returns a tuple with the ClearSystemId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetClearSystemIdOk() (*string, bool) {
if o == nil || IsNil(o.ClearSystemId) {
return nil, false
}
return o.ClearSystemId, true
}
// HasClearSystemId returns a boolean if a field has been set.
func (o *AlarmRecord) HasClearSystemId() bool {
if o != nil && !IsNil(o.ClearSystemId) {
return true
}
return false
}
// SetClearSystemId gets a reference to the given string and assigns it to the ClearSystemId field.
func (o *AlarmRecord) SetClearSystemId(v string) {
o.ClearSystemId = &v
}
// GetServiceUser returns the ServiceUser field value if set, zero value otherwise.
func (o *AlarmRecord) GetServiceUser() string {
if o == nil || IsNil(o.ServiceUser) {
var ret string
return ret
}
return *o.ServiceUser
}
// GetServiceUserOk returns a tuple with the ServiceUser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetServiceUserOk() (*string, bool) {
if o == nil || IsNil(o.ServiceUser) {
return nil, false
}
return o.ServiceUser, true
}
// HasServiceUser returns a boolean if a field has been set.
func (o *AlarmRecord) HasServiceUser() bool {
if o != nil && !IsNil(o.ServiceUser) {
return true
}
return false
}
// SetServiceUser gets a reference to the given string and assigns it to the ServiceUser field.
func (o *AlarmRecord) SetServiceUser(v string) {
o.ServiceUser = &v
}
// GetServiceProvider returns the ServiceProvider field value if set, zero value otherwise.
func (o *AlarmRecord) GetServiceProvider() string {
if o == nil || IsNil(o.ServiceProvider) {
var ret string
return ret
}
return *o.ServiceProvider
}
// GetServiceProviderOk returns a tuple with the ServiceProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetServiceProviderOk() (*string, bool) {
if o == nil || IsNil(o.ServiceProvider) {
return nil, false
}
return o.ServiceProvider, true
}
// HasServiceProvider returns a boolean if a field has been set.
func (o *AlarmRecord) HasServiceProvider() bool {
if o != nil && !IsNil(o.ServiceProvider) {
return true
}
return false
}
// SetServiceProvider gets a reference to the given string and assigns it to the ServiceProvider field.
func (o *AlarmRecord) SetServiceProvider(v string) {
o.ServiceProvider = &v
}
// GetSecurityAlarmDetector returns the SecurityAlarmDetector field value if set, zero value otherwise.
func (o *AlarmRecord) GetSecurityAlarmDetector() string {
if o == nil || IsNil(o.SecurityAlarmDetector) {
var ret string
return ret
}
return *o.SecurityAlarmDetector
}
// GetSecurityAlarmDetectorOk returns a tuple with the SecurityAlarmDetector field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlarmRecord) GetSecurityAlarmDetectorOk() (*string, bool) {
if o == nil || IsNil(o.SecurityAlarmDetector) {
return nil, false
}
return o.SecurityAlarmDetector, true
}
// HasSecurityAlarmDetector returns a boolean if a field has been set.
func (o *AlarmRecord) HasSecurityAlarmDetector() bool {
if o != nil && !IsNil(o.SecurityAlarmDetector) {
return true
}
return false
}
// SetSecurityAlarmDetector gets a reference to the given string and assigns it to the SecurityAlarmDetector field.
func (o *AlarmRecord) SetSecurityAlarmDetector(v string) {
o.SecurityAlarmDetector = &v
}