-
Notifications
You must be signed in to change notification settings - Fork 52
/
model_incident_response_attributes.go
790 lines (676 loc) · 25.6 KB
/
model_incident_response_attributes.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
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2019-Present Datadog, Inc.
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package datadog
import (
"encoding/json"
"time"
)
// IncidentResponseAttributes The incident's attributes from a response.
type IncidentResponseAttributes struct {
// Timestamp when the incident was created.
Created *time.Time `json:"created,omitempty"`
// Length of the incident's customer impact in seconds. Equals the difference between `customer_impact_start` and `customer_impact_end`.
CustomerImpactDuration *int64 `json:"customer_impact_duration,omitempty"`
// Timestamp when customers were no longer impacted by the incident.
CustomerImpactEnd NullableTime `json:"customer_impact_end,omitempty"`
// A summary of the impact customers experienced during the incident.
CustomerImpactScope NullableString `json:"customer_impact_scope,omitempty"`
// Timestamp when customers began being impacted by the incident.
CustomerImpactStart NullableTime `json:"customer_impact_start,omitempty"`
// A flag indicating whether the incident caused customer impact.
CustomerImpacted *bool `json:"customer_impacted,omitempty"`
// Timestamp when the incident was detected.
Detected NullableTime `json:"detected,omitempty"`
// A condensed view of the user-defined fields attached to incidents.
Fields *map[string]IncidentFieldAttributes `json:"fields,omitempty"`
// Timestamp when the incident was last modified.
Modified *time.Time `json:"modified,omitempty"`
// Notification handles that will be notified of the incident during update.
NotificationHandles *[]string `json:"notification_handles,omitempty"`
// The UUID of the postmortem object attached to the incident.
PostmortemId *string `json:"postmortem_id,omitempty"`
// The monotonically increasing integer ID for the incident.
PublicId *int64 `json:"public_id,omitempty"`
// Timestamp when the incident's state was set to resolved.
Resolved NullableTime `json:"resolved,omitempty"`
// The amount of time in seconds to detect the incident. Equals the difference between `customer_impact_start` and `detected`.
TimeToDetect *int64 `json:"time_to_detect,omitempty"`
// The amount of time in seconds to call incident after detection. Equals the difference of `detected` and `created`.
TimeToInternalResponse *int64 `json:"time_to_internal_response,omitempty"`
// The amount of time in seconds to resolve customer impact after detecting the issue. Equals the difference between `customer_impact_end` and `detected`.
TimeToRepair *int64 `json:"time_to_repair,omitempty"`
// The amount of time in seconds to resolve the incident after it was created. Equals the difference between `created` and `resolved`.
TimeToResolve *int64 `json:"time_to_resolve,omitempty"`
// The title of the incident, which summarizes what happened.
Title string `json:"title"`
}
// NewIncidentResponseAttributes instantiates a new IncidentResponseAttributes 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 NewIncidentResponseAttributes(title string) *IncidentResponseAttributes {
this := IncidentResponseAttributes{}
this.Title = title
return &this
}
// NewIncidentResponseAttributesWithDefaults instantiates a new IncidentResponseAttributes 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 NewIncidentResponseAttributesWithDefaults() *IncidentResponseAttributes {
this := IncidentResponseAttributes{}
return &this
}
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetCreated() time.Time {
if o == nil || o.Created == nil {
var ret time.Time
return ret
}
return *o.Created
}
// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetCreatedOk() (*time.Time, bool) {
if o == nil || o.Created == nil {
return nil, false
}
return o.Created, true
}
// HasCreated returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCreated() bool {
if o != nil && o.Created != nil {
return true
}
return false
}
// SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *IncidentResponseAttributes) SetCreated(v time.Time) {
o.Created = &v
}
// GetCustomerImpactDuration returns the CustomerImpactDuration field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetCustomerImpactDuration() int64 {
if o == nil || o.CustomerImpactDuration == nil {
var ret int64
return ret
}
return *o.CustomerImpactDuration
}
// GetCustomerImpactDurationOk returns a tuple with the CustomerImpactDuration field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetCustomerImpactDurationOk() (*int64, bool) {
if o == nil || o.CustomerImpactDuration == nil {
return nil, false
}
return o.CustomerImpactDuration, true
}
// HasCustomerImpactDuration returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactDuration() bool {
if o != nil && o.CustomerImpactDuration != nil {
return true
}
return false
}
// SetCustomerImpactDuration gets a reference to the given int64 and assigns it to the CustomerImpactDuration field.
func (o *IncidentResponseAttributes) SetCustomerImpactDuration(v int64) {
o.CustomerImpactDuration = &v
}
// GetCustomerImpactEnd returns the CustomerImpactEnd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetCustomerImpactEnd() time.Time {
if o == nil || o.CustomerImpactEnd.Get() == nil {
var ret time.Time
return ret
}
return *o.CustomerImpactEnd.Get()
}
// GetCustomerImpactEndOk returns a tuple with the CustomerImpactEnd field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *IncidentResponseAttributes) GetCustomerImpactEndOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.CustomerImpactEnd.Get(), o.CustomerImpactEnd.IsSet()
}
// HasCustomerImpactEnd returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactEnd() bool {
if o != nil && o.CustomerImpactEnd.IsSet() {
return true
}
return false
}
// SetCustomerImpactEnd gets a reference to the given NullableTime and assigns it to the CustomerImpactEnd field.
func (o *IncidentResponseAttributes) SetCustomerImpactEnd(v time.Time) {
o.CustomerImpactEnd.Set(&v)
}
// SetCustomerImpactEndNil sets the value for CustomerImpactEnd to be an explicit nil
func (o *IncidentResponseAttributes) SetCustomerImpactEndNil() {
o.CustomerImpactEnd.Set(nil)
}
// UnsetCustomerImpactEnd ensures that no value is present for CustomerImpactEnd, not even an explicit nil
func (o *IncidentResponseAttributes) UnsetCustomerImpactEnd() {
o.CustomerImpactEnd.Unset()
}
// GetCustomerImpactScope returns the CustomerImpactScope field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetCustomerImpactScope() string {
if o == nil || o.CustomerImpactScope.Get() == nil {
var ret string
return ret
}
return *o.CustomerImpactScope.Get()
}
// GetCustomerImpactScopeOk returns a tuple with the CustomerImpactScope field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *IncidentResponseAttributes) GetCustomerImpactScopeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CustomerImpactScope.Get(), o.CustomerImpactScope.IsSet()
}
// HasCustomerImpactScope returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactScope() bool {
if o != nil && o.CustomerImpactScope.IsSet() {
return true
}
return false
}
// SetCustomerImpactScope gets a reference to the given NullableString and assigns it to the CustomerImpactScope field.
func (o *IncidentResponseAttributes) SetCustomerImpactScope(v string) {
o.CustomerImpactScope.Set(&v)
}
// SetCustomerImpactScopeNil sets the value for CustomerImpactScope to be an explicit nil
func (o *IncidentResponseAttributes) SetCustomerImpactScopeNil() {
o.CustomerImpactScope.Set(nil)
}
// UnsetCustomerImpactScope ensures that no value is present for CustomerImpactScope, not even an explicit nil
func (o *IncidentResponseAttributes) UnsetCustomerImpactScope() {
o.CustomerImpactScope.Unset()
}
// GetCustomerImpactStart returns the CustomerImpactStart field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetCustomerImpactStart() time.Time {
if o == nil || o.CustomerImpactStart.Get() == nil {
var ret time.Time
return ret
}
return *o.CustomerImpactStart.Get()
}
// GetCustomerImpactStartOk returns a tuple with the CustomerImpactStart field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *IncidentResponseAttributes) GetCustomerImpactStartOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.CustomerImpactStart.Get(), o.CustomerImpactStart.IsSet()
}
// HasCustomerImpactStart returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpactStart() bool {
if o != nil && o.CustomerImpactStart.IsSet() {
return true
}
return false
}
// SetCustomerImpactStart gets a reference to the given NullableTime and assigns it to the CustomerImpactStart field.
func (o *IncidentResponseAttributes) SetCustomerImpactStart(v time.Time) {
o.CustomerImpactStart.Set(&v)
}
// SetCustomerImpactStartNil sets the value for CustomerImpactStart to be an explicit nil
func (o *IncidentResponseAttributes) SetCustomerImpactStartNil() {
o.CustomerImpactStart.Set(nil)
}
// UnsetCustomerImpactStart ensures that no value is present for CustomerImpactStart, not even an explicit nil
func (o *IncidentResponseAttributes) UnsetCustomerImpactStart() {
o.CustomerImpactStart.Unset()
}
// GetCustomerImpacted returns the CustomerImpacted field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetCustomerImpacted() bool {
if o == nil || o.CustomerImpacted == nil {
var ret bool
return ret
}
return *o.CustomerImpacted
}
// GetCustomerImpactedOk returns a tuple with the CustomerImpacted field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetCustomerImpactedOk() (*bool, bool) {
if o == nil || o.CustomerImpacted == nil {
return nil, false
}
return o.CustomerImpacted, true
}
// HasCustomerImpacted returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasCustomerImpacted() bool {
if o != nil && o.CustomerImpacted != nil {
return true
}
return false
}
// SetCustomerImpacted gets a reference to the given bool and assigns it to the CustomerImpacted field.
func (o *IncidentResponseAttributes) SetCustomerImpacted(v bool) {
o.CustomerImpacted = &v
}
// GetDetected returns the Detected field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetDetected() time.Time {
if o == nil || o.Detected.Get() == nil {
var ret time.Time
return ret
}
return *o.Detected.Get()
}
// GetDetectedOk returns a tuple with the Detected field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *IncidentResponseAttributes) GetDetectedOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.Detected.Get(), o.Detected.IsSet()
}
// HasDetected returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasDetected() bool {
if o != nil && o.Detected.IsSet() {
return true
}
return false
}
// SetDetected gets a reference to the given NullableTime and assigns it to the Detected field.
func (o *IncidentResponseAttributes) SetDetected(v time.Time) {
o.Detected.Set(&v)
}
// SetDetectedNil sets the value for Detected to be an explicit nil
func (o *IncidentResponseAttributes) SetDetectedNil() {
o.Detected.Set(nil)
}
// UnsetDetected ensures that no value is present for Detected, not even an explicit nil
func (o *IncidentResponseAttributes) UnsetDetected() {
o.Detected.Unset()
}
// GetFields returns the Fields field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetFields() map[string]IncidentFieldAttributes {
if o == nil || o.Fields == nil {
var ret map[string]IncidentFieldAttributes
return ret
}
return *o.Fields
}
// GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetFieldsOk() (*map[string]IncidentFieldAttributes, bool) {
if o == nil || o.Fields == nil {
return nil, false
}
return o.Fields, true
}
// HasFields returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasFields() bool {
if o != nil && o.Fields != nil {
return true
}
return false
}
// SetFields gets a reference to the given map[string]IncidentFieldAttributes and assigns it to the Fields field.
func (o *IncidentResponseAttributes) SetFields(v map[string]IncidentFieldAttributes) {
o.Fields = &v
}
// GetModified returns the Modified field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetModified() time.Time {
if o == nil || o.Modified == nil {
var ret time.Time
return ret
}
return *o.Modified
}
// GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetModifiedOk() (*time.Time, bool) {
if o == nil || o.Modified == nil {
return nil, false
}
return o.Modified, true
}
// HasModified returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasModified() bool {
if o != nil && o.Modified != nil {
return true
}
return false
}
// SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *IncidentResponseAttributes) SetModified(v time.Time) {
o.Modified = &v
}
// GetNotificationHandles returns the NotificationHandles field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetNotificationHandles() []string {
if o == nil || o.NotificationHandles == nil {
var ret []string
return ret
}
return *o.NotificationHandles
}
// GetNotificationHandlesOk returns a tuple with the NotificationHandles field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetNotificationHandlesOk() (*[]string, bool) {
if o == nil || o.NotificationHandles == nil {
return nil, false
}
return o.NotificationHandles, true
}
// HasNotificationHandles returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasNotificationHandles() bool {
if o != nil && o.NotificationHandles != nil {
return true
}
return false
}
// SetNotificationHandles gets a reference to the given []string and assigns it to the NotificationHandles field.
func (o *IncidentResponseAttributes) SetNotificationHandles(v []string) {
o.NotificationHandles = &v
}
// GetPostmortemId returns the PostmortemId field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetPostmortemId() string {
if o == nil || o.PostmortemId == nil {
var ret string
return ret
}
return *o.PostmortemId
}
// GetPostmortemIdOk returns a tuple with the PostmortemId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetPostmortemIdOk() (*string, bool) {
if o == nil || o.PostmortemId == nil {
return nil, false
}
return o.PostmortemId, true
}
// HasPostmortemId returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasPostmortemId() bool {
if o != nil && o.PostmortemId != nil {
return true
}
return false
}
// SetPostmortemId gets a reference to the given string and assigns it to the PostmortemId field.
func (o *IncidentResponseAttributes) SetPostmortemId(v string) {
o.PostmortemId = &v
}
// GetPublicId returns the PublicId field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetPublicId() int64 {
if o == nil || o.PublicId == nil {
var ret int64
return ret
}
return *o.PublicId
}
// GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetPublicIdOk() (*int64, bool) {
if o == nil || o.PublicId == nil {
return nil, false
}
return o.PublicId, true
}
// HasPublicId returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasPublicId() bool {
if o != nil && o.PublicId != nil {
return true
}
return false
}
// SetPublicId gets a reference to the given int64 and assigns it to the PublicId field.
func (o *IncidentResponseAttributes) SetPublicId(v int64) {
o.PublicId = &v
}
// GetResolved returns the Resolved field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *IncidentResponseAttributes) GetResolved() time.Time {
if o == nil || o.Resolved.Get() == nil {
var ret time.Time
return ret
}
return *o.Resolved.Get()
}
// GetResolvedOk returns a tuple with the Resolved field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *IncidentResponseAttributes) GetResolvedOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.Resolved.Get(), o.Resolved.IsSet()
}
// HasResolved returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasResolved() bool {
if o != nil && o.Resolved.IsSet() {
return true
}
return false
}
// SetResolved gets a reference to the given NullableTime and assigns it to the Resolved field.
func (o *IncidentResponseAttributes) SetResolved(v time.Time) {
o.Resolved.Set(&v)
}
// SetResolvedNil sets the value for Resolved to be an explicit nil
func (o *IncidentResponseAttributes) SetResolvedNil() {
o.Resolved.Set(nil)
}
// UnsetResolved ensures that no value is present for Resolved, not even an explicit nil
func (o *IncidentResponseAttributes) UnsetResolved() {
o.Resolved.Unset()
}
// GetTimeToDetect returns the TimeToDetect field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToDetect() int64 {
if o == nil || o.TimeToDetect == nil {
var ret int64
return ret
}
return *o.TimeToDetect
}
// GetTimeToDetectOk returns a tuple with the TimeToDetect field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTimeToDetectOk() (*int64, bool) {
if o == nil || o.TimeToDetect == nil {
return nil, false
}
return o.TimeToDetect, true
}
// HasTimeToDetect returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToDetect() bool {
if o != nil && o.TimeToDetect != nil {
return true
}
return false
}
// SetTimeToDetect gets a reference to the given int64 and assigns it to the TimeToDetect field.
func (o *IncidentResponseAttributes) SetTimeToDetect(v int64) {
o.TimeToDetect = &v
}
// GetTimeToInternalResponse returns the TimeToInternalResponse field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToInternalResponse() int64 {
if o == nil || o.TimeToInternalResponse == nil {
var ret int64
return ret
}
return *o.TimeToInternalResponse
}
// GetTimeToInternalResponseOk returns a tuple with the TimeToInternalResponse field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTimeToInternalResponseOk() (*int64, bool) {
if o == nil || o.TimeToInternalResponse == nil {
return nil, false
}
return o.TimeToInternalResponse, true
}
// HasTimeToInternalResponse returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToInternalResponse() bool {
if o != nil && o.TimeToInternalResponse != nil {
return true
}
return false
}
// SetTimeToInternalResponse gets a reference to the given int64 and assigns it to the TimeToInternalResponse field.
func (o *IncidentResponseAttributes) SetTimeToInternalResponse(v int64) {
o.TimeToInternalResponse = &v
}
// GetTimeToRepair returns the TimeToRepair field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToRepair() int64 {
if o == nil || o.TimeToRepair == nil {
var ret int64
return ret
}
return *o.TimeToRepair
}
// GetTimeToRepairOk returns a tuple with the TimeToRepair field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTimeToRepairOk() (*int64, bool) {
if o == nil || o.TimeToRepair == nil {
return nil, false
}
return o.TimeToRepair, true
}
// HasTimeToRepair returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToRepair() bool {
if o != nil && o.TimeToRepair != nil {
return true
}
return false
}
// SetTimeToRepair gets a reference to the given int64 and assigns it to the TimeToRepair field.
func (o *IncidentResponseAttributes) SetTimeToRepair(v int64) {
o.TimeToRepair = &v
}
// GetTimeToResolve returns the TimeToResolve field value if set, zero value otherwise.
func (o *IncidentResponseAttributes) GetTimeToResolve() int64 {
if o == nil || o.TimeToResolve == nil {
var ret int64
return ret
}
return *o.TimeToResolve
}
// GetTimeToResolveOk returns a tuple with the TimeToResolve field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTimeToResolveOk() (*int64, bool) {
if o == nil || o.TimeToResolve == nil {
return nil, false
}
return o.TimeToResolve, true
}
// HasTimeToResolve returns a boolean if a field has been set.
func (o *IncidentResponseAttributes) HasTimeToResolve() bool {
if o != nil && o.TimeToResolve != nil {
return true
}
return false
}
// SetTimeToResolve gets a reference to the given int64 and assigns it to the TimeToResolve field.
func (o *IncidentResponseAttributes) SetTimeToResolve(v int64) {
o.TimeToResolve = &v
}
// GetTitle returns the Title field value
func (o *IncidentResponseAttributes) GetTitle() string {
if o == nil {
var ret string
return ret
}
return o.Title
}
// GetTitleOk returns a tuple with the Title field value
// and a boolean to check if the value has been set.
func (o *IncidentResponseAttributes) GetTitleOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Title, true
}
// SetTitle sets field value
func (o *IncidentResponseAttributes) SetTitle(v string) {
o.Title = v
}
func (o IncidentResponseAttributes) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Created != nil {
toSerialize["created"] = o.Created
}
if o.CustomerImpactDuration != nil {
toSerialize["customer_impact_duration"] = o.CustomerImpactDuration
}
if o.CustomerImpactEnd.IsSet() {
toSerialize["customer_impact_end"] = o.CustomerImpactEnd.Get()
}
if o.CustomerImpactScope.IsSet() {
toSerialize["customer_impact_scope"] = o.CustomerImpactScope.Get()
}
if o.CustomerImpactStart.IsSet() {
toSerialize["customer_impact_start"] = o.CustomerImpactStart.Get()
}
if o.CustomerImpacted != nil {
toSerialize["customer_impacted"] = o.CustomerImpacted
}
if o.Detected.IsSet() {
toSerialize["detected"] = o.Detected.Get()
}
if o.Fields != nil {
toSerialize["fields"] = o.Fields
}
if o.Modified != nil {
toSerialize["modified"] = o.Modified
}
if o.NotificationHandles != nil {
toSerialize["notification_handles"] = o.NotificationHandles
}
if o.PostmortemId != nil {
toSerialize["postmortem_id"] = o.PostmortemId
}
if o.PublicId != nil {
toSerialize["public_id"] = o.PublicId
}
if o.Resolved.IsSet() {
toSerialize["resolved"] = o.Resolved.Get()
}
if o.TimeToDetect != nil {
toSerialize["time_to_detect"] = o.TimeToDetect
}
if o.TimeToInternalResponse != nil {
toSerialize["time_to_internal_response"] = o.TimeToInternalResponse
}
if o.TimeToRepair != nil {
toSerialize["time_to_repair"] = o.TimeToRepair
}
if o.TimeToResolve != nil {
toSerialize["time_to_resolve"] = o.TimeToResolve
}
if true {
toSerialize["title"] = o.Title
}
return json.Marshal(toSerialize)
}
type NullableIncidentResponseAttributes struct {
value *IncidentResponseAttributes
isSet bool
}
func (v NullableIncidentResponseAttributes) Get() *IncidentResponseAttributes {
return v.value
}
func (v *NullableIncidentResponseAttributes) Set(val *IncidentResponseAttributes) {
v.value = val
v.isSet = true
}
func (v NullableIncidentResponseAttributes) IsSet() bool {
return v.isSet
}
func (v *NullableIncidentResponseAttributes) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIncidentResponseAttributes(val *IncidentResponseAttributes) *NullableIncidentResponseAttributes {
return &NullableIncidentResponseAttributes{value: val, isSet: true}
}
func (v NullableIncidentResponseAttributes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIncidentResponseAttributes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}