/
model_instance_classifier.go
1412 lines (1210 loc) · 42.7 KB
/
model_instance_classifier.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"
)
// InstanceClassifier InstanceClassifier - classifies an incident from a specific brand
type InstanceClassifier struct {
Brands *[]string `json:"brands,omitempty"`
CommitMessage *string `json:"commitMessage,omitempty"`
DefaultIncidentType *string `json:"defaultIncidentType,omitempty"`
Description *string `json:"description,omitempty"`
Feed *bool `json:"feed,omitempty"`
FromServerVersion *string `json:"fromServerVersion,omitempty"`
Highlight *map[string][]string `json:"highlight,omitempty"`
Id *string `json:"id,omitempty"`
// Incidents is a list of incident entities
IncidentSamples *[]map[string]interface{} `json:"incidentSamples,omitempty"`
IndicatorSamples *[]FeedIndicator `json:"indicatorSamples,omitempty"`
InstanceIds *[]string `json:"instanceIds,omitempty"`
ItemVersion *string `json:"itemVersion,omitempty"`
KeyTypeMap *map[string]interface{} `json:"keyTypeMap,omitempty"`
Locked *bool `json:"locked,omitempty"`
LogicalVersion *int64 `json:"logicalVersion,omitempty"`
Mapping *map[string]interface{} `json:"mapping,omitempty"`
Modified *time.Time `json:"modified,omitempty"`
Name *string `json:"name,omitempty"`
NameRaw *string `json:"nameRaw,omitempty"`
NumericId *int64 `json:"numericId,omitempty"`
PackID *string `json:"packID,omitempty"`
PackPropagationLabels *[]string `json:"packPropagationLabels,omitempty"`
PrevName *string `json:"prevName,omitempty"`
PrimaryTerm *int64 `json:"primaryTerm,omitempty"`
PropagationLabels *[]string `json:"propagationLabels,omitempty"`
SequenceNumber *int64 `json:"sequenceNumber,omitempty"`
ShouldCommit *bool `json:"shouldCommit,omitempty"`
SortValues *[]string `json:"sortValues,omitempty"`
SourceClassifierId *string `json:"sourceClassifierId,omitempty"`
System *bool `json:"system,omitempty"`
ToServerVersion *string `json:"toServerVersion,omitempty"`
Transformer *map[string]interface{} `json:"transformer,omitempty"`
// MapperType for instance classifier
Type *string `json:"type,omitempty"`
UnclassifiedCases *map[string]map[string]int64 `json:"unclassifiedCases,omitempty"`
VcShouldIgnore *bool `json:"vcShouldIgnore,omitempty"`
VcShouldKeepItemLegacyProdMachine *bool `json:"vcShouldKeepItemLegacyProdMachine,omitempty"`
Version *int64 `json:"version,omitempty"`
}
// NewInstanceClassifier instantiates a new InstanceClassifier 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 NewInstanceClassifier() *InstanceClassifier {
this := InstanceClassifier{}
return &this
}
// NewInstanceClassifierWithDefaults instantiates a new InstanceClassifier 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 NewInstanceClassifierWithDefaults() *InstanceClassifier {
this := InstanceClassifier{}
return &this
}
// GetBrands returns the Brands field value if set, zero value otherwise.
func (o *InstanceClassifier) GetBrands() []string {
if o == nil || o.Brands == nil {
var ret []string
return ret
}
return *o.Brands
}
// GetBrandsOk returns a tuple with the Brands field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetBrandsOk() (*[]string, bool) {
if o == nil || o.Brands == nil {
return nil, false
}
return o.Brands, true
}
// HasBrands returns a boolean if a field has been set.
func (o *InstanceClassifier) HasBrands() bool {
if o != nil && o.Brands != nil {
return true
}
return false
}
// SetBrands gets a reference to the given []string and assigns it to the Brands field.
func (o *InstanceClassifier) SetBrands(v []string) {
o.Brands = &v
}
// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise.
func (o *InstanceClassifier) GetCommitMessage() string {
if o == nil || o.CommitMessage == nil {
var ret string
return ret
}
return *o.CommitMessage
}
// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetCommitMessageOk() (*string, bool) {
if o == nil || o.CommitMessage == nil {
return nil, false
}
return o.CommitMessage, true
}
// HasCommitMessage returns a boolean if a field has been set.
func (o *InstanceClassifier) HasCommitMessage() bool {
if o != nil && o.CommitMessage != nil {
return true
}
return false
}
// SetCommitMessage gets a reference to the given string and assigns it to the CommitMessage field.
func (o *InstanceClassifier) SetCommitMessage(v string) {
o.CommitMessage = &v
}
// GetDefaultIncidentType returns the DefaultIncidentType field value if set, zero value otherwise.
func (o *InstanceClassifier) GetDefaultIncidentType() string {
if o == nil || o.DefaultIncidentType == nil {
var ret string
return ret
}
return *o.DefaultIncidentType
}
// GetDefaultIncidentTypeOk returns a tuple with the DefaultIncidentType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetDefaultIncidentTypeOk() (*string, bool) {
if o == nil || o.DefaultIncidentType == nil {
return nil, false
}
return o.DefaultIncidentType, true
}
// HasDefaultIncidentType returns a boolean if a field has been set.
func (o *InstanceClassifier) HasDefaultIncidentType() bool {
if o != nil && o.DefaultIncidentType != nil {
return true
}
return false
}
// SetDefaultIncidentType gets a reference to the given string and assigns it to the DefaultIncidentType field.
func (o *InstanceClassifier) SetDefaultIncidentType(v string) {
o.DefaultIncidentType = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *InstanceClassifier) GetDescription() string {
if o == nil || o.Description == nil {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetDescriptionOk() (*string, bool) {
if o == nil || o.Description == nil {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *InstanceClassifier) HasDescription() bool {
if o != nil && o.Description != nil {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *InstanceClassifier) SetDescription(v string) {
o.Description = &v
}
// GetFeed returns the Feed field value if set, zero value otherwise.
func (o *InstanceClassifier) GetFeed() bool {
if o == nil || o.Feed == nil {
var ret bool
return ret
}
return *o.Feed
}
// GetFeedOk returns a tuple with the Feed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetFeedOk() (*bool, bool) {
if o == nil || o.Feed == nil {
return nil, false
}
return o.Feed, true
}
// HasFeed returns a boolean if a field has been set.
func (o *InstanceClassifier) HasFeed() bool {
if o != nil && o.Feed != nil {
return true
}
return false
}
// SetFeed gets a reference to the given bool and assigns it to the Feed field.
func (o *InstanceClassifier) SetFeed(v bool) {
o.Feed = &v
}
// GetFromServerVersion returns the FromServerVersion field value if set, zero value otherwise.
func (o *InstanceClassifier) GetFromServerVersion() string {
if o == nil || o.FromServerVersion == nil {
var ret string
return ret
}
return *o.FromServerVersion
}
// GetFromServerVersionOk returns a tuple with the FromServerVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetFromServerVersionOk() (*string, bool) {
if o == nil || o.FromServerVersion == nil {
return nil, false
}
return o.FromServerVersion, true
}
// HasFromServerVersion returns a boolean if a field has been set.
func (o *InstanceClassifier) HasFromServerVersion() bool {
if o != nil && o.FromServerVersion != nil {
return true
}
return false
}
// SetFromServerVersion gets a reference to the given string and assigns it to the FromServerVersion field.
func (o *InstanceClassifier) SetFromServerVersion(v string) {
o.FromServerVersion = &v
}
// GetHighlight returns the Highlight field value if set, zero value otherwise.
func (o *InstanceClassifier) GetHighlight() map[string][]string {
if o == nil || o.Highlight == nil {
var ret map[string][]string
return ret
}
return *o.Highlight
}
// GetHighlightOk returns a tuple with the Highlight field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetHighlightOk() (*map[string][]string, bool) {
if o == nil || o.Highlight == nil {
return nil, false
}
return o.Highlight, true
}
// HasHighlight returns a boolean if a field has been set.
func (o *InstanceClassifier) HasHighlight() bool {
if o != nil && o.Highlight != nil {
return true
}
return false
}
// SetHighlight gets a reference to the given map[string][]string and assigns it to the Highlight field.
func (o *InstanceClassifier) SetHighlight(v map[string][]string) {
o.Highlight = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *InstanceClassifier) GetId() string {
if o == nil || o.Id == nil {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetIdOk() (*string, bool) {
if o == nil || o.Id == nil {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *InstanceClassifier) HasId() bool {
if o != nil && o.Id != nil {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *InstanceClassifier) SetId(v string) {
o.Id = &v
}
// GetIncidentSamples returns the IncidentSamples field value if set, zero value otherwise.
func (o *InstanceClassifier) GetIncidentSamples() []map[string]interface{} {
if o == nil || o.IncidentSamples == nil {
var ret []map[string]interface{}
return ret
}
return *o.IncidentSamples
}
// GetIncidentSamplesOk returns a tuple with the IncidentSamples field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetIncidentSamplesOk() (*[]map[string]interface{}, bool) {
if o == nil || o.IncidentSamples == nil {
return nil, false
}
return o.IncidentSamples, true
}
// HasIncidentSamples returns a boolean if a field has been set.
func (o *InstanceClassifier) HasIncidentSamples() bool {
if o != nil && o.IncidentSamples != nil {
return true
}
return false
}
// SetIncidentSamples gets a reference to the given []map[string]interface{} and assigns it to the IncidentSamples field.
func (o *InstanceClassifier) SetIncidentSamples(v []map[string]interface{}) {
o.IncidentSamples = &v
}
// GetIndicatorSamples returns the IndicatorSamples field value if set, zero value otherwise.
func (o *InstanceClassifier) GetIndicatorSamples() []FeedIndicator {
if o == nil || o.IndicatorSamples == nil {
var ret []FeedIndicator
return ret
}
return *o.IndicatorSamples
}
// GetIndicatorSamplesOk returns a tuple with the IndicatorSamples field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetIndicatorSamplesOk() (*[]FeedIndicator, bool) {
if o == nil || o.IndicatorSamples == nil {
return nil, false
}
return o.IndicatorSamples, true
}
// HasIndicatorSamples returns a boolean if a field has been set.
func (o *InstanceClassifier) HasIndicatorSamples() bool {
if o != nil && o.IndicatorSamples != nil {
return true
}
return false
}
// SetIndicatorSamples gets a reference to the given []FeedIndicator and assigns it to the IndicatorSamples field.
func (o *InstanceClassifier) SetIndicatorSamples(v []FeedIndicator) {
o.IndicatorSamples = &v
}
// GetInstanceIds returns the InstanceIds field value if set, zero value otherwise.
func (o *InstanceClassifier) GetInstanceIds() []string {
if o == nil || o.InstanceIds == nil {
var ret []string
return ret
}
return *o.InstanceIds
}
// GetInstanceIdsOk returns a tuple with the InstanceIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetInstanceIdsOk() (*[]string, bool) {
if o == nil || o.InstanceIds == nil {
return nil, false
}
return o.InstanceIds, true
}
// HasInstanceIds returns a boolean if a field has been set.
func (o *InstanceClassifier) HasInstanceIds() bool {
if o != nil && o.InstanceIds != nil {
return true
}
return false
}
// SetInstanceIds gets a reference to the given []string and assigns it to the InstanceIds field.
func (o *InstanceClassifier) SetInstanceIds(v []string) {
o.InstanceIds = &v
}
// GetItemVersion returns the ItemVersion field value if set, zero value otherwise.
func (o *InstanceClassifier) GetItemVersion() string {
if o == nil || o.ItemVersion == nil {
var ret string
return ret
}
return *o.ItemVersion
}
// GetItemVersionOk returns a tuple with the ItemVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetItemVersionOk() (*string, bool) {
if o == nil || o.ItemVersion == nil {
return nil, false
}
return o.ItemVersion, true
}
// HasItemVersion returns a boolean if a field has been set.
func (o *InstanceClassifier) HasItemVersion() bool {
if o != nil && o.ItemVersion != nil {
return true
}
return false
}
// SetItemVersion gets a reference to the given string and assigns it to the ItemVersion field.
func (o *InstanceClassifier) SetItemVersion(v string) {
o.ItemVersion = &v
}
// GetKeyTypeMap returns the KeyTypeMap field value if set, zero value otherwise.
func (o *InstanceClassifier) GetKeyTypeMap() map[string]interface{} {
if o == nil || o.KeyTypeMap == nil {
var ret map[string]interface{}
return ret
}
return *o.KeyTypeMap
}
// GetKeyTypeMapOk returns a tuple with the KeyTypeMap field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetKeyTypeMapOk() (*map[string]interface{}, bool) {
if o == nil || o.KeyTypeMap == nil {
return nil, false
}
return o.KeyTypeMap, true
}
// HasKeyTypeMap returns a boolean if a field has been set.
func (o *InstanceClassifier) HasKeyTypeMap() bool {
if o != nil && o.KeyTypeMap != nil {
return true
}
return false
}
// SetKeyTypeMap gets a reference to the given map[string]interface{} and assigns it to the KeyTypeMap field.
func (o *InstanceClassifier) SetKeyTypeMap(v map[string]interface{}) {
o.KeyTypeMap = &v
}
// GetLocked returns the Locked field value if set, zero value otherwise.
func (o *InstanceClassifier) GetLocked() bool {
if o == nil || o.Locked == nil {
var ret bool
return ret
}
return *o.Locked
}
// GetLockedOk returns a tuple with the Locked field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetLockedOk() (*bool, bool) {
if o == nil || o.Locked == nil {
return nil, false
}
return o.Locked, true
}
// HasLocked returns a boolean if a field has been set.
func (o *InstanceClassifier) HasLocked() bool {
if o != nil && o.Locked != nil {
return true
}
return false
}
// SetLocked gets a reference to the given bool and assigns it to the Locked field.
func (o *InstanceClassifier) SetLocked(v bool) {
o.Locked = &v
}
// GetLogicalVersion returns the LogicalVersion field value if set, zero value otherwise.
func (o *InstanceClassifier) GetLogicalVersion() int64 {
if o == nil || o.LogicalVersion == nil {
var ret int64
return ret
}
return *o.LogicalVersion
}
// GetLogicalVersionOk returns a tuple with the LogicalVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetLogicalVersionOk() (*int64, bool) {
if o == nil || o.LogicalVersion == nil {
return nil, false
}
return o.LogicalVersion, true
}
// HasLogicalVersion returns a boolean if a field has been set.
func (o *InstanceClassifier) HasLogicalVersion() bool {
if o != nil && o.LogicalVersion != nil {
return true
}
return false
}
// SetLogicalVersion gets a reference to the given int64 and assigns it to the LogicalVersion field.
func (o *InstanceClassifier) SetLogicalVersion(v int64) {
o.LogicalVersion = &v
}
// GetMapping returns the Mapping field value if set, zero value otherwise.
func (o *InstanceClassifier) GetMapping() map[string]interface{} {
if o == nil || o.Mapping == nil {
var ret map[string]interface{}
return ret
}
return *o.Mapping
}
// GetMappingOk returns a tuple with the Mapping field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetMappingOk() (*map[string]interface{}, bool) {
if o == nil || o.Mapping == nil {
return nil, false
}
return o.Mapping, true
}
// HasMapping returns a boolean if a field has been set.
func (o *InstanceClassifier) HasMapping() bool {
if o != nil && o.Mapping != nil {
return true
}
return false
}
// SetMapping gets a reference to the given map[string]interface{} and assigns it to the Mapping field.
func (o *InstanceClassifier) SetMapping(v map[string]interface{}) {
o.Mapping = &v
}
// GetModified returns the Modified field value if set, zero value otherwise.
func (o *InstanceClassifier) 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 *InstanceClassifier) 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 *InstanceClassifier) 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 *InstanceClassifier) SetModified(v time.Time) {
o.Modified = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *InstanceClassifier) GetName() string {
if o == nil || o.Name == nil {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *InstanceClassifier) HasName() bool {
if o != nil && o.Name != nil {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *InstanceClassifier) SetName(v string) {
o.Name = &v
}
// GetNameRaw returns the NameRaw field value if set, zero value otherwise.
func (o *InstanceClassifier) GetNameRaw() string {
if o == nil || o.NameRaw == nil {
var ret string
return ret
}
return *o.NameRaw
}
// GetNameRawOk returns a tuple with the NameRaw field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetNameRawOk() (*string, bool) {
if o == nil || o.NameRaw == nil {
return nil, false
}
return o.NameRaw, true
}
// HasNameRaw returns a boolean if a field has been set.
func (o *InstanceClassifier) HasNameRaw() bool {
if o != nil && o.NameRaw != nil {
return true
}
return false
}
// SetNameRaw gets a reference to the given string and assigns it to the NameRaw field.
func (o *InstanceClassifier) SetNameRaw(v string) {
o.NameRaw = &v
}
// GetNumericId returns the NumericId field value if set, zero value otherwise.
func (o *InstanceClassifier) GetNumericId() int64 {
if o == nil || o.NumericId == nil {
var ret int64
return ret
}
return *o.NumericId
}
// GetNumericIdOk returns a tuple with the NumericId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetNumericIdOk() (*int64, bool) {
if o == nil || o.NumericId == nil {
return nil, false
}
return o.NumericId, true
}
// HasNumericId returns a boolean if a field has been set.
func (o *InstanceClassifier) HasNumericId() bool {
if o != nil && o.NumericId != nil {
return true
}
return false
}
// SetNumericId gets a reference to the given int64 and assigns it to the NumericId field.
func (o *InstanceClassifier) SetNumericId(v int64) {
o.NumericId = &v
}
// GetPackID returns the PackID field value if set, zero value otherwise.
func (o *InstanceClassifier) GetPackID() string {
if o == nil || o.PackID == nil {
var ret string
return ret
}
return *o.PackID
}
// GetPackIDOk returns a tuple with the PackID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetPackIDOk() (*string, bool) {
if o == nil || o.PackID == nil {
return nil, false
}
return o.PackID, true
}
// HasPackID returns a boolean if a field has been set.
func (o *InstanceClassifier) HasPackID() bool {
if o != nil && o.PackID != nil {
return true
}
return false
}
// SetPackID gets a reference to the given string and assigns it to the PackID field.
func (o *InstanceClassifier) SetPackID(v string) {
o.PackID = &v
}
// GetPackPropagationLabels returns the PackPropagationLabels field value if set, zero value otherwise.
func (o *InstanceClassifier) GetPackPropagationLabels() []string {
if o == nil || o.PackPropagationLabels == nil {
var ret []string
return ret
}
return *o.PackPropagationLabels
}
// GetPackPropagationLabelsOk returns a tuple with the PackPropagationLabels field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetPackPropagationLabelsOk() (*[]string, bool) {
if o == nil || o.PackPropagationLabels == nil {
return nil, false
}
return o.PackPropagationLabels, true
}
// HasPackPropagationLabels returns a boolean if a field has been set.
func (o *InstanceClassifier) HasPackPropagationLabels() bool {
if o != nil && o.PackPropagationLabels != nil {
return true
}
return false
}
// SetPackPropagationLabels gets a reference to the given []string and assigns it to the PackPropagationLabels field.
func (o *InstanceClassifier) SetPackPropagationLabels(v []string) {
o.PackPropagationLabels = &v
}
// GetPrevName returns the PrevName field value if set, zero value otherwise.
func (o *InstanceClassifier) GetPrevName() string {
if o == nil || o.PrevName == nil {
var ret string
return ret
}
return *o.PrevName
}
// GetPrevNameOk returns a tuple with the PrevName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetPrevNameOk() (*string, bool) {
if o == nil || o.PrevName == nil {
return nil, false
}
return o.PrevName, true
}
// HasPrevName returns a boolean if a field has been set.
func (o *InstanceClassifier) HasPrevName() bool {
if o != nil && o.PrevName != nil {
return true
}
return false
}
// SetPrevName gets a reference to the given string and assigns it to the PrevName field.
func (o *InstanceClassifier) SetPrevName(v string) {
o.PrevName = &v
}
// GetPrimaryTerm returns the PrimaryTerm field value if set, zero value otherwise.
func (o *InstanceClassifier) GetPrimaryTerm() int64 {
if o == nil || o.PrimaryTerm == nil {
var ret int64
return ret
}
return *o.PrimaryTerm
}
// GetPrimaryTermOk returns a tuple with the PrimaryTerm field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetPrimaryTermOk() (*int64, bool) {
if o == nil || o.PrimaryTerm == nil {
return nil, false
}
return o.PrimaryTerm, true
}
// HasPrimaryTerm returns a boolean if a field has been set.
func (o *InstanceClassifier) HasPrimaryTerm() bool {
if o != nil && o.PrimaryTerm != nil {
return true
}
return false
}
// SetPrimaryTerm gets a reference to the given int64 and assigns it to the PrimaryTerm field.
func (o *InstanceClassifier) SetPrimaryTerm(v int64) {
o.PrimaryTerm = &v
}
// GetPropagationLabels returns the PropagationLabels field value if set, zero value otherwise.
func (o *InstanceClassifier) GetPropagationLabels() []string {
if o == nil || o.PropagationLabels == nil {
var ret []string
return ret
}
return *o.PropagationLabels
}
// GetPropagationLabelsOk returns a tuple with the PropagationLabels field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetPropagationLabelsOk() (*[]string, bool) {
if o == nil || o.PropagationLabels == nil {
return nil, false
}
return o.PropagationLabels, true
}
// HasPropagationLabels returns a boolean if a field has been set.
func (o *InstanceClassifier) HasPropagationLabels() bool {
if o != nil && o.PropagationLabels != nil {
return true
}
return false
}
// SetPropagationLabels gets a reference to the given []string and assigns it to the PropagationLabels field.
func (o *InstanceClassifier) SetPropagationLabels(v []string) {
o.PropagationLabels = &v
}
// GetSequenceNumber returns the SequenceNumber field value if set, zero value otherwise.
func (o *InstanceClassifier) GetSequenceNumber() int64 {
if o == nil || o.SequenceNumber == nil {
var ret int64
return ret
}
return *o.SequenceNumber
}
// GetSequenceNumberOk returns a tuple with the SequenceNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetSequenceNumberOk() (*int64, bool) {
if o == nil || o.SequenceNumber == nil {
return nil, false
}
return o.SequenceNumber, true
}
// HasSequenceNumber returns a boolean if a field has been set.
func (o *InstanceClassifier) HasSequenceNumber() bool {
if o != nil && o.SequenceNumber != nil {
return true
}
return false
}
// SetSequenceNumber gets a reference to the given int64 and assigns it to the SequenceNumber field.
func (o *InstanceClassifier) SetSequenceNumber(v int64) {
o.SequenceNumber = &v
}
// GetShouldCommit returns the ShouldCommit field value if set, zero value otherwise.
func (o *InstanceClassifier) GetShouldCommit() bool {
if o == nil || o.ShouldCommit == nil {
var ret bool
return ret
}
return *o.ShouldCommit
}
// GetShouldCommitOk returns a tuple with the ShouldCommit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetShouldCommitOk() (*bool, bool) {
if o == nil || o.ShouldCommit == nil {
return nil, false
}
return o.ShouldCommit, true
}
// HasShouldCommit returns a boolean if a field has been set.
func (o *InstanceClassifier) HasShouldCommit() bool {
if o != nil && o.ShouldCommit != nil {
return true
}
return false
}
// SetShouldCommit gets a reference to the given bool and assigns it to the ShouldCommit field.
func (o *InstanceClassifier) SetShouldCommit(v bool) {
o.ShouldCommit = &v
}
// GetSortValues returns the SortValues field value if set, zero value otherwise.
func (o *InstanceClassifier) GetSortValues() []string {
if o == nil || o.SortValues == nil {
var ret []string
return ret
}
return *o.SortValues
}
// GetSortValuesOk returns a tuple with the SortValues field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetSortValuesOk() (*[]string, bool) {
if o == nil || o.SortValues == nil {
return nil, false
}
return o.SortValues, true
}
// HasSortValues returns a boolean if a field has been set.
func (o *InstanceClassifier) HasSortValues() bool {
if o != nil && o.SortValues != nil {
return true
}
return false
}
// SetSortValues gets a reference to the given []string and assigns it to the SortValues field.
func (o *InstanceClassifier) SetSortValues(v []string) {
o.SortValues = &v
}
// GetSourceClassifierId returns the SourceClassifierId field value if set, zero value otherwise.
func (o *InstanceClassifier) GetSourceClassifierId() string {
if o == nil || o.SourceClassifierId == nil {
var ret string
return ret
}
return *o.SourceClassifierId
}
// GetSourceClassifierIdOk returns a tuple with the SourceClassifierId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceClassifier) GetSourceClassifierIdOk() (*string, bool) {
if o == nil || o.SourceClassifierId == nil {
return nil, false
}
return o.SourceClassifierId, true
}
// HasSourceClassifierId returns a boolean if a field has been set.
func (o *InstanceClassifier) HasSourceClassifierId() bool {
if o != nil && o.SourceClassifierId != nil {
return true
}
return false
}