-
Notifications
You must be signed in to change notification settings - Fork 3
/
model_pending_approval.go
818 lines (696 loc) · 24.9 KB
/
model_pending_approval.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
/*
IdentityNow V3 API
Use these APIs to interact with the IdentityNow platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
API version: 3.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointsdk
import (
"encoding/json"
"time"
)
// PendingApproval struct for PendingApproval
type PendingApproval struct {
// The approval id.
Id *string `json:"id,omitempty"`
// The name of the approval.
Name *string `json:"name,omitempty"`
// When the approval was created.
Created *time.Time `json:"created,omitempty"`
// When the approval was modified last time.
Modified *time.Time `json:"modified,omitempty"`
// When the access-request was created.
RequestCreated *time.Time `json:"requestCreated,omitempty"`
RequestType *AccessRequestType `json:"requestType,omitempty"`
Requester *BaseReferenceDto `json:"requester,omitempty"`
RequestedFor *BaseReferenceDto `json:"requestedFor,omitempty"`
Owner *BaseReferenceDto `json:"owner,omitempty"`
RequestedObject *RequestableObjectReference `json:"requestedObject,omitempty"`
RequesterComment *CommentDto `json:"requesterComment,omitempty"`
// The history of the previous reviewers comments.
PreviousReviewersComments []CommentDto `json:"previousReviewersComments,omitempty"`
// The history of approval forward action.
ForwardHistory []ApprovalForwardHistory `json:"forwardHistory,omitempty"`
// When true the rejector has to provide comments when rejecting
CommentRequiredWhenRejected *bool `json:"commentRequiredWhenRejected,omitempty"`
ActionInProcess *PendingApprovalAction `json:"actionInProcess,omitempty"`
// The date the role or access profile is no longer assigned to the specified identity.
RemoveDate *time.Time `json:"removeDate,omitempty"`
// If true, then the request is to change the remove date or sunset date.
RemoveDateUpdateRequested *bool `json:"removeDateUpdateRequested,omitempty"`
// The remove date or sunset date that was assigned at the time of the request.
CurrentRemoveDate *time.Time `json:"currentRemoveDate,omitempty"`
SodViolationContext *SodViolationContextCheckCompleted `json:"sodViolationContext,omitempty"`
AdditionalProperties map[string]interface{}
}
type _PendingApproval PendingApproval
// NewPendingApproval instantiates a new PendingApproval 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 NewPendingApproval() *PendingApproval {
this := PendingApproval{}
return &this
}
// NewPendingApprovalWithDefaults instantiates a new PendingApproval 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 NewPendingApprovalWithDefaults() *PendingApproval {
this := PendingApproval{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *PendingApproval) GetId() string {
if o == nil || isNil(o.Id) {
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 *PendingApproval) GetIdOk() (*string, bool) {
if o == nil || isNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *PendingApproval) HasId() bool {
if o != nil && !isNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *PendingApproval) SetId(v string) {
o.Id = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *PendingApproval) GetName() string {
if o == nil || isNil(o.Name) {
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 *PendingApproval) GetNameOk() (*string, bool) {
if o == nil || isNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *PendingApproval) HasName() bool {
if o != nil && !isNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *PendingApproval) SetName(v string) {
o.Name = &v
}
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *PendingApproval) GetCreated() time.Time {
if o == nil || isNil(o.Created) {
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 *PendingApproval) GetCreatedOk() (*time.Time, bool) {
if o == nil || isNil(o.Created) {
return nil, false
}
return o.Created, true
}
// HasCreated returns a boolean if a field has been set.
func (o *PendingApproval) HasCreated() bool {
if o != nil && !isNil(o.Created) {
return true
}
return false
}
// SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *PendingApproval) SetCreated(v time.Time) {
o.Created = &v
}
// GetModified returns the Modified field value if set, zero value otherwise.
func (o *PendingApproval) GetModified() time.Time {
if o == nil || isNil(o.Modified) {
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 *PendingApproval) GetModifiedOk() (*time.Time, bool) {
if o == nil || isNil(o.Modified) {
return nil, false
}
return o.Modified, true
}
// HasModified returns a boolean if a field has been set.
func (o *PendingApproval) HasModified() bool {
if o != nil && !isNil(o.Modified) {
return true
}
return false
}
// SetModified gets a reference to the given time.Time and assigns it to the Modified field.
func (o *PendingApproval) SetModified(v time.Time) {
o.Modified = &v
}
// GetRequestCreated returns the RequestCreated field value if set, zero value otherwise.
func (o *PendingApproval) GetRequestCreated() time.Time {
if o == nil || isNil(o.RequestCreated) {
var ret time.Time
return ret
}
return *o.RequestCreated
}
// GetRequestCreatedOk returns a tuple with the RequestCreated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetRequestCreatedOk() (*time.Time, bool) {
if o == nil || isNil(o.RequestCreated) {
return nil, false
}
return o.RequestCreated, true
}
// HasRequestCreated returns a boolean if a field has been set.
func (o *PendingApproval) HasRequestCreated() bool {
if o != nil && !isNil(o.RequestCreated) {
return true
}
return false
}
// SetRequestCreated gets a reference to the given time.Time and assigns it to the RequestCreated field.
func (o *PendingApproval) SetRequestCreated(v time.Time) {
o.RequestCreated = &v
}
// GetRequestType returns the RequestType field value if set, zero value otherwise.
func (o *PendingApproval) GetRequestType() AccessRequestType {
if o == nil || isNil(o.RequestType) {
var ret AccessRequestType
return ret
}
return *o.RequestType
}
// GetRequestTypeOk returns a tuple with the RequestType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetRequestTypeOk() (*AccessRequestType, bool) {
if o == nil || isNil(o.RequestType) {
return nil, false
}
return o.RequestType, true
}
// HasRequestType returns a boolean if a field has been set.
func (o *PendingApproval) HasRequestType() bool {
if o != nil && !isNil(o.RequestType) {
return true
}
return false
}
// SetRequestType gets a reference to the given AccessRequestType and assigns it to the RequestType field.
func (o *PendingApproval) SetRequestType(v AccessRequestType) {
o.RequestType = &v
}
// GetRequester returns the Requester field value if set, zero value otherwise.
func (o *PendingApproval) GetRequester() BaseReferenceDto {
if o == nil || isNil(o.Requester) {
var ret BaseReferenceDto
return ret
}
return *o.Requester
}
// GetRequesterOk returns a tuple with the Requester field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetRequesterOk() (*BaseReferenceDto, bool) {
if o == nil || isNil(o.Requester) {
return nil, false
}
return o.Requester, true
}
// HasRequester returns a boolean if a field has been set.
func (o *PendingApproval) HasRequester() bool {
if o != nil && !isNil(o.Requester) {
return true
}
return false
}
// SetRequester gets a reference to the given BaseReferenceDto and assigns it to the Requester field.
func (o *PendingApproval) SetRequester(v BaseReferenceDto) {
o.Requester = &v
}
// GetRequestedFor returns the RequestedFor field value if set, zero value otherwise.
func (o *PendingApproval) GetRequestedFor() BaseReferenceDto {
if o == nil || isNil(o.RequestedFor) {
var ret BaseReferenceDto
return ret
}
return *o.RequestedFor
}
// GetRequestedForOk returns a tuple with the RequestedFor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetRequestedForOk() (*BaseReferenceDto, bool) {
if o == nil || isNil(o.RequestedFor) {
return nil, false
}
return o.RequestedFor, true
}
// HasRequestedFor returns a boolean if a field has been set.
func (o *PendingApproval) HasRequestedFor() bool {
if o != nil && !isNil(o.RequestedFor) {
return true
}
return false
}
// SetRequestedFor gets a reference to the given BaseReferenceDto and assigns it to the RequestedFor field.
func (o *PendingApproval) SetRequestedFor(v BaseReferenceDto) {
o.RequestedFor = &v
}
// GetOwner returns the Owner field value if set, zero value otherwise.
func (o *PendingApproval) GetOwner() BaseReferenceDto {
if o == nil || isNil(o.Owner) {
var ret BaseReferenceDto
return ret
}
return *o.Owner
}
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetOwnerOk() (*BaseReferenceDto, bool) {
if o == nil || isNil(o.Owner) {
return nil, false
}
return o.Owner, true
}
// HasOwner returns a boolean if a field has been set.
func (o *PendingApproval) HasOwner() bool {
if o != nil && !isNil(o.Owner) {
return true
}
return false
}
// SetOwner gets a reference to the given BaseReferenceDto and assigns it to the Owner field.
func (o *PendingApproval) SetOwner(v BaseReferenceDto) {
o.Owner = &v
}
// GetRequestedObject returns the RequestedObject field value if set, zero value otherwise.
func (o *PendingApproval) GetRequestedObject() RequestableObjectReference {
if o == nil || isNil(o.RequestedObject) {
var ret RequestableObjectReference
return ret
}
return *o.RequestedObject
}
// GetRequestedObjectOk returns a tuple with the RequestedObject field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetRequestedObjectOk() (*RequestableObjectReference, bool) {
if o == nil || isNil(o.RequestedObject) {
return nil, false
}
return o.RequestedObject, true
}
// HasRequestedObject returns a boolean if a field has been set.
func (o *PendingApproval) HasRequestedObject() bool {
if o != nil && !isNil(o.RequestedObject) {
return true
}
return false
}
// SetRequestedObject gets a reference to the given RequestableObjectReference and assigns it to the RequestedObject field.
func (o *PendingApproval) SetRequestedObject(v RequestableObjectReference) {
o.RequestedObject = &v
}
// GetRequesterComment returns the RequesterComment field value if set, zero value otherwise.
func (o *PendingApproval) GetRequesterComment() CommentDto {
if o == nil || isNil(o.RequesterComment) {
var ret CommentDto
return ret
}
return *o.RequesterComment
}
// GetRequesterCommentOk returns a tuple with the RequesterComment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetRequesterCommentOk() (*CommentDto, bool) {
if o == nil || isNil(o.RequesterComment) {
return nil, false
}
return o.RequesterComment, true
}
// HasRequesterComment returns a boolean if a field has been set.
func (o *PendingApproval) HasRequesterComment() bool {
if o != nil && !isNil(o.RequesterComment) {
return true
}
return false
}
// SetRequesterComment gets a reference to the given CommentDto and assigns it to the RequesterComment field.
func (o *PendingApproval) SetRequesterComment(v CommentDto) {
o.RequesterComment = &v
}
// GetPreviousReviewersComments returns the PreviousReviewersComments field value if set, zero value otherwise.
func (o *PendingApproval) GetPreviousReviewersComments() []CommentDto {
if o == nil || isNil(o.PreviousReviewersComments) {
var ret []CommentDto
return ret
}
return o.PreviousReviewersComments
}
// GetPreviousReviewersCommentsOk returns a tuple with the PreviousReviewersComments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetPreviousReviewersCommentsOk() ([]CommentDto, bool) {
if o == nil || isNil(o.PreviousReviewersComments) {
return nil, false
}
return o.PreviousReviewersComments, true
}
// HasPreviousReviewersComments returns a boolean if a field has been set.
func (o *PendingApproval) HasPreviousReviewersComments() bool {
if o != nil && !isNil(o.PreviousReviewersComments) {
return true
}
return false
}
// SetPreviousReviewersComments gets a reference to the given []CommentDto and assigns it to the PreviousReviewersComments field.
func (o *PendingApproval) SetPreviousReviewersComments(v []CommentDto) {
o.PreviousReviewersComments = v
}
// GetForwardHistory returns the ForwardHistory field value if set, zero value otherwise.
func (o *PendingApproval) GetForwardHistory() []ApprovalForwardHistory {
if o == nil || isNil(o.ForwardHistory) {
var ret []ApprovalForwardHistory
return ret
}
return o.ForwardHistory
}
// GetForwardHistoryOk returns a tuple with the ForwardHistory field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetForwardHistoryOk() ([]ApprovalForwardHistory, bool) {
if o == nil || isNil(o.ForwardHistory) {
return nil, false
}
return o.ForwardHistory, true
}
// HasForwardHistory returns a boolean if a field has been set.
func (o *PendingApproval) HasForwardHistory() bool {
if o != nil && !isNil(o.ForwardHistory) {
return true
}
return false
}
// SetForwardHistory gets a reference to the given []ApprovalForwardHistory and assigns it to the ForwardHistory field.
func (o *PendingApproval) SetForwardHistory(v []ApprovalForwardHistory) {
o.ForwardHistory = v
}
// GetCommentRequiredWhenRejected returns the CommentRequiredWhenRejected field value if set, zero value otherwise.
func (o *PendingApproval) GetCommentRequiredWhenRejected() bool {
if o == nil || isNil(o.CommentRequiredWhenRejected) {
var ret bool
return ret
}
return *o.CommentRequiredWhenRejected
}
// GetCommentRequiredWhenRejectedOk returns a tuple with the CommentRequiredWhenRejected field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetCommentRequiredWhenRejectedOk() (*bool, bool) {
if o == nil || isNil(o.CommentRequiredWhenRejected) {
return nil, false
}
return o.CommentRequiredWhenRejected, true
}
// HasCommentRequiredWhenRejected returns a boolean if a field has been set.
func (o *PendingApproval) HasCommentRequiredWhenRejected() bool {
if o != nil && !isNil(o.CommentRequiredWhenRejected) {
return true
}
return false
}
// SetCommentRequiredWhenRejected gets a reference to the given bool and assigns it to the CommentRequiredWhenRejected field.
func (o *PendingApproval) SetCommentRequiredWhenRejected(v bool) {
o.CommentRequiredWhenRejected = &v
}
// GetActionInProcess returns the ActionInProcess field value if set, zero value otherwise.
func (o *PendingApproval) GetActionInProcess() PendingApprovalAction {
if o == nil || isNil(o.ActionInProcess) {
var ret PendingApprovalAction
return ret
}
return *o.ActionInProcess
}
// GetActionInProcessOk returns a tuple with the ActionInProcess field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetActionInProcessOk() (*PendingApprovalAction, bool) {
if o == nil || isNil(o.ActionInProcess) {
return nil, false
}
return o.ActionInProcess, true
}
// HasActionInProcess returns a boolean if a field has been set.
func (o *PendingApproval) HasActionInProcess() bool {
if o != nil && !isNil(o.ActionInProcess) {
return true
}
return false
}
// SetActionInProcess gets a reference to the given PendingApprovalAction and assigns it to the ActionInProcess field.
func (o *PendingApproval) SetActionInProcess(v PendingApprovalAction) {
o.ActionInProcess = &v
}
// GetRemoveDate returns the RemoveDate field value if set, zero value otherwise.
func (o *PendingApproval) GetRemoveDate() time.Time {
if o == nil || isNil(o.RemoveDate) {
var ret time.Time
return ret
}
return *o.RemoveDate
}
// GetRemoveDateOk returns a tuple with the RemoveDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetRemoveDateOk() (*time.Time, bool) {
if o == nil || isNil(o.RemoveDate) {
return nil, false
}
return o.RemoveDate, true
}
// HasRemoveDate returns a boolean if a field has been set.
func (o *PendingApproval) HasRemoveDate() bool {
if o != nil && !isNil(o.RemoveDate) {
return true
}
return false
}
// SetRemoveDate gets a reference to the given time.Time and assigns it to the RemoveDate field.
func (o *PendingApproval) SetRemoveDate(v time.Time) {
o.RemoveDate = &v
}
// GetRemoveDateUpdateRequested returns the RemoveDateUpdateRequested field value if set, zero value otherwise.
func (o *PendingApproval) GetRemoveDateUpdateRequested() bool {
if o == nil || isNil(o.RemoveDateUpdateRequested) {
var ret bool
return ret
}
return *o.RemoveDateUpdateRequested
}
// GetRemoveDateUpdateRequestedOk returns a tuple with the RemoveDateUpdateRequested field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetRemoveDateUpdateRequestedOk() (*bool, bool) {
if o == nil || isNil(o.RemoveDateUpdateRequested) {
return nil, false
}
return o.RemoveDateUpdateRequested, true
}
// HasRemoveDateUpdateRequested returns a boolean if a field has been set.
func (o *PendingApproval) HasRemoveDateUpdateRequested() bool {
if o != nil && !isNil(o.RemoveDateUpdateRequested) {
return true
}
return false
}
// SetRemoveDateUpdateRequested gets a reference to the given bool and assigns it to the RemoveDateUpdateRequested field.
func (o *PendingApproval) SetRemoveDateUpdateRequested(v bool) {
o.RemoveDateUpdateRequested = &v
}
// GetCurrentRemoveDate returns the CurrentRemoveDate field value if set, zero value otherwise.
func (o *PendingApproval) GetCurrentRemoveDate() time.Time {
if o == nil || isNil(o.CurrentRemoveDate) {
var ret time.Time
return ret
}
return *o.CurrentRemoveDate
}
// GetCurrentRemoveDateOk returns a tuple with the CurrentRemoveDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetCurrentRemoveDateOk() (*time.Time, bool) {
if o == nil || isNil(o.CurrentRemoveDate) {
return nil, false
}
return o.CurrentRemoveDate, true
}
// HasCurrentRemoveDate returns a boolean if a field has been set.
func (o *PendingApproval) HasCurrentRemoveDate() bool {
if o != nil && !isNil(o.CurrentRemoveDate) {
return true
}
return false
}
// SetCurrentRemoveDate gets a reference to the given time.Time and assigns it to the CurrentRemoveDate field.
func (o *PendingApproval) SetCurrentRemoveDate(v time.Time) {
o.CurrentRemoveDate = &v
}
// GetSodViolationContext returns the SodViolationContext field value if set, zero value otherwise.
func (o *PendingApproval) GetSodViolationContext() SodViolationContextCheckCompleted {
if o == nil || isNil(o.SodViolationContext) {
var ret SodViolationContextCheckCompleted
return ret
}
return *o.SodViolationContext
}
// GetSodViolationContextOk returns a tuple with the SodViolationContext field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PendingApproval) GetSodViolationContextOk() (*SodViolationContextCheckCompleted, bool) {
if o == nil || isNil(o.SodViolationContext) {
return nil, false
}
return o.SodViolationContext, true
}
// HasSodViolationContext returns a boolean if a field has been set.
func (o *PendingApproval) HasSodViolationContext() bool {
if o != nil && !isNil(o.SodViolationContext) {
return true
}
return false
}
// SetSodViolationContext gets a reference to the given SodViolationContextCheckCompleted and assigns it to the SodViolationContext field.
func (o *PendingApproval) SetSodViolationContext(v SodViolationContextCheckCompleted) {
o.SodViolationContext = &v
}
func (o PendingApproval) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.Id) {
toSerialize["id"] = o.Id
}
if !isNil(o.Name) {
toSerialize["name"] = o.Name
}
if !isNil(o.Created) {
toSerialize["created"] = o.Created
}
if !isNil(o.Modified) {
toSerialize["modified"] = o.Modified
}
if !isNil(o.RequestCreated) {
toSerialize["requestCreated"] = o.RequestCreated
}
if !isNil(o.RequestType) {
toSerialize["requestType"] = o.RequestType
}
if !isNil(o.Requester) {
toSerialize["requester"] = o.Requester
}
if !isNil(o.RequestedFor) {
toSerialize["requestedFor"] = o.RequestedFor
}
if !isNil(o.Owner) {
toSerialize["owner"] = o.Owner
}
if !isNil(o.RequestedObject) {
toSerialize["requestedObject"] = o.RequestedObject
}
if !isNil(o.RequesterComment) {
toSerialize["requesterComment"] = o.RequesterComment
}
if !isNil(o.PreviousReviewersComments) {
toSerialize["previousReviewersComments"] = o.PreviousReviewersComments
}
if !isNil(o.ForwardHistory) {
toSerialize["forwardHistory"] = o.ForwardHistory
}
if !isNil(o.CommentRequiredWhenRejected) {
toSerialize["commentRequiredWhenRejected"] = o.CommentRequiredWhenRejected
}
if !isNil(o.ActionInProcess) {
toSerialize["actionInProcess"] = o.ActionInProcess
}
if !isNil(o.RemoveDate) {
toSerialize["removeDate"] = o.RemoveDate
}
if !isNil(o.RemoveDateUpdateRequested) {
toSerialize["removeDateUpdateRequested"] = o.RemoveDateUpdateRequested
}
if !isNil(o.CurrentRemoveDate) {
toSerialize["currentRemoveDate"] = o.CurrentRemoveDate
}
if !isNil(o.SodViolationContext) {
toSerialize["sodViolationContext"] = o.SodViolationContext
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *PendingApproval) UnmarshalJSON(bytes []byte) (err error) {
varPendingApproval := _PendingApproval{}
if err = json.Unmarshal(bytes, &varPendingApproval); err == nil {
*o = PendingApproval(varPendingApproval)
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "name")
delete(additionalProperties, "created")
delete(additionalProperties, "modified")
delete(additionalProperties, "requestCreated")
delete(additionalProperties, "requestType")
delete(additionalProperties, "requester")
delete(additionalProperties, "requestedFor")
delete(additionalProperties, "owner")
delete(additionalProperties, "requestedObject")
delete(additionalProperties, "requesterComment")
delete(additionalProperties, "previousReviewersComments")
delete(additionalProperties, "forwardHistory")
delete(additionalProperties, "commentRequiredWhenRejected")
delete(additionalProperties, "actionInProcess")
delete(additionalProperties, "removeDate")
delete(additionalProperties, "removeDateUpdateRequested")
delete(additionalProperties, "currentRemoveDate")
delete(additionalProperties, "sodViolationContext")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullablePendingApproval struct {
value *PendingApproval
isSet bool
}
func (v NullablePendingApproval) Get() *PendingApproval {
return v.value
}
func (v *NullablePendingApproval) Set(val *PendingApproval) {
v.value = val
v.isSet = true
}
func (v NullablePendingApproval) IsSet() bool {
return v.isSet
}
func (v *NullablePendingApproval) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePendingApproval(val *PendingApproval) *NullablePendingApproval {
return &NullablePendingApproval{value: val, isSet: true}
}
func (v NullablePendingApproval) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePendingApproval) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}