-
Notifications
You must be signed in to change notification settings - Fork 2
/
model_artifact.go
881 lines (754 loc) · 26 KB
/
model_artifact.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
/*
DFIRTrack
OpenAPI 3 - Documentation of DFIRTrack API
API version: v2.4.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package dfirtrackapi
import (
"encoding/json"
"time"
)
// Artifact struct for Artifact
type Artifact struct {
ArtifactId *int32 `json:"artifact_id,omitempty"`
ArtifactUuid *string `json:"artifact_uuid,omitempty"`
ArtifactName string `json:"artifact_name"`
Artifactpriority *int32 `json:"artifactpriority,omitempty"`
Artifactstatus *int32 `json:"artifactstatus,omitempty"`
Artifacttype int32 `json:"artifacttype"`
Case NullableInt32 `json:"case,omitempty"`
System int32 `json:"system"`
Tag []int32 `json:"tag,omitempty"`
ArtifactMd5 NullableString `json:"artifact_md5,omitempty"`
ArtifactSha1 NullableString `json:"artifact_sha1,omitempty"`
ArtifactSha256 NullableString `json:"artifact_sha256,omitempty"`
ArtifactSourcePath NullableString `json:"artifact_source_path,omitempty"`
ArtifactStoragePath *string `json:"artifact_storage_path,omitempty"`
ArtifactAcquisitionTime NullableTime `json:"artifact_acquisition_time,omitempty"`
ArtifactRequestedTime NullableTime `json:"artifact_requested_time,omitempty"`
ArtifactCreateTime *time.Time `json:"artifact_create_time,omitempty"`
ArtifactCreatedByUserId int32 `json:"artifact_created_by_user_id"`
ArtifactModifyTime *time.Time `json:"artifact_modify_time,omitempty"`
ArtifactModifiedByUserId int32 `json:"artifact_modified_by_user_id"`
ArtifactAssignedToUserId NullableInt32 `json:"artifact_assigned_to_user_id,omitempty"`
}
// NewArtifact instantiates a new Artifact 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 NewArtifact(artifactName string, artifacttype int32, system int32, artifactCreatedByUserId int32, artifactModifiedByUserId int32) *Artifact {
this := Artifact{}
this.ArtifactName = artifactName
this.Artifacttype = artifacttype
this.System = system
this.ArtifactCreatedByUserId = artifactCreatedByUserId
this.ArtifactModifiedByUserId = artifactModifiedByUserId
return &this
}
// NewArtifactWithDefaults instantiates a new Artifact 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 NewArtifactWithDefaults() *Artifact {
this := Artifact{}
return &this
}
// GetArtifactId returns the ArtifactId field value if set, zero value otherwise.
func (o *Artifact) GetArtifactId() int32 {
if o == nil || o.ArtifactId == nil {
var ret int32
return ret
}
return *o.ArtifactId
}
// GetArtifactIdOk returns a tuple with the ArtifactId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifactIdOk() (*int32, bool) {
if o == nil || o.ArtifactId == nil {
return nil, false
}
return o.ArtifactId, true
}
// HasArtifactId returns a boolean if a field has been set.
func (o *Artifact) HasArtifactId() bool {
if o != nil && o.ArtifactId != nil {
return true
}
return false
}
// SetArtifactId gets a reference to the given int32 and assigns it to the ArtifactId field.
func (o *Artifact) SetArtifactId(v int32) {
o.ArtifactId = &v
}
// GetArtifactUuid returns the ArtifactUuid field value if set, zero value otherwise.
func (o *Artifact) GetArtifactUuid() string {
if o == nil || o.ArtifactUuid == nil {
var ret string
return ret
}
return *o.ArtifactUuid
}
// GetArtifactUuidOk returns a tuple with the ArtifactUuid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifactUuidOk() (*string, bool) {
if o == nil || o.ArtifactUuid == nil {
return nil, false
}
return o.ArtifactUuid, true
}
// HasArtifactUuid returns a boolean if a field has been set.
func (o *Artifact) HasArtifactUuid() bool {
if o != nil && o.ArtifactUuid != nil {
return true
}
return false
}
// SetArtifactUuid gets a reference to the given string and assigns it to the ArtifactUuid field.
func (o *Artifact) SetArtifactUuid(v string) {
o.ArtifactUuid = &v
}
// GetArtifactName returns the ArtifactName field value
func (o *Artifact) GetArtifactName() string {
if o == nil {
var ret string
return ret
}
return o.ArtifactName
}
// GetArtifactNameOk returns a tuple with the ArtifactName field value
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifactNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ArtifactName, true
}
// SetArtifactName sets field value
func (o *Artifact) SetArtifactName(v string) {
o.ArtifactName = v
}
// GetArtifactpriority returns the Artifactpriority field value if set, zero value otherwise.
func (o *Artifact) GetArtifactpriority() int32 {
if o == nil || o.Artifactpriority == nil {
var ret int32
return ret
}
return *o.Artifactpriority
}
// GetArtifactpriorityOk returns a tuple with the Artifactpriority field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifactpriorityOk() (*int32, bool) {
if o == nil || o.Artifactpriority == nil {
return nil, false
}
return o.Artifactpriority, true
}
// HasArtifactpriority returns a boolean if a field has been set.
func (o *Artifact) HasArtifactpriority() bool {
if o != nil && o.Artifactpriority != nil {
return true
}
return false
}
// SetArtifactpriority gets a reference to the given int32 and assigns it to the Artifactpriority field.
func (o *Artifact) SetArtifactpriority(v int32) {
o.Artifactpriority = &v
}
// GetArtifactstatus returns the Artifactstatus field value if set, zero value otherwise.
func (o *Artifact) GetArtifactstatus() int32 {
if o == nil || o.Artifactstatus == nil {
var ret int32
return ret
}
return *o.Artifactstatus
}
// GetArtifactstatusOk returns a tuple with the Artifactstatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifactstatusOk() (*int32, bool) {
if o == nil || o.Artifactstatus == nil {
return nil, false
}
return o.Artifactstatus, true
}
// HasArtifactstatus returns a boolean if a field has been set.
func (o *Artifact) HasArtifactstatus() bool {
if o != nil && o.Artifactstatus != nil {
return true
}
return false
}
// SetArtifactstatus gets a reference to the given int32 and assigns it to the Artifactstatus field.
func (o *Artifact) SetArtifactstatus(v int32) {
o.Artifactstatus = &v
}
// GetArtifacttype returns the Artifacttype field value
func (o *Artifact) GetArtifacttype() int32 {
if o == nil {
var ret int32
return ret
}
return o.Artifacttype
}
// GetArtifacttypeOk returns a tuple with the Artifacttype field value
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifacttypeOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.Artifacttype, true
}
// SetArtifacttype sets field value
func (o *Artifact) SetArtifacttype(v int32) {
o.Artifacttype = v
}
// GetCase returns the Case field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Artifact) GetCase() int32 {
if o == nil || o.Case.Get() == nil {
var ret int32
return ret
}
return *o.Case.Get()
}
// GetCaseOk returns a tuple with the Case 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 *Artifact) GetCaseOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.Case.Get(), o.Case.IsSet()
}
// HasCase returns a boolean if a field has been set.
func (o *Artifact) HasCase() bool {
if o != nil && o.Case.IsSet() {
return true
}
return false
}
// SetCase gets a reference to the given NullableInt32 and assigns it to the Case field.
func (o *Artifact) SetCase(v int32) {
o.Case.Set(&v)
}
// SetCaseNil sets the value for Case to be an explicit nil
func (o *Artifact) SetCaseNil() {
o.Case.Set(nil)
}
// UnsetCase ensures that no value is present for Case, not even an explicit nil
func (o *Artifact) UnsetCase() {
o.Case.Unset()
}
// GetSystem returns the System field value
func (o *Artifact) GetSystem() int32 {
if o == nil {
var ret int32
return ret
}
return o.System
}
// GetSystemOk returns a tuple with the System field value
// and a boolean to check if the value has been set.
func (o *Artifact) GetSystemOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.System, true
}
// SetSystem sets field value
func (o *Artifact) SetSystem(v int32) {
o.System = v
}
// GetTag returns the Tag field value if set, zero value otherwise.
func (o *Artifact) GetTag() []int32 {
if o == nil || o.Tag == nil {
var ret []int32
return ret
}
return o.Tag
}
// GetTagOk returns a tuple with the Tag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Artifact) GetTagOk() ([]int32, bool) {
if o == nil || o.Tag == nil {
return nil, false
}
return o.Tag, true
}
// HasTag returns a boolean if a field has been set.
func (o *Artifact) HasTag() bool {
if o != nil && o.Tag != nil {
return true
}
return false
}
// SetTag gets a reference to the given []int32 and assigns it to the Tag field.
func (o *Artifact) SetTag(v []int32) {
o.Tag = v
}
// GetArtifactMd5 returns the ArtifactMd5 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Artifact) GetArtifactMd5() string {
if o == nil || o.ArtifactMd5.Get() == nil {
var ret string
return ret
}
return *o.ArtifactMd5.Get()
}
// GetArtifactMd5Ok returns a tuple with the ArtifactMd5 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 *Artifact) GetArtifactMd5Ok() (*string, bool) {
if o == nil {
return nil, false
}
return o.ArtifactMd5.Get(), o.ArtifactMd5.IsSet()
}
// HasArtifactMd5 returns a boolean if a field has been set.
func (o *Artifact) HasArtifactMd5() bool {
if o != nil && o.ArtifactMd5.IsSet() {
return true
}
return false
}
// SetArtifactMd5 gets a reference to the given NullableString and assigns it to the ArtifactMd5 field.
func (o *Artifact) SetArtifactMd5(v string) {
o.ArtifactMd5.Set(&v)
}
// SetArtifactMd5Nil sets the value for ArtifactMd5 to be an explicit nil
func (o *Artifact) SetArtifactMd5Nil() {
o.ArtifactMd5.Set(nil)
}
// UnsetArtifactMd5 ensures that no value is present for ArtifactMd5, not even an explicit nil
func (o *Artifact) UnsetArtifactMd5() {
o.ArtifactMd5.Unset()
}
// GetArtifactSha1 returns the ArtifactSha1 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Artifact) GetArtifactSha1() string {
if o == nil || o.ArtifactSha1.Get() == nil {
var ret string
return ret
}
return *o.ArtifactSha1.Get()
}
// GetArtifactSha1Ok returns a tuple with the ArtifactSha1 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 *Artifact) GetArtifactSha1Ok() (*string, bool) {
if o == nil {
return nil, false
}
return o.ArtifactSha1.Get(), o.ArtifactSha1.IsSet()
}
// HasArtifactSha1 returns a boolean if a field has been set.
func (o *Artifact) HasArtifactSha1() bool {
if o != nil && o.ArtifactSha1.IsSet() {
return true
}
return false
}
// SetArtifactSha1 gets a reference to the given NullableString and assigns it to the ArtifactSha1 field.
func (o *Artifact) SetArtifactSha1(v string) {
o.ArtifactSha1.Set(&v)
}
// SetArtifactSha1Nil sets the value for ArtifactSha1 to be an explicit nil
func (o *Artifact) SetArtifactSha1Nil() {
o.ArtifactSha1.Set(nil)
}
// UnsetArtifactSha1 ensures that no value is present for ArtifactSha1, not even an explicit nil
func (o *Artifact) UnsetArtifactSha1() {
o.ArtifactSha1.Unset()
}
// GetArtifactSha256 returns the ArtifactSha256 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Artifact) GetArtifactSha256() string {
if o == nil || o.ArtifactSha256.Get() == nil {
var ret string
return ret
}
return *o.ArtifactSha256.Get()
}
// GetArtifactSha256Ok returns a tuple with the ArtifactSha256 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 *Artifact) GetArtifactSha256Ok() (*string, bool) {
if o == nil {
return nil, false
}
return o.ArtifactSha256.Get(), o.ArtifactSha256.IsSet()
}
// HasArtifactSha256 returns a boolean if a field has been set.
func (o *Artifact) HasArtifactSha256() bool {
if o != nil && o.ArtifactSha256.IsSet() {
return true
}
return false
}
// SetArtifactSha256 gets a reference to the given NullableString and assigns it to the ArtifactSha256 field.
func (o *Artifact) SetArtifactSha256(v string) {
o.ArtifactSha256.Set(&v)
}
// SetArtifactSha256Nil sets the value for ArtifactSha256 to be an explicit nil
func (o *Artifact) SetArtifactSha256Nil() {
o.ArtifactSha256.Set(nil)
}
// UnsetArtifactSha256 ensures that no value is present for ArtifactSha256, not even an explicit nil
func (o *Artifact) UnsetArtifactSha256() {
o.ArtifactSha256.Unset()
}
// GetArtifactSourcePath returns the ArtifactSourcePath field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Artifact) GetArtifactSourcePath() string {
if o == nil || o.ArtifactSourcePath.Get() == nil {
var ret string
return ret
}
return *o.ArtifactSourcePath.Get()
}
// GetArtifactSourcePathOk returns a tuple with the ArtifactSourcePath 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 *Artifact) GetArtifactSourcePathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ArtifactSourcePath.Get(), o.ArtifactSourcePath.IsSet()
}
// HasArtifactSourcePath returns a boolean if a field has been set.
func (o *Artifact) HasArtifactSourcePath() bool {
if o != nil && o.ArtifactSourcePath.IsSet() {
return true
}
return false
}
// SetArtifactSourcePath gets a reference to the given NullableString and assigns it to the ArtifactSourcePath field.
func (o *Artifact) SetArtifactSourcePath(v string) {
o.ArtifactSourcePath.Set(&v)
}
// SetArtifactSourcePathNil sets the value for ArtifactSourcePath to be an explicit nil
func (o *Artifact) SetArtifactSourcePathNil() {
o.ArtifactSourcePath.Set(nil)
}
// UnsetArtifactSourcePath ensures that no value is present for ArtifactSourcePath, not even an explicit nil
func (o *Artifact) UnsetArtifactSourcePath() {
o.ArtifactSourcePath.Unset()
}
// GetArtifactStoragePath returns the ArtifactStoragePath field value if set, zero value otherwise.
func (o *Artifact) GetArtifactStoragePath() string {
if o == nil || o.ArtifactStoragePath == nil {
var ret string
return ret
}
return *o.ArtifactStoragePath
}
// GetArtifactStoragePathOk returns a tuple with the ArtifactStoragePath field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifactStoragePathOk() (*string, bool) {
if o == nil || o.ArtifactStoragePath == nil {
return nil, false
}
return o.ArtifactStoragePath, true
}
// HasArtifactStoragePath returns a boolean if a field has been set.
func (o *Artifact) HasArtifactStoragePath() bool {
if o != nil && o.ArtifactStoragePath != nil {
return true
}
return false
}
// SetArtifactStoragePath gets a reference to the given string and assigns it to the ArtifactStoragePath field.
func (o *Artifact) SetArtifactStoragePath(v string) {
o.ArtifactStoragePath = &v
}
// GetArtifactAcquisitionTime returns the ArtifactAcquisitionTime field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Artifact) GetArtifactAcquisitionTime() time.Time {
if o == nil || o.ArtifactAcquisitionTime.Get() == nil {
var ret time.Time
return ret
}
return *o.ArtifactAcquisitionTime.Get()
}
// GetArtifactAcquisitionTimeOk returns a tuple with the ArtifactAcquisitionTime 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 *Artifact) GetArtifactAcquisitionTimeOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.ArtifactAcquisitionTime.Get(), o.ArtifactAcquisitionTime.IsSet()
}
// HasArtifactAcquisitionTime returns a boolean if a field has been set.
func (o *Artifact) HasArtifactAcquisitionTime() bool {
if o != nil && o.ArtifactAcquisitionTime.IsSet() {
return true
}
return false
}
// SetArtifactAcquisitionTime gets a reference to the given NullableTime and assigns it to the ArtifactAcquisitionTime field.
func (o *Artifact) SetArtifactAcquisitionTime(v time.Time) {
o.ArtifactAcquisitionTime.Set(&v)
}
// SetArtifactAcquisitionTimeNil sets the value for ArtifactAcquisitionTime to be an explicit nil
func (o *Artifact) SetArtifactAcquisitionTimeNil() {
o.ArtifactAcquisitionTime.Set(nil)
}
// UnsetArtifactAcquisitionTime ensures that no value is present for ArtifactAcquisitionTime, not even an explicit nil
func (o *Artifact) UnsetArtifactAcquisitionTime() {
o.ArtifactAcquisitionTime.Unset()
}
// GetArtifactRequestedTime returns the ArtifactRequestedTime field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Artifact) GetArtifactRequestedTime() time.Time {
if o == nil || o.ArtifactRequestedTime.Get() == nil {
var ret time.Time
return ret
}
return *o.ArtifactRequestedTime.Get()
}
// GetArtifactRequestedTimeOk returns a tuple with the ArtifactRequestedTime 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 *Artifact) GetArtifactRequestedTimeOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.ArtifactRequestedTime.Get(), o.ArtifactRequestedTime.IsSet()
}
// HasArtifactRequestedTime returns a boolean if a field has been set.
func (o *Artifact) HasArtifactRequestedTime() bool {
if o != nil && o.ArtifactRequestedTime.IsSet() {
return true
}
return false
}
// SetArtifactRequestedTime gets a reference to the given NullableTime and assigns it to the ArtifactRequestedTime field.
func (o *Artifact) SetArtifactRequestedTime(v time.Time) {
o.ArtifactRequestedTime.Set(&v)
}
// SetArtifactRequestedTimeNil sets the value for ArtifactRequestedTime to be an explicit nil
func (o *Artifact) SetArtifactRequestedTimeNil() {
o.ArtifactRequestedTime.Set(nil)
}
// UnsetArtifactRequestedTime ensures that no value is present for ArtifactRequestedTime, not even an explicit nil
func (o *Artifact) UnsetArtifactRequestedTime() {
o.ArtifactRequestedTime.Unset()
}
// GetArtifactCreateTime returns the ArtifactCreateTime field value if set, zero value otherwise.
func (o *Artifact) GetArtifactCreateTime() time.Time {
if o == nil || o.ArtifactCreateTime == nil {
var ret time.Time
return ret
}
return *o.ArtifactCreateTime
}
// GetArtifactCreateTimeOk returns a tuple with the ArtifactCreateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifactCreateTimeOk() (*time.Time, bool) {
if o == nil || o.ArtifactCreateTime == nil {
return nil, false
}
return o.ArtifactCreateTime, true
}
// HasArtifactCreateTime returns a boolean if a field has been set.
func (o *Artifact) HasArtifactCreateTime() bool {
if o != nil && o.ArtifactCreateTime != nil {
return true
}
return false
}
// SetArtifactCreateTime gets a reference to the given time.Time and assigns it to the ArtifactCreateTime field.
func (o *Artifact) SetArtifactCreateTime(v time.Time) {
o.ArtifactCreateTime = &v
}
// GetArtifactCreatedByUserId returns the ArtifactCreatedByUserId field value
func (o *Artifact) GetArtifactCreatedByUserId() int32 {
if o == nil {
var ret int32
return ret
}
return o.ArtifactCreatedByUserId
}
// GetArtifactCreatedByUserIdOk returns a tuple with the ArtifactCreatedByUserId field value
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifactCreatedByUserIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.ArtifactCreatedByUserId, true
}
// SetArtifactCreatedByUserId sets field value
func (o *Artifact) SetArtifactCreatedByUserId(v int32) {
o.ArtifactCreatedByUserId = v
}
// GetArtifactModifyTime returns the ArtifactModifyTime field value if set, zero value otherwise.
func (o *Artifact) GetArtifactModifyTime() time.Time {
if o == nil || o.ArtifactModifyTime == nil {
var ret time.Time
return ret
}
return *o.ArtifactModifyTime
}
// GetArtifactModifyTimeOk returns a tuple with the ArtifactModifyTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifactModifyTimeOk() (*time.Time, bool) {
if o == nil || o.ArtifactModifyTime == nil {
return nil, false
}
return o.ArtifactModifyTime, true
}
// HasArtifactModifyTime returns a boolean if a field has been set.
func (o *Artifact) HasArtifactModifyTime() bool {
if o != nil && o.ArtifactModifyTime != nil {
return true
}
return false
}
// SetArtifactModifyTime gets a reference to the given time.Time and assigns it to the ArtifactModifyTime field.
func (o *Artifact) SetArtifactModifyTime(v time.Time) {
o.ArtifactModifyTime = &v
}
// GetArtifactModifiedByUserId returns the ArtifactModifiedByUserId field value
func (o *Artifact) GetArtifactModifiedByUserId() int32 {
if o == nil {
var ret int32
return ret
}
return o.ArtifactModifiedByUserId
}
// GetArtifactModifiedByUserIdOk returns a tuple with the ArtifactModifiedByUserId field value
// and a boolean to check if the value has been set.
func (o *Artifact) GetArtifactModifiedByUserIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.ArtifactModifiedByUserId, true
}
// SetArtifactModifiedByUserId sets field value
func (o *Artifact) SetArtifactModifiedByUserId(v int32) {
o.ArtifactModifiedByUserId = v
}
// GetArtifactAssignedToUserId returns the ArtifactAssignedToUserId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Artifact) GetArtifactAssignedToUserId() int32 {
if o == nil || o.ArtifactAssignedToUserId.Get() == nil {
var ret int32
return ret
}
return *o.ArtifactAssignedToUserId.Get()
}
// GetArtifactAssignedToUserIdOk returns a tuple with the ArtifactAssignedToUserId 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 *Artifact) GetArtifactAssignedToUserIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.ArtifactAssignedToUserId.Get(), o.ArtifactAssignedToUserId.IsSet()
}
// HasArtifactAssignedToUserId returns a boolean if a field has been set.
func (o *Artifact) HasArtifactAssignedToUserId() bool {
if o != nil && o.ArtifactAssignedToUserId.IsSet() {
return true
}
return false
}
// SetArtifactAssignedToUserId gets a reference to the given NullableInt32 and assigns it to the ArtifactAssignedToUserId field.
func (o *Artifact) SetArtifactAssignedToUserId(v int32) {
o.ArtifactAssignedToUserId.Set(&v)
}
// SetArtifactAssignedToUserIdNil sets the value for ArtifactAssignedToUserId to be an explicit nil
func (o *Artifact) SetArtifactAssignedToUserIdNil() {
o.ArtifactAssignedToUserId.Set(nil)
}
// UnsetArtifactAssignedToUserId ensures that no value is present for ArtifactAssignedToUserId, not even an explicit nil
func (o *Artifact) UnsetArtifactAssignedToUserId() {
o.ArtifactAssignedToUserId.Unset()
}
func (o Artifact) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.ArtifactId != nil {
toSerialize["artifact_id"] = o.ArtifactId
}
if o.ArtifactUuid != nil {
toSerialize["artifact_uuid"] = o.ArtifactUuid
}
if true {
toSerialize["artifact_name"] = o.ArtifactName
}
if o.Artifactpriority != nil {
toSerialize["artifactpriority"] = o.Artifactpriority
}
if o.Artifactstatus != nil {
toSerialize["artifactstatus"] = o.Artifactstatus
}
if true {
toSerialize["artifacttype"] = o.Artifacttype
}
if o.Case.IsSet() {
toSerialize["case"] = o.Case.Get()
}
if true {
toSerialize["system"] = o.System
}
if o.Tag != nil {
toSerialize["tag"] = o.Tag
}
if o.ArtifactMd5.IsSet() {
toSerialize["artifact_md5"] = o.ArtifactMd5.Get()
}
if o.ArtifactSha1.IsSet() {
toSerialize["artifact_sha1"] = o.ArtifactSha1.Get()
}
if o.ArtifactSha256.IsSet() {
toSerialize["artifact_sha256"] = o.ArtifactSha256.Get()
}
if o.ArtifactSourcePath.IsSet() {
toSerialize["artifact_source_path"] = o.ArtifactSourcePath.Get()
}
if o.ArtifactStoragePath != nil {
toSerialize["artifact_storage_path"] = o.ArtifactStoragePath
}
if o.ArtifactAcquisitionTime.IsSet() {
toSerialize["artifact_acquisition_time"] = o.ArtifactAcquisitionTime.Get()
}
if o.ArtifactRequestedTime.IsSet() {
toSerialize["artifact_requested_time"] = o.ArtifactRequestedTime.Get()
}
if o.ArtifactCreateTime != nil {
toSerialize["artifact_create_time"] = o.ArtifactCreateTime
}
if true {
toSerialize["artifact_created_by_user_id"] = o.ArtifactCreatedByUserId
}
if o.ArtifactModifyTime != nil {
toSerialize["artifact_modify_time"] = o.ArtifactModifyTime
}
if true {
toSerialize["artifact_modified_by_user_id"] = o.ArtifactModifiedByUserId
}
if o.ArtifactAssignedToUserId.IsSet() {
toSerialize["artifact_assigned_to_user_id"] = o.ArtifactAssignedToUserId.Get()
}
return json.Marshal(toSerialize)
}
type NullableArtifact struct {
value *Artifact
isSet bool
}
func (v NullableArtifact) Get() *Artifact {
return v.value
}
func (v *NullableArtifact) Set(val *Artifact) {
v.value = val
v.isSet = true
}
func (v NullableArtifact) IsSet() bool {
return v.isSet
}
func (v *NullableArtifact) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableArtifact(val *Artifact) *NullableArtifact {
return &NullableArtifact{value: val, isSet: true}
}
func (v NullableArtifact) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableArtifact) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}