/
model_create_incident_request.go
2833 lines (2441 loc) · 82.1 KB
/
model_create_incident_request.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
/*
Cortex XSOAR API
This is the public REST API to integrate with the Cortex XSOAR server. HTTP request can be sent using any HTTP-client. For an example dedicated client take a look at: https://github.com/demisto/demisto-py. Requests must include API-key that can be generated in the Cortex XSOAR web client under 'Settings' -> 'Integrations' -> 'API keys' Optimistic Locking and Versioning\\: When using Cortex XSOAR REST API, you will need to make sure to work on the latest version of the item (incident, entry, etc.), otherwise, you will get a DB version error (which not allow you to override a newer item). In addition, you can pass 'version\\: -1' to force data override (make sure that other users data might be lost). Assume that Alice and Bob both read the same data from Cortex XSOAR server, then they both changed the data, and then both tried to write the new versions back to the server. Whose changes should be saved? Alice’s? Bob’s? To solve this, each data item in Cortex XSOAR has a numeric incremental version. If Alice saved an item with version 4 and Bob trying to save the same item with version 3, Cortex XSOAR will rollback Bob request and returns a DB version conflict error. Bob will need to get the latest item and work on it so Alice work will not get lost. Example request using 'curl'\\: ``` curl 'https://hostname:443/incidents/search' -H 'content-type: application/json' -H 'accept: application/json' -H 'Authorization: <API Key goes here>' --data-binary '{\"filter\":{\"query\":\"-status:closed -category:job\",\"period\":{\"by\":\"day\",\"fromValue\":7}}}' --compressed ```
API version: 2.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
"time"
)
// CreateIncidentRequest CreateIncidentRequest is an extension for Incident entity, with additional field of changed-status for the web client
type CreateIncidentRequest struct {
ShardID *int64 `json:"ShardID,omitempty"`
// Account holds the tenant name so that slicing and dicing on the master can leverage bleve
Account *string `json:"account,omitempty"`
// When was this activated
Activated *time.Time `json:"activated,omitempty"`
// The user that activated this investigation
ActivatingingUserId *string `json:"activatingingUserId,omitempty"`
AllRead *bool `json:"allRead,omitempty"`
AllReadWrite *bool `json:"allReadWrite,omitempty"`
// AlmostUniqueTime is an attempt to have a unique sortable ID for an incident
Autime *int64 `json:"autime,omitempty"`
// Canvases of the incident
Canvases *[]string `json:"canvases,omitempty"`
// Category
Category *string `json:"category,omitempty"`
// Notes for closing the incident
CloseNotes *string `json:"closeNotes,omitempty"`
// The reason for closing the incident (select from existing predefined values)
CloseReason *string `json:"closeReason,omitempty"`
// When was this closed
Closed *time.Time `json:"closed,omitempty"`
// The user ID that closed this investigation
ClosingUserId *string `json:"closingUserId,omitempty"`
CreateInvestigation *bool `json:"createInvestigation,omitempty"`
// When was this created
Created *time.Time `json:"created,omitempty"`
// Who has created this event - relevant only for manual incidents
DbotCreatedBy *string `json:"dbotCreatedBy,omitempty"`
// For mirroring, manage a list of current dirty fields so that we can send delta to outgoing integration
DbotCurrentDirtyFields *[]string `json:"dbotCurrentDirtyFields,omitempty"`
// For mirroring, manage a list of dirty fields to not override them from the source of the incident
DbotDirtyFields *[]string `json:"dbotDirtyFields,omitempty"`
// DBotMirrorDirection of how to mirror the incident (in/out/both)
DbotMirrorDirection *string `json:"dbotMirrorDirection,omitempty"`
// DBotMirrorID of a remote system we are syncing with
DbotMirrorId *string `json:"dbotMirrorId,omitempty"`
// DBotMirrorInstance name of a mirror integration instance
DbotMirrorInstance *string `json:"dbotMirrorInstance,omitempty"`
// The last time we synced this incident even if we did not update anything
DbotMirrorLastSync *time.Time `json:"dbotMirrorLastSync,omitempty"`
// The entry tags I want to sync to remote system
DbotMirrorTags *[]string `json:"dbotMirrorTags,omitempty"`
// The details of the incident - reason, etc.
Details *string `json:"details,omitempty"`
// DroppedCount ...
DroppedCount *int64 `json:"droppedCount,omitempty"`
// SLA
DueDate *time.Time `json:"dueDate,omitempty"`
// If this incident was triggered by a feed job
FeedBased *bool `json:"feedBased,omitempty"`
// Internal field to make queries on role faster
HasRole *bool `json:"hasRole,omitempty"`
Highlight *map[string][]string `json:"highlight,omitempty"`
Id *string `json:"id,omitempty"`
// Investigation that was opened as a result of the incoming event
InvestigationId *string `json:"investigationId,omitempty"`
// IsDebug ...
IsDebug *bool `json:"isDebug,omitempty"`
// IsPlayGround
IsPlayground *bool `json:"isPlayground,omitempty"`
// Labels related to incident - each label is composed of a type and value
Labels *[]Label `json:"labels,omitempty"`
// If this incident was triggered by a job, this would be the time the **previous** job started
LastJobRunTime *time.Time `json:"lastJobRunTime,omitempty"`
LastOpen *time.Time `json:"lastOpen,omitempty"`
// LinkedCount ...
LinkedCount *int64 `json:"linkedCount,omitempty"`
// LinkedIncidents incidents that were marked as linked by user
LinkedIncidents *[]string `json:"linkedIncidents,omitempty"`
Modified *time.Time `json:"modified,omitempty"`
// Incident Name - given by user
Name *string `json:"name,omitempty"`
// Incdicates when last this field was changed with a value that supposed to send a notification
NotifyTime *time.Time `json:"notifyTime,omitempty"`
NumericId *int64 `json:"numericId,omitempty"`
// When this incident has really occurred
Occurred *time.Time `json:"occurred,omitempty"`
// Duration incident was open
OpenDuration *int64 `json:"openDuration,omitempty"`
// The user who owns this incident
Owner *string `json:"owner,omitempty"`
// Parent
Parent *string `json:"parent,omitempty"`
// Phase
Phase *string `json:"phase,omitempty"`
// The associated playbook for this incident
PlaybookId *string `json:"playbookId,omitempty"`
PreviousAllRead *bool `json:"previousAllRead,omitempty"`
PreviousAllReadWrite *bool `json:"previousAllReadWrite,omitempty"`
// Do not change this field manually
PreviousRoles *[]string `json:"previousRoles,omitempty"`
PrimaryTerm *int64 `json:"primaryTerm,omitempty"`
RawCategory *string `json:"rawCategory,omitempty"`
// The reason for closing the incident (select from existing predefined values)
RawCloseReason *string `json:"rawCloseReason,omitempty"`
RawJSON *string `json:"rawJSON,omitempty"`
// Incident RawName
RawName *string `json:"rawName,omitempty"`
// RawPhase
RawPhase *string `json:"rawPhase,omitempty"`
// Incident raw type
RawType *string `json:"rawType,omitempty"`
// The reason for the resolve
Reason *string `json:"reason,omitempty"`
// When if at all to send a reminder
Reminder *time.Time `json:"reminder,omitempty"`
// The role assigned to this investigation
Roles *[]string `json:"roles,omitempty"`
// RunStatus of a job
RunStatus *string `json:"runStatus,omitempty"`
SequenceNumber *int64 `json:"sequenceNumber,omitempty"`
// Severity is the incident severity
Severity *float64 `json:"severity,omitempty"`
// SLAState is the incident sla at closure time
Sla *float64 `json:"sla,omitempty"`
SortValues *[]string `json:"sortValues,omitempty"`
// SourceBrand ...
SourceBrand *string `json:"sourceBrand,omitempty"`
// SourceInstance ...
SourceInstance *string `json:"sourceInstance,omitempty"`
// IncidentStatus is the status of the incident
Status *float64 `json:"status,omitempty"`
// ToDoTaskIDs list of to do task ids
TodoTaskIds *[]string `json:"todoTaskIds,omitempty"`
// Incident type
Type *string `json:"type,omitempty"`
Version *int64 `json:"version,omitempty"`
XsoarHasReadOnlyRole *bool `json:"xsoarHasReadOnlyRole,omitempty"`
XsoarPreviousReadOnlyRoles *[]string `json:"xsoarPreviousReadOnlyRoles,omitempty"`
XsoarReadOnlyRoles *[]string `json:"xsoarReadOnlyRoles,omitempty"`
}
// NewCreateIncidentRequest instantiates a new CreateIncidentRequest 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 NewCreateIncidentRequest() *CreateIncidentRequest {
this := CreateIncidentRequest{}
return &this
}
// NewCreateIncidentRequestWithDefaults instantiates a new CreateIncidentRequest 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 NewCreateIncidentRequestWithDefaults() *CreateIncidentRequest {
this := CreateIncidentRequest{}
return &this
}
// GetShardID returns the ShardID field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetShardID() int64 {
if o == nil || o.ShardID == nil {
var ret int64
return ret
}
return *o.ShardID
}
// GetShardIDOk returns a tuple with the ShardID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetShardIDOk() (*int64, bool) {
if o == nil || o.ShardID == nil {
return nil, false
}
return o.ShardID, true
}
// HasShardID returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasShardID() bool {
if o != nil && o.ShardID != nil {
return true
}
return false
}
// SetShardID gets a reference to the given int64 and assigns it to the ShardID field.
func (o *CreateIncidentRequest) SetShardID(v int64) {
o.ShardID = &v
}
// GetAccount returns the Account field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetAccount() string {
if o == nil || o.Account == nil {
var ret string
return ret
}
return *o.Account
}
// GetAccountOk returns a tuple with the Account field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetAccountOk() (*string, bool) {
if o == nil || o.Account == nil {
return nil, false
}
return o.Account, true
}
// HasAccount returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasAccount() bool {
if o != nil && o.Account != nil {
return true
}
return false
}
// SetAccount gets a reference to the given string and assigns it to the Account field.
func (o *CreateIncidentRequest) SetAccount(v string) {
o.Account = &v
}
// GetActivated returns the Activated field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetActivated() time.Time {
if o == nil || o.Activated == nil {
var ret time.Time
return ret
}
return *o.Activated
}
// GetActivatedOk returns a tuple with the Activated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetActivatedOk() (*time.Time, bool) {
if o == nil || o.Activated == nil {
return nil, false
}
return o.Activated, true
}
// HasActivated returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasActivated() bool {
if o != nil && o.Activated != nil {
return true
}
return false
}
// SetActivated gets a reference to the given time.Time and assigns it to the Activated field.
func (o *CreateIncidentRequest) SetActivated(v time.Time) {
o.Activated = &v
}
// GetActivatingingUserId returns the ActivatingingUserId field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetActivatingingUserId() string {
if o == nil || o.ActivatingingUserId == nil {
var ret string
return ret
}
return *o.ActivatingingUserId
}
// GetActivatingingUserIdOk returns a tuple with the ActivatingingUserId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetActivatingingUserIdOk() (*string, bool) {
if o == nil || o.ActivatingingUserId == nil {
return nil, false
}
return o.ActivatingingUserId, true
}
// HasActivatingingUserId returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasActivatingingUserId() bool {
if o != nil && o.ActivatingingUserId != nil {
return true
}
return false
}
// SetActivatingingUserId gets a reference to the given string and assigns it to the ActivatingingUserId field.
func (o *CreateIncidentRequest) SetActivatingingUserId(v string) {
o.ActivatingingUserId = &v
}
// GetAllRead returns the AllRead field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetAllRead() bool {
if o == nil || o.AllRead == nil {
var ret bool
return ret
}
return *o.AllRead
}
// GetAllReadOk returns a tuple with the AllRead field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetAllReadOk() (*bool, bool) {
if o == nil || o.AllRead == nil {
return nil, false
}
return o.AllRead, true
}
// HasAllRead returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasAllRead() bool {
if o != nil && o.AllRead != nil {
return true
}
return false
}
// SetAllRead gets a reference to the given bool and assigns it to the AllRead field.
func (o *CreateIncidentRequest) SetAllRead(v bool) {
o.AllRead = &v
}
// GetAllReadWrite returns the AllReadWrite field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetAllReadWrite() bool {
if o == nil || o.AllReadWrite == nil {
var ret bool
return ret
}
return *o.AllReadWrite
}
// GetAllReadWriteOk returns a tuple with the AllReadWrite field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetAllReadWriteOk() (*bool, bool) {
if o == nil || o.AllReadWrite == nil {
return nil, false
}
return o.AllReadWrite, true
}
// HasAllReadWrite returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasAllReadWrite() bool {
if o != nil && o.AllReadWrite != nil {
return true
}
return false
}
// SetAllReadWrite gets a reference to the given bool and assigns it to the AllReadWrite field.
func (o *CreateIncidentRequest) SetAllReadWrite(v bool) {
o.AllReadWrite = &v
}
// GetAutime returns the Autime field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetAutime() int64 {
if o == nil || o.Autime == nil {
var ret int64
return ret
}
return *o.Autime
}
// GetAutimeOk returns a tuple with the Autime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetAutimeOk() (*int64, bool) {
if o == nil || o.Autime == nil {
return nil, false
}
return o.Autime, true
}
// HasAutime returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasAutime() bool {
if o != nil && o.Autime != nil {
return true
}
return false
}
// SetAutime gets a reference to the given int64 and assigns it to the Autime field.
func (o *CreateIncidentRequest) SetAutime(v int64) {
o.Autime = &v
}
// GetCanvases returns the Canvases field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetCanvases() []string {
if o == nil || o.Canvases == nil {
var ret []string
return ret
}
return *o.Canvases
}
// GetCanvasesOk returns a tuple with the Canvases field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetCanvasesOk() (*[]string, bool) {
if o == nil || o.Canvases == nil {
return nil, false
}
return o.Canvases, true
}
// HasCanvases returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasCanvases() bool {
if o != nil && o.Canvases != nil {
return true
}
return false
}
// SetCanvases gets a reference to the given []string and assigns it to the Canvases field.
func (o *CreateIncidentRequest) SetCanvases(v []string) {
o.Canvases = &v
}
// GetCategory returns the Category field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetCategory() string {
if o == nil || o.Category == nil {
var ret string
return ret
}
return *o.Category
}
// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetCategoryOk() (*string, bool) {
if o == nil || o.Category == nil {
return nil, false
}
return o.Category, true
}
// HasCategory returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasCategory() bool {
if o != nil && o.Category != nil {
return true
}
return false
}
// SetCategory gets a reference to the given string and assigns it to the Category field.
func (o *CreateIncidentRequest) SetCategory(v string) {
o.Category = &v
}
// GetCloseNotes returns the CloseNotes field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetCloseNotes() string {
if o == nil || o.CloseNotes == nil {
var ret string
return ret
}
return *o.CloseNotes
}
// GetCloseNotesOk returns a tuple with the CloseNotes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetCloseNotesOk() (*string, bool) {
if o == nil || o.CloseNotes == nil {
return nil, false
}
return o.CloseNotes, true
}
// HasCloseNotes returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasCloseNotes() bool {
if o != nil && o.CloseNotes != nil {
return true
}
return false
}
// SetCloseNotes gets a reference to the given string and assigns it to the CloseNotes field.
func (o *CreateIncidentRequest) SetCloseNotes(v string) {
o.CloseNotes = &v
}
// GetCloseReason returns the CloseReason field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetCloseReason() string {
if o == nil || o.CloseReason == nil {
var ret string
return ret
}
return *o.CloseReason
}
// GetCloseReasonOk returns a tuple with the CloseReason field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetCloseReasonOk() (*string, bool) {
if o == nil || o.CloseReason == nil {
return nil, false
}
return o.CloseReason, true
}
// HasCloseReason returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasCloseReason() bool {
if o != nil && o.CloseReason != nil {
return true
}
return false
}
// SetCloseReason gets a reference to the given string and assigns it to the CloseReason field.
func (o *CreateIncidentRequest) SetCloseReason(v string) {
o.CloseReason = &v
}
// GetClosed returns the Closed field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetClosed() time.Time {
if o == nil || o.Closed == nil {
var ret time.Time
return ret
}
return *o.Closed
}
// GetClosedOk returns a tuple with the Closed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetClosedOk() (*time.Time, bool) {
if o == nil || o.Closed == nil {
return nil, false
}
return o.Closed, true
}
// HasClosed returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasClosed() bool {
if o != nil && o.Closed != nil {
return true
}
return false
}
// SetClosed gets a reference to the given time.Time and assigns it to the Closed field.
func (o *CreateIncidentRequest) SetClosed(v time.Time) {
o.Closed = &v
}
// GetClosingUserId returns the ClosingUserId field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetClosingUserId() string {
if o == nil || o.ClosingUserId == nil {
var ret string
return ret
}
return *o.ClosingUserId
}
// GetClosingUserIdOk returns a tuple with the ClosingUserId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetClosingUserIdOk() (*string, bool) {
if o == nil || o.ClosingUserId == nil {
return nil, false
}
return o.ClosingUserId, true
}
// HasClosingUserId returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasClosingUserId() bool {
if o != nil && o.ClosingUserId != nil {
return true
}
return false
}
// SetClosingUserId gets a reference to the given string and assigns it to the ClosingUserId field.
func (o *CreateIncidentRequest) SetClosingUserId(v string) {
o.ClosingUserId = &v
}
// GetCreateInvestigation returns the CreateInvestigation field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetCreateInvestigation() bool {
if o == nil || o.CreateInvestigation == nil {
var ret bool
return ret
}
return *o.CreateInvestigation
}
// GetCreateInvestigationOk returns a tuple with the CreateInvestigation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetCreateInvestigationOk() (*bool, bool) {
if o == nil || o.CreateInvestigation == nil {
return nil, false
}
return o.CreateInvestigation, true
}
// HasCreateInvestigation returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasCreateInvestigation() bool {
if o != nil && o.CreateInvestigation != nil {
return true
}
return false
}
// SetCreateInvestigation gets a reference to the given bool and assigns it to the CreateInvestigation field.
func (o *CreateIncidentRequest) SetCreateInvestigation(v bool) {
o.CreateInvestigation = &v
}
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *CreateIncidentRequest) 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 *CreateIncidentRequest) 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 *CreateIncidentRequest) 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 *CreateIncidentRequest) SetCreated(v time.Time) {
o.Created = &v
}
// GetDbotCreatedBy returns the DbotCreatedBy field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDbotCreatedBy() string {
if o == nil || o.DbotCreatedBy == nil {
var ret string
return ret
}
return *o.DbotCreatedBy
}
// GetDbotCreatedByOk returns a tuple with the DbotCreatedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDbotCreatedByOk() (*string, bool) {
if o == nil || o.DbotCreatedBy == nil {
return nil, false
}
return o.DbotCreatedBy, true
}
// HasDbotCreatedBy returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDbotCreatedBy() bool {
if o != nil && o.DbotCreatedBy != nil {
return true
}
return false
}
// SetDbotCreatedBy gets a reference to the given string and assigns it to the DbotCreatedBy field.
func (o *CreateIncidentRequest) SetDbotCreatedBy(v string) {
o.DbotCreatedBy = &v
}
// GetDbotCurrentDirtyFields returns the DbotCurrentDirtyFields field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDbotCurrentDirtyFields() []string {
if o == nil || o.DbotCurrentDirtyFields == nil {
var ret []string
return ret
}
return *o.DbotCurrentDirtyFields
}
// GetDbotCurrentDirtyFieldsOk returns a tuple with the DbotCurrentDirtyFields field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDbotCurrentDirtyFieldsOk() (*[]string, bool) {
if o == nil || o.DbotCurrentDirtyFields == nil {
return nil, false
}
return o.DbotCurrentDirtyFields, true
}
// HasDbotCurrentDirtyFields returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDbotCurrentDirtyFields() bool {
if o != nil && o.DbotCurrentDirtyFields != nil {
return true
}
return false
}
// SetDbotCurrentDirtyFields gets a reference to the given []string and assigns it to the DbotCurrentDirtyFields field.
func (o *CreateIncidentRequest) SetDbotCurrentDirtyFields(v []string) {
o.DbotCurrentDirtyFields = &v
}
// GetDbotDirtyFields returns the DbotDirtyFields field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDbotDirtyFields() []string {
if o == nil || o.DbotDirtyFields == nil {
var ret []string
return ret
}
return *o.DbotDirtyFields
}
// GetDbotDirtyFieldsOk returns a tuple with the DbotDirtyFields field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDbotDirtyFieldsOk() (*[]string, bool) {
if o == nil || o.DbotDirtyFields == nil {
return nil, false
}
return o.DbotDirtyFields, true
}
// HasDbotDirtyFields returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDbotDirtyFields() bool {
if o != nil && o.DbotDirtyFields != nil {
return true
}
return false
}
// SetDbotDirtyFields gets a reference to the given []string and assigns it to the DbotDirtyFields field.
func (o *CreateIncidentRequest) SetDbotDirtyFields(v []string) {
o.DbotDirtyFields = &v
}
// GetDbotMirrorDirection returns the DbotMirrorDirection field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDbotMirrorDirection() string {
if o == nil || o.DbotMirrorDirection == nil {
var ret string
return ret
}
return *o.DbotMirrorDirection
}
// GetDbotMirrorDirectionOk returns a tuple with the DbotMirrorDirection field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDbotMirrorDirectionOk() (*string, bool) {
if o == nil || o.DbotMirrorDirection == nil {
return nil, false
}
return o.DbotMirrorDirection, true
}
// HasDbotMirrorDirection returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDbotMirrorDirection() bool {
if o != nil && o.DbotMirrorDirection != nil {
return true
}
return false
}
// SetDbotMirrorDirection gets a reference to the given string and assigns it to the DbotMirrorDirection field.
func (o *CreateIncidentRequest) SetDbotMirrorDirection(v string) {
o.DbotMirrorDirection = &v
}
// GetDbotMirrorId returns the DbotMirrorId field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDbotMirrorId() string {
if o == nil || o.DbotMirrorId == nil {
var ret string
return ret
}
return *o.DbotMirrorId
}
// GetDbotMirrorIdOk returns a tuple with the DbotMirrorId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDbotMirrorIdOk() (*string, bool) {
if o == nil || o.DbotMirrorId == nil {
return nil, false
}
return o.DbotMirrorId, true
}
// HasDbotMirrorId returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDbotMirrorId() bool {
if o != nil && o.DbotMirrorId != nil {
return true
}
return false
}
// SetDbotMirrorId gets a reference to the given string and assigns it to the DbotMirrorId field.
func (o *CreateIncidentRequest) SetDbotMirrorId(v string) {
o.DbotMirrorId = &v
}
// GetDbotMirrorInstance returns the DbotMirrorInstance field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDbotMirrorInstance() string {
if o == nil || o.DbotMirrorInstance == nil {
var ret string
return ret
}
return *o.DbotMirrorInstance
}
// GetDbotMirrorInstanceOk returns a tuple with the DbotMirrorInstance field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDbotMirrorInstanceOk() (*string, bool) {
if o == nil || o.DbotMirrorInstance == nil {
return nil, false
}
return o.DbotMirrorInstance, true
}
// HasDbotMirrorInstance returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDbotMirrorInstance() bool {
if o != nil && o.DbotMirrorInstance != nil {
return true
}
return false
}
// SetDbotMirrorInstance gets a reference to the given string and assigns it to the DbotMirrorInstance field.
func (o *CreateIncidentRequest) SetDbotMirrorInstance(v string) {
o.DbotMirrorInstance = &v
}
// GetDbotMirrorLastSync returns the DbotMirrorLastSync field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDbotMirrorLastSync() time.Time {
if o == nil || o.DbotMirrorLastSync == nil {
var ret time.Time
return ret
}
return *o.DbotMirrorLastSync
}
// GetDbotMirrorLastSyncOk returns a tuple with the DbotMirrorLastSync field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDbotMirrorLastSyncOk() (*time.Time, bool) {
if o == nil || o.DbotMirrorLastSync == nil {
return nil, false
}
return o.DbotMirrorLastSync, true
}
// HasDbotMirrorLastSync returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDbotMirrorLastSync() bool {
if o != nil && o.DbotMirrorLastSync != nil {
return true
}
return false
}
// SetDbotMirrorLastSync gets a reference to the given time.Time and assigns it to the DbotMirrorLastSync field.
func (o *CreateIncidentRequest) SetDbotMirrorLastSync(v time.Time) {
o.DbotMirrorLastSync = &v
}
// GetDbotMirrorTags returns the DbotMirrorTags field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDbotMirrorTags() []string {
if o == nil || o.DbotMirrorTags == nil {
var ret []string
return ret
}
return *o.DbotMirrorTags
}
// GetDbotMirrorTagsOk returns a tuple with the DbotMirrorTags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDbotMirrorTagsOk() (*[]string, bool) {
if o == nil || o.DbotMirrorTags == nil {
return nil, false
}
return o.DbotMirrorTags, true
}
// HasDbotMirrorTags returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDbotMirrorTags() bool {
if o != nil && o.DbotMirrorTags != nil {
return true
}
return false
}
// SetDbotMirrorTags gets a reference to the given []string and assigns it to the DbotMirrorTags field.
func (o *CreateIncidentRequest) SetDbotMirrorTags(v []string) {
o.DbotMirrorTags = &v
}
// GetDetails returns the Details field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDetails() string {
if o == nil || o.Details == nil {
var ret string
return ret
}
return *o.Details
}
// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDetailsOk() (*string, bool) {
if o == nil || o.Details == nil {
return nil, false
}
return o.Details, true
}
// HasDetails returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDetails() bool {
if o != nil && o.Details != nil {
return true
}
return false
}
// SetDetails gets a reference to the given string and assigns it to the Details field.
func (o *CreateIncidentRequest) SetDetails(v string) {
o.Details = &v
}
// GetDroppedCount returns the DroppedCount field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDroppedCount() int64 {
if o == nil || o.DroppedCount == nil {
var ret int64
return ret
}
return *o.DroppedCount
}
// GetDroppedCountOk returns a tuple with the DroppedCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDroppedCountOk() (*int64, bool) {
if o == nil || o.DroppedCount == nil {
return nil, false
}
return o.DroppedCount, true
}
// HasDroppedCount returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDroppedCount() bool {
if o != nil && o.DroppedCount != nil {
return true
}
return false
}
// SetDroppedCount gets a reference to the given int64 and assigns it to the DroppedCount field.
func (o *CreateIncidentRequest) SetDroppedCount(v int64) {
o.DroppedCount = &v
}
// GetDueDate returns the DueDate field value if set, zero value otherwise.
func (o *CreateIncidentRequest) GetDueDate() time.Time {
if o == nil || o.DueDate == nil {
var ret time.Time
return ret
}
return *o.DueDate
}
// GetDueDateOk returns a tuple with the DueDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateIncidentRequest) GetDueDateOk() (*time.Time, bool) {
if o == nil || o.DueDate == nil {
return nil, false
}
return o.DueDate, true
}
// HasDueDate returns a boolean if a field has been set.
func (o *CreateIncidentRequest) HasDueDate() bool {
if o != nil && o.DueDate != nil {
return true
}
return false
}
// SetDueDate gets a reference to the given time.Time and assigns it to the DueDate field.
func (o *CreateIncidentRequest) SetDueDate(v time.Time) {
o.DueDate = &v
}