-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_requested_item_status.go
1091 lines (933 loc) · 35.7 KB
/
model_requested_item_status.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
/*
Identity Security Cloud Beta API
Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. These APIs are in beta and are subject to change. 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.1.0-beta
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api_beta
import (
"encoding/json"
)
// checks if the RequestedItemStatus type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &RequestedItemStatus{}
// RequestedItemStatus struct for RequestedItemStatus
type RequestedItemStatus struct {
// Human-readable display name of the item being requested.
Name NullableString `json:"name,omitempty"`
// Type of requested object.
Type NullableString `json:"type,omitempty"`
CancelledRequestDetails *RequestedItemStatusCancelledRequestDetails `json:"cancelledRequestDetails,omitempty"`
// List of list of localized error messages, if any, encountered during the approval/provisioning process.
ErrorMessages [][]ErrorMessageDto `json:"errorMessages,omitempty"`
State *RequestedItemStatusRequestState `json:"state,omitempty"`
// Approval details for each item.
ApprovalDetails []ApprovalStatusDto `json:"approvalDetails,omitempty"`
// List of approval IDs associated with the request.
ApprovalIds []string `json:"approvalIds,omitempty"`
// Manual work items created for provisioning the item.
ManualWorkItemDetails []ManualWorkItemDetails `json:"manualWorkItemDetails,omitempty"`
// Id of associated account activity item.
AccountActivityItemId *string `json:"accountActivityItemId,omitempty"`
RequestType NullableAccessRequestType `json:"requestType,omitempty"`
// When the request was last modified.
Modified NullableTime `json:"modified,omitempty"`
// When the request was created.
Created *SailPointTime `json:"created,omitempty"`
Requester *AccessItemRequester `json:"requester,omitempty"`
RequestedFor *RequestedItemStatusRequestedFor `json:"requestedFor,omitempty"`
RequesterComment *RequestedItemStatusRequesterComment `json:"requesterComment,omitempty"`
SodViolationContext *RequestedItemStatusSodViolationContext `json:"sodViolationContext,omitempty"`
ProvisioningDetails *RequestedItemStatusProvisioningDetails `json:"provisioningDetails,omitempty"`
PreApprovalTriggerDetails *RequestedItemStatusPreApprovalTriggerDetails `json:"preApprovalTriggerDetails,omitempty"`
// A list of Phases that the Access Request has gone through in order, to help determine the status of the request.
AccessRequestPhases []AccessRequestPhases `json:"accessRequestPhases,omitempty"`
// Description associated to the requested object.
Description NullableString `json:"description,omitempty"`
// When the role access is scheduled for removal.
RemoveDate NullableTime `json:"removeDate,omitempty"`
// True if the request can be canceled.
Cancelable *bool `json:"cancelable,omitempty"`
// This is the account activity id.
AccessRequestId *string `json:"accessRequestId,omitempty"`
// Arbitrary key-value pairs, if any were included in the corresponding access request
ClientMetadata map[string]string `json:"clientMetadata,omitempty"`
AdditionalProperties map[string]interface{}
}
type _RequestedItemStatus RequestedItemStatus
// NewRequestedItemStatus instantiates a new RequestedItemStatus 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 NewRequestedItemStatus() *RequestedItemStatus {
this := RequestedItemStatus{}
var cancelable bool = false
this.Cancelable = &cancelable
return &this
}
// NewRequestedItemStatusWithDefaults instantiates a new RequestedItemStatus 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 NewRequestedItemStatusWithDefaults() *RequestedItemStatus {
this := RequestedItemStatus{}
var cancelable bool = false
this.Cancelable = &cancelable
return &this
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetName() string {
if o == nil || IsNil(o.Name.Get()) {
var ret string
return ret
}
return *o.Name.Get()
}
// GetNameOk returns a tuple with the Name 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 *RequestedItemStatus) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Name.Get(), o.Name.IsSet()
}
// HasName returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasName() bool {
if o != nil && o.Name.IsSet() {
return true
}
return false
}
// SetName gets a reference to the given NullableString and assigns it to the Name field.
func (o *RequestedItemStatus) SetName(v string) {
o.Name.Set(&v)
}
// SetNameNil sets the value for Name to be an explicit nil
func (o *RequestedItemStatus) SetNameNil() {
o.Name.Set(nil)
}
// UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *RequestedItemStatus) UnsetName() {
o.Name.Unset()
}
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetType() string {
if o == nil || IsNil(o.Type.Get()) {
var ret string
return ret
}
return *o.Type.Get()
}
// GetTypeOk returns a tuple with the Type 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 *RequestedItemStatus) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Type.Get(), o.Type.IsSet()
}
// HasType returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasType() bool {
if o != nil && o.Type.IsSet() {
return true
}
return false
}
// SetType gets a reference to the given NullableString and assigns it to the Type field.
func (o *RequestedItemStatus) SetType(v string) {
o.Type.Set(&v)
}
// SetTypeNil sets the value for Type to be an explicit nil
func (o *RequestedItemStatus) SetTypeNil() {
o.Type.Set(nil)
}
// UnsetType ensures that no value is present for Type, not even an explicit nil
func (o *RequestedItemStatus) UnsetType() {
o.Type.Unset()
}
// GetCancelledRequestDetails returns the CancelledRequestDetails field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetCancelledRequestDetails() RequestedItemStatusCancelledRequestDetails {
if o == nil || IsNil(o.CancelledRequestDetails) {
var ret RequestedItemStatusCancelledRequestDetails
return ret
}
return *o.CancelledRequestDetails
}
// GetCancelledRequestDetailsOk returns a tuple with the CancelledRequestDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RequestedItemStatus) GetCancelledRequestDetailsOk() (*RequestedItemStatusCancelledRequestDetails, bool) {
if o == nil || IsNil(o.CancelledRequestDetails) {
return nil, false
}
return o.CancelledRequestDetails, true
}
// HasCancelledRequestDetails returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasCancelledRequestDetails() bool {
if o != nil && !IsNil(o.CancelledRequestDetails) {
return true
}
return false
}
// SetCancelledRequestDetails gets a reference to the given RequestedItemStatusCancelledRequestDetails and assigns it to the CancelledRequestDetails field.
func (o *RequestedItemStatus) SetCancelledRequestDetails(v RequestedItemStatusCancelledRequestDetails) {
o.CancelledRequestDetails = &v
}
// GetErrorMessages returns the ErrorMessages field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetErrorMessages() [][]ErrorMessageDto {
if o == nil {
var ret [][]ErrorMessageDto
return ret
}
return o.ErrorMessages
}
// GetErrorMessagesOk returns a tuple with the ErrorMessages 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 *RequestedItemStatus) GetErrorMessagesOk() ([][]ErrorMessageDto, bool) {
if o == nil || IsNil(o.ErrorMessages) {
return nil, false
}
return o.ErrorMessages, true
}
// HasErrorMessages returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasErrorMessages() bool {
if o != nil && !IsNil(o.ErrorMessages) {
return true
}
return false
}
// SetErrorMessages gets a reference to the given [][]ErrorMessageDto and assigns it to the ErrorMessages field.
func (o *RequestedItemStatus) SetErrorMessages(v [][]ErrorMessageDto) {
o.ErrorMessages = v
}
// GetState returns the State field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetState() RequestedItemStatusRequestState {
if o == nil || IsNil(o.State) {
var ret RequestedItemStatusRequestState
return ret
}
return *o.State
}
// GetStateOk returns a tuple with the State field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RequestedItemStatus) GetStateOk() (*RequestedItemStatusRequestState, bool) {
if o == nil || IsNil(o.State) {
return nil, false
}
return o.State, true
}
// HasState returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasState() bool {
if o != nil && !IsNil(o.State) {
return true
}
return false
}
// SetState gets a reference to the given RequestedItemStatusRequestState and assigns it to the State field.
func (o *RequestedItemStatus) SetState(v RequestedItemStatusRequestState) {
o.State = &v
}
// GetApprovalDetails returns the ApprovalDetails field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetApprovalDetails() []ApprovalStatusDto {
if o == nil || IsNil(o.ApprovalDetails) {
var ret []ApprovalStatusDto
return ret
}
return o.ApprovalDetails
}
// GetApprovalDetailsOk returns a tuple with the ApprovalDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RequestedItemStatus) GetApprovalDetailsOk() ([]ApprovalStatusDto, bool) {
if o == nil || IsNil(o.ApprovalDetails) {
return nil, false
}
return o.ApprovalDetails, true
}
// HasApprovalDetails returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasApprovalDetails() bool {
if o != nil && !IsNil(o.ApprovalDetails) {
return true
}
return false
}
// SetApprovalDetails gets a reference to the given []ApprovalStatusDto and assigns it to the ApprovalDetails field.
func (o *RequestedItemStatus) SetApprovalDetails(v []ApprovalStatusDto) {
o.ApprovalDetails = v
}
// GetApprovalIds returns the ApprovalIds field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetApprovalIds() []string {
if o == nil {
var ret []string
return ret
}
return o.ApprovalIds
}
// GetApprovalIdsOk returns a tuple with the ApprovalIds 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 *RequestedItemStatus) GetApprovalIdsOk() ([]string, bool) {
if o == nil || IsNil(o.ApprovalIds) {
return nil, false
}
return o.ApprovalIds, true
}
// HasApprovalIds returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasApprovalIds() bool {
if o != nil && !IsNil(o.ApprovalIds) {
return true
}
return false
}
// SetApprovalIds gets a reference to the given []string and assigns it to the ApprovalIds field.
func (o *RequestedItemStatus) SetApprovalIds(v []string) {
o.ApprovalIds = v
}
// GetManualWorkItemDetails returns the ManualWorkItemDetails field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetManualWorkItemDetails() []ManualWorkItemDetails {
if o == nil {
var ret []ManualWorkItemDetails
return ret
}
return o.ManualWorkItemDetails
}
// GetManualWorkItemDetailsOk returns a tuple with the ManualWorkItemDetails 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 *RequestedItemStatus) GetManualWorkItemDetailsOk() ([]ManualWorkItemDetails, bool) {
if o == nil || IsNil(o.ManualWorkItemDetails) {
return nil, false
}
return o.ManualWorkItemDetails, true
}
// HasManualWorkItemDetails returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasManualWorkItemDetails() bool {
if o != nil && !IsNil(o.ManualWorkItemDetails) {
return true
}
return false
}
// SetManualWorkItemDetails gets a reference to the given []ManualWorkItemDetails and assigns it to the ManualWorkItemDetails field.
func (o *RequestedItemStatus) SetManualWorkItemDetails(v []ManualWorkItemDetails) {
o.ManualWorkItemDetails = v
}
// GetAccountActivityItemId returns the AccountActivityItemId field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetAccountActivityItemId() string {
if o == nil || IsNil(o.AccountActivityItemId) {
var ret string
return ret
}
return *o.AccountActivityItemId
}
// GetAccountActivityItemIdOk returns a tuple with the AccountActivityItemId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RequestedItemStatus) GetAccountActivityItemIdOk() (*string, bool) {
if o == nil || IsNil(o.AccountActivityItemId) {
return nil, false
}
return o.AccountActivityItemId, true
}
// HasAccountActivityItemId returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasAccountActivityItemId() bool {
if o != nil && !IsNil(o.AccountActivityItemId) {
return true
}
return false
}
// SetAccountActivityItemId gets a reference to the given string and assigns it to the AccountActivityItemId field.
func (o *RequestedItemStatus) SetAccountActivityItemId(v string) {
o.AccountActivityItemId = &v
}
// GetRequestType returns the RequestType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetRequestType() AccessRequestType {
if o == nil || IsNil(o.RequestType.Get()) {
var ret AccessRequestType
return ret
}
return *o.RequestType.Get()
}
// GetRequestTypeOk returns a tuple with the RequestType 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 *RequestedItemStatus) GetRequestTypeOk() (*AccessRequestType, bool) {
if o == nil {
return nil, false
}
return o.RequestType.Get(), o.RequestType.IsSet()
}
// HasRequestType returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasRequestType() bool {
if o != nil && o.RequestType.IsSet() {
return true
}
return false
}
// SetRequestType gets a reference to the given NullableAccessRequestType and assigns it to the RequestType field.
func (o *RequestedItemStatus) SetRequestType(v AccessRequestType) {
o.RequestType.Set(&v)
}
// SetRequestTypeNil sets the value for RequestType to be an explicit nil
func (o *RequestedItemStatus) SetRequestTypeNil() {
o.RequestType.Set(nil)
}
// UnsetRequestType ensures that no value is present for RequestType, not even an explicit nil
func (o *RequestedItemStatus) UnsetRequestType() {
o.RequestType.Unset()
}
// GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetModified() SailPointTime {
if o == nil || IsNil(o.Modified.Get()) {
var ret SailPointTime
return ret
}
return *o.Modified.Get()
}
// GetModifiedOk returns a tuple with the Modified 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 *RequestedItemStatus) GetModifiedOk() (*SailPointTime, bool) {
if o == nil {
return nil, false
}
return o.Modified.Get(), o.Modified.IsSet()
}
// HasModified returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasModified() bool {
if o != nil && o.Modified.IsSet() {
return true
}
return false
}
// SetModified gets a reference to the given NullableTime and assigns it to the Modified field.
func (o *RequestedItemStatus) SetModified(v SailPointTime) {
o.Modified.Set(&v)
}
// SetModifiedNil sets the value for Modified to be an explicit nil
func (o *RequestedItemStatus) SetModifiedNil() {
o.Modified.Set(nil)
}
// UnsetModified ensures that no value is present for Modified, not even an explicit nil
func (o *RequestedItemStatus) UnsetModified() {
o.Modified.Unset()
}
// GetCreated returns the Created field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetCreated() SailPointTime {
if o == nil || IsNil(o.Created) {
var ret SailPointTime
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 *RequestedItemStatus) GetCreatedOk() (*SailPointTime, 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 *RequestedItemStatus) HasCreated() bool {
if o != nil && !IsNil(o.Created) {
return true
}
return false
}
// SetCreated gets a reference to the given SailPointTime and assigns it to the Created field.
func (o *RequestedItemStatus) SetCreated(v SailPointTime) {
o.Created = &v
}
// GetRequester returns the Requester field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetRequester() AccessItemRequester {
if o == nil || IsNil(o.Requester) {
var ret AccessItemRequester
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 *RequestedItemStatus) GetRequesterOk() (*AccessItemRequester, 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 *RequestedItemStatus) HasRequester() bool {
if o != nil && !IsNil(o.Requester) {
return true
}
return false
}
// SetRequester gets a reference to the given AccessItemRequester and assigns it to the Requester field.
func (o *RequestedItemStatus) SetRequester(v AccessItemRequester) {
o.Requester = &v
}
// GetRequestedFor returns the RequestedFor field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetRequestedFor() RequestedItemStatusRequestedFor {
if o == nil || IsNil(o.RequestedFor) {
var ret RequestedItemStatusRequestedFor
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 *RequestedItemStatus) GetRequestedForOk() (*RequestedItemStatusRequestedFor, 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 *RequestedItemStatus) HasRequestedFor() bool {
if o != nil && !IsNil(o.RequestedFor) {
return true
}
return false
}
// SetRequestedFor gets a reference to the given RequestedItemStatusRequestedFor and assigns it to the RequestedFor field.
func (o *RequestedItemStatus) SetRequestedFor(v RequestedItemStatusRequestedFor) {
o.RequestedFor = &v
}
// GetRequesterComment returns the RequesterComment field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetRequesterComment() RequestedItemStatusRequesterComment {
if o == nil || IsNil(o.RequesterComment) {
var ret RequestedItemStatusRequesterComment
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 *RequestedItemStatus) GetRequesterCommentOk() (*RequestedItemStatusRequesterComment, 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 *RequestedItemStatus) HasRequesterComment() bool {
if o != nil && !IsNil(o.RequesterComment) {
return true
}
return false
}
// SetRequesterComment gets a reference to the given RequestedItemStatusRequesterComment and assigns it to the RequesterComment field.
func (o *RequestedItemStatus) SetRequesterComment(v RequestedItemStatusRequesterComment) {
o.RequesterComment = &v
}
// GetSodViolationContext returns the SodViolationContext field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetSodViolationContext() RequestedItemStatusSodViolationContext {
if o == nil || IsNil(o.SodViolationContext) {
var ret RequestedItemStatusSodViolationContext
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 *RequestedItemStatus) GetSodViolationContextOk() (*RequestedItemStatusSodViolationContext, 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 *RequestedItemStatus) HasSodViolationContext() bool {
if o != nil && !IsNil(o.SodViolationContext) {
return true
}
return false
}
// SetSodViolationContext gets a reference to the given RequestedItemStatusSodViolationContext and assigns it to the SodViolationContext field.
func (o *RequestedItemStatus) SetSodViolationContext(v RequestedItemStatusSodViolationContext) {
o.SodViolationContext = &v
}
// GetProvisioningDetails returns the ProvisioningDetails field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetProvisioningDetails() RequestedItemStatusProvisioningDetails {
if o == nil || IsNil(o.ProvisioningDetails) {
var ret RequestedItemStatusProvisioningDetails
return ret
}
return *o.ProvisioningDetails
}
// GetProvisioningDetailsOk returns a tuple with the ProvisioningDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RequestedItemStatus) GetProvisioningDetailsOk() (*RequestedItemStatusProvisioningDetails, bool) {
if o == nil || IsNil(o.ProvisioningDetails) {
return nil, false
}
return o.ProvisioningDetails, true
}
// HasProvisioningDetails returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasProvisioningDetails() bool {
if o != nil && !IsNil(o.ProvisioningDetails) {
return true
}
return false
}
// SetProvisioningDetails gets a reference to the given RequestedItemStatusProvisioningDetails and assigns it to the ProvisioningDetails field.
func (o *RequestedItemStatus) SetProvisioningDetails(v RequestedItemStatusProvisioningDetails) {
o.ProvisioningDetails = &v
}
// GetPreApprovalTriggerDetails returns the PreApprovalTriggerDetails field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetPreApprovalTriggerDetails() RequestedItemStatusPreApprovalTriggerDetails {
if o == nil || IsNil(o.PreApprovalTriggerDetails) {
var ret RequestedItemStatusPreApprovalTriggerDetails
return ret
}
return *o.PreApprovalTriggerDetails
}
// GetPreApprovalTriggerDetailsOk returns a tuple with the PreApprovalTriggerDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RequestedItemStatus) GetPreApprovalTriggerDetailsOk() (*RequestedItemStatusPreApprovalTriggerDetails, bool) {
if o == nil || IsNil(o.PreApprovalTriggerDetails) {
return nil, false
}
return o.PreApprovalTriggerDetails, true
}
// HasPreApprovalTriggerDetails returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasPreApprovalTriggerDetails() bool {
if o != nil && !IsNil(o.PreApprovalTriggerDetails) {
return true
}
return false
}
// SetPreApprovalTriggerDetails gets a reference to the given RequestedItemStatusPreApprovalTriggerDetails and assigns it to the PreApprovalTriggerDetails field.
func (o *RequestedItemStatus) SetPreApprovalTriggerDetails(v RequestedItemStatusPreApprovalTriggerDetails) {
o.PreApprovalTriggerDetails = &v
}
// GetAccessRequestPhases returns the AccessRequestPhases field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetAccessRequestPhases() []AccessRequestPhases {
if o == nil {
var ret []AccessRequestPhases
return ret
}
return o.AccessRequestPhases
}
// GetAccessRequestPhasesOk returns a tuple with the AccessRequestPhases 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 *RequestedItemStatus) GetAccessRequestPhasesOk() ([]AccessRequestPhases, bool) {
if o == nil || IsNil(o.AccessRequestPhases) {
return nil, false
}
return o.AccessRequestPhases, true
}
// HasAccessRequestPhases returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasAccessRequestPhases() bool {
if o != nil && !IsNil(o.AccessRequestPhases) {
return true
}
return false
}
// SetAccessRequestPhases gets a reference to the given []AccessRequestPhases and assigns it to the AccessRequestPhases field.
func (o *RequestedItemStatus) SetAccessRequestPhases(v []AccessRequestPhases) {
o.AccessRequestPhases = v
}
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetDescription() string {
if o == nil || IsNil(o.Description.Get()) {
var ret string
return ret
}
return *o.Description.Get()
}
// GetDescriptionOk returns a tuple with the Description 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 *RequestedItemStatus) GetDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Description.Get(), o.Description.IsSet()
}
// HasDescription returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasDescription() bool {
if o != nil && o.Description.IsSet() {
return true
}
return false
}
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
func (o *RequestedItemStatus) SetDescription(v string) {
o.Description.Set(&v)
}
// SetDescriptionNil sets the value for Description to be an explicit nil
func (o *RequestedItemStatus) SetDescriptionNil() {
o.Description.Set(nil)
}
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *RequestedItemStatus) UnsetDescription() {
o.Description.Unset()
}
// GetRemoveDate returns the RemoveDate field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetRemoveDate() SailPointTime {
if o == nil || IsNil(o.RemoveDate.Get()) {
var ret SailPointTime
return ret
}
return *o.RemoveDate.Get()
}
// GetRemoveDateOk returns a tuple with the RemoveDate 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 *RequestedItemStatus) GetRemoveDateOk() (*SailPointTime, bool) {
if o == nil {
return nil, false
}
return o.RemoveDate.Get(), o.RemoveDate.IsSet()
}
// HasRemoveDate returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasRemoveDate() bool {
if o != nil && o.RemoveDate.IsSet() {
return true
}
return false
}
// SetRemoveDate gets a reference to the given NullableTime and assigns it to the RemoveDate field.
func (o *RequestedItemStatus) SetRemoveDate(v SailPointTime) {
o.RemoveDate.Set(&v)
}
// SetRemoveDateNil sets the value for RemoveDate to be an explicit nil
func (o *RequestedItemStatus) SetRemoveDateNil() {
o.RemoveDate.Set(nil)
}
// UnsetRemoveDate ensures that no value is present for RemoveDate, not even an explicit nil
func (o *RequestedItemStatus) UnsetRemoveDate() {
o.RemoveDate.Unset()
}
// GetCancelable returns the Cancelable field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetCancelable() bool {
if o == nil || IsNil(o.Cancelable) {
var ret bool
return ret
}
return *o.Cancelable
}
// GetCancelableOk returns a tuple with the Cancelable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RequestedItemStatus) GetCancelableOk() (*bool, bool) {
if o == nil || IsNil(o.Cancelable) {
return nil, false
}
return o.Cancelable, true
}
// HasCancelable returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasCancelable() bool {
if o != nil && !IsNil(o.Cancelable) {
return true
}
return false
}
// SetCancelable gets a reference to the given bool and assigns it to the Cancelable field.
func (o *RequestedItemStatus) SetCancelable(v bool) {
o.Cancelable = &v
}
// GetAccessRequestId returns the AccessRequestId field value if set, zero value otherwise.
func (o *RequestedItemStatus) GetAccessRequestId() string {
if o == nil || IsNil(o.AccessRequestId) {
var ret string
return ret
}
return *o.AccessRequestId
}
// GetAccessRequestIdOk returns a tuple with the AccessRequestId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RequestedItemStatus) GetAccessRequestIdOk() (*string, bool) {
if o == nil || IsNil(o.AccessRequestId) {
return nil, false
}
return o.AccessRequestId, true
}
// HasAccessRequestId returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasAccessRequestId() bool {
if o != nil && !IsNil(o.AccessRequestId) {
return true
}
return false
}
// SetAccessRequestId gets a reference to the given string and assigns it to the AccessRequestId field.
func (o *RequestedItemStatus) SetAccessRequestId(v string) {
o.AccessRequestId = &v
}
// GetClientMetadata returns the ClientMetadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *RequestedItemStatus) GetClientMetadata() map[string]string {
if o == nil {
var ret map[string]string
return ret
}
return o.ClientMetadata
}
// GetClientMetadataOk returns a tuple with the ClientMetadata 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 *RequestedItemStatus) GetClientMetadataOk() (*map[string]string, bool) {
if o == nil || IsNil(o.ClientMetadata) {
return nil, false
}
return &o.ClientMetadata, true
}
// HasClientMetadata returns a boolean if a field has been set.
func (o *RequestedItemStatus) HasClientMetadata() bool {
if o != nil && !IsNil(o.ClientMetadata) {
return true
}
return false
}
// SetClientMetadata gets a reference to the given map[string]string and assigns it to the ClientMetadata field.
func (o *RequestedItemStatus) SetClientMetadata(v map[string]string) {
o.ClientMetadata = v
}
func (o RequestedItemStatus) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o RequestedItemStatus) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.Name.IsSet() {
toSerialize["name"] = o.Name.Get()
}
if o.Type.IsSet() {
toSerialize["type"] = o.Type.Get()
}
if !IsNil(o.CancelledRequestDetails) {
toSerialize["cancelledRequestDetails"] = o.CancelledRequestDetails
}
if o.ErrorMessages != nil {
toSerialize["errorMessages"] = o.ErrorMessages
}
if !IsNil(o.State) {
toSerialize["state"] = o.State
}
if !IsNil(o.ApprovalDetails) {
toSerialize["approvalDetails"] = o.ApprovalDetails
}
if o.ApprovalIds != nil {
toSerialize["approvalIds"] = o.ApprovalIds
}
if o.ManualWorkItemDetails != nil {
toSerialize["manualWorkItemDetails"] = o.ManualWorkItemDetails
}
if !IsNil(o.AccountActivityItemId) {
toSerialize["accountActivityItemId"] = o.AccountActivityItemId
}
if o.RequestType.IsSet() {
toSerialize["requestType"] = o.RequestType.Get()
}
if o.Modified.IsSet() {
toSerialize["modified"] = o.Modified.Get()
}
if !IsNil(o.Created) {
toSerialize["created"] = o.Created
}
if !IsNil(o.Requester) {
toSerialize["requester"] = o.Requester
}
if !IsNil(o.RequestedFor) {
toSerialize["requestedFor"] = o.RequestedFor
}
if !IsNil(o.RequesterComment) {
toSerialize["requesterComment"] = o.RequesterComment
}
if !IsNil(o.SodViolationContext) {
toSerialize["sodViolationContext"] = o.SodViolationContext
}
if !IsNil(o.ProvisioningDetails) {
toSerialize["provisioningDetails"] = o.ProvisioningDetails
}
if !IsNil(o.PreApprovalTriggerDetails) {
toSerialize["preApprovalTriggerDetails"] = o.PreApprovalTriggerDetails
}
if o.AccessRequestPhases != nil {
toSerialize["accessRequestPhases"] = o.AccessRequestPhases
}
if o.Description.IsSet() {
toSerialize["description"] = o.Description.Get()
}
if o.RemoveDate.IsSet() {
toSerialize["removeDate"] = o.RemoveDate.Get()
}
if !IsNil(o.Cancelable) {
toSerialize["cancelable"] = o.Cancelable
}
if !IsNil(o.AccessRequestId) {
toSerialize["accessRequestId"] = o.AccessRequestId
}
if o.ClientMetadata != nil {