This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_gnb_cu_cp_function_single.go
674 lines (575 loc) · 20.7 KB
/
model_gnb_cu_cp_function_single.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
/*
Provisioning MnS
OAS 3.0.1 definition of the Provisioning MnS © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 17.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_ProvMnS
import (
"encoding/json"
)
// checks if the GnbCuCpFunctionSingle type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GnbCuCpFunctionSingle{}
// GnbCuCpFunctionSingle struct for GnbCuCpFunctionSingle
type GnbCuCpFunctionSingle struct {
Top
Attributes *GnbCuCpFunctionSingleAllOfAttributes `json:"attributes,omitempty"`
PerfMetricJob []PerfMetricJobSingle `json:"PerfMetricJob,omitempty"`
ThresholdMonitor []ThresholdMonitorSingle `json:"ThresholdMonitor,omitempty"`
ManagedNFService []ManagedNFServiceSingle `json:"ManagedNFService,omitempty"`
TraceJob []TraceJobSingle `json:"TraceJob,omitempty"`
RRMPolicyRatio []RRMPolicyRatioSingle `json:"RRMPolicyRatio,omitempty"`
NrCellCu []NrCellCuSingle `json:"NrCellCu,omitempty"`
EPXnC []EPXnCSingle `json:"EP_XnC,omitempty"`
EPE1 []EPE1Single `json:"EP_E1,omitempty"`
EPF1C []EPF1CSingle `json:"EP_F1C,omitempty"`
EPNgC []EPNgCSingle `json:"EP_NgC,omitempty"`
EPX2C []EPX2CSingle `json:"EP_X2C,omitempty"`
DANRManagementFunction *DANRManagementFunctionSingle `json:"DANRManagementFunction,omitempty"`
DESManagementFunction *DESManagementFunctionSingle `json:"DESManagementFunction,omitempty"`
DMROFunction *DMROFunctionSingle `json:"DMROFunction,omitempty"`
DLBOFunction *DLBOFunctionSingle `json:"DLBOFunction,omitempty"`
}
// NewGnbCuCpFunctionSingle instantiates a new GnbCuCpFunctionSingle 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 NewGnbCuCpFunctionSingle(id NullableString) *GnbCuCpFunctionSingle {
this := GnbCuCpFunctionSingle{}
this.Id = id
return &this
}
// NewGnbCuCpFunctionSingleWithDefaults instantiates a new GnbCuCpFunctionSingle 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 NewGnbCuCpFunctionSingleWithDefaults() *GnbCuCpFunctionSingle {
this := GnbCuCpFunctionSingle{}
return &this
}
// GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetAttributes() GnbCuCpFunctionSingleAllOfAttributes {
if o == nil || IsNil(o.Attributes) {
var ret GnbCuCpFunctionSingleAllOfAttributes
return ret
}
return *o.Attributes
}
// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetAttributesOk() (*GnbCuCpFunctionSingleAllOfAttributes, bool) {
if o == nil || IsNil(o.Attributes) {
return nil, false
}
return o.Attributes, true
}
// HasAttributes returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasAttributes() bool {
if o != nil && !IsNil(o.Attributes) {
return true
}
return false
}
// SetAttributes gets a reference to the given GnbCuCpFunctionSingleAllOfAttributes and assigns it to the Attributes field.
func (o *GnbCuCpFunctionSingle) SetAttributes(v GnbCuCpFunctionSingleAllOfAttributes) {
o.Attributes = &v
}
// GetPerfMetricJob returns the PerfMetricJob field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetPerfMetricJob() []PerfMetricJobSingle {
if o == nil || IsNil(o.PerfMetricJob) {
var ret []PerfMetricJobSingle
return ret
}
return o.PerfMetricJob
}
// GetPerfMetricJobOk returns a tuple with the PerfMetricJob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetPerfMetricJobOk() ([]PerfMetricJobSingle, bool) {
if o == nil || IsNil(o.PerfMetricJob) {
return nil, false
}
return o.PerfMetricJob, true
}
// HasPerfMetricJob returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasPerfMetricJob() bool {
if o != nil && !IsNil(o.PerfMetricJob) {
return true
}
return false
}
// SetPerfMetricJob gets a reference to the given []PerfMetricJobSingle and assigns it to the PerfMetricJob field.
func (o *GnbCuCpFunctionSingle) SetPerfMetricJob(v []PerfMetricJobSingle) {
o.PerfMetricJob = v
}
// GetThresholdMonitor returns the ThresholdMonitor field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetThresholdMonitor() []ThresholdMonitorSingle {
if o == nil || IsNil(o.ThresholdMonitor) {
var ret []ThresholdMonitorSingle
return ret
}
return o.ThresholdMonitor
}
// GetThresholdMonitorOk returns a tuple with the ThresholdMonitor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetThresholdMonitorOk() ([]ThresholdMonitorSingle, bool) {
if o == nil || IsNil(o.ThresholdMonitor) {
return nil, false
}
return o.ThresholdMonitor, true
}
// HasThresholdMonitor returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasThresholdMonitor() bool {
if o != nil && !IsNil(o.ThresholdMonitor) {
return true
}
return false
}
// SetThresholdMonitor gets a reference to the given []ThresholdMonitorSingle and assigns it to the ThresholdMonitor field.
func (o *GnbCuCpFunctionSingle) SetThresholdMonitor(v []ThresholdMonitorSingle) {
o.ThresholdMonitor = v
}
// GetManagedNFService returns the ManagedNFService field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetManagedNFService() []ManagedNFServiceSingle {
if o == nil || IsNil(o.ManagedNFService) {
var ret []ManagedNFServiceSingle
return ret
}
return o.ManagedNFService
}
// GetManagedNFServiceOk returns a tuple with the ManagedNFService field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetManagedNFServiceOk() ([]ManagedNFServiceSingle, bool) {
if o == nil || IsNil(o.ManagedNFService) {
return nil, false
}
return o.ManagedNFService, true
}
// HasManagedNFService returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasManagedNFService() bool {
if o != nil && !IsNil(o.ManagedNFService) {
return true
}
return false
}
// SetManagedNFService gets a reference to the given []ManagedNFServiceSingle and assigns it to the ManagedNFService field.
func (o *GnbCuCpFunctionSingle) SetManagedNFService(v []ManagedNFServiceSingle) {
o.ManagedNFService = v
}
// GetTraceJob returns the TraceJob field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetTraceJob() []TraceJobSingle {
if o == nil || IsNil(o.TraceJob) {
var ret []TraceJobSingle
return ret
}
return o.TraceJob
}
// GetTraceJobOk returns a tuple with the TraceJob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetTraceJobOk() ([]TraceJobSingle, bool) {
if o == nil || IsNil(o.TraceJob) {
return nil, false
}
return o.TraceJob, true
}
// HasTraceJob returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasTraceJob() bool {
if o != nil && !IsNil(o.TraceJob) {
return true
}
return false
}
// SetTraceJob gets a reference to the given []TraceJobSingle and assigns it to the TraceJob field.
func (o *GnbCuCpFunctionSingle) SetTraceJob(v []TraceJobSingle) {
o.TraceJob = v
}
// GetRRMPolicyRatio returns the RRMPolicyRatio field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetRRMPolicyRatio() []RRMPolicyRatioSingle {
if o == nil || IsNil(o.RRMPolicyRatio) {
var ret []RRMPolicyRatioSingle
return ret
}
return o.RRMPolicyRatio
}
// GetRRMPolicyRatioOk returns a tuple with the RRMPolicyRatio field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetRRMPolicyRatioOk() ([]RRMPolicyRatioSingle, bool) {
if o == nil || IsNil(o.RRMPolicyRatio) {
return nil, false
}
return o.RRMPolicyRatio, true
}
// HasRRMPolicyRatio returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasRRMPolicyRatio() bool {
if o != nil && !IsNil(o.RRMPolicyRatio) {
return true
}
return false
}
// SetRRMPolicyRatio gets a reference to the given []RRMPolicyRatioSingle and assigns it to the RRMPolicyRatio field.
func (o *GnbCuCpFunctionSingle) SetRRMPolicyRatio(v []RRMPolicyRatioSingle) {
o.RRMPolicyRatio = v
}
// GetNrCellCu returns the NrCellCu field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetNrCellCu() []NrCellCuSingle {
if o == nil || IsNil(o.NrCellCu) {
var ret []NrCellCuSingle
return ret
}
return o.NrCellCu
}
// GetNrCellCuOk returns a tuple with the NrCellCu field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetNrCellCuOk() ([]NrCellCuSingle, bool) {
if o == nil || IsNil(o.NrCellCu) {
return nil, false
}
return o.NrCellCu, true
}
// HasNrCellCu returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasNrCellCu() bool {
if o != nil && !IsNil(o.NrCellCu) {
return true
}
return false
}
// SetNrCellCu gets a reference to the given []NrCellCuSingle and assigns it to the NrCellCu field.
func (o *GnbCuCpFunctionSingle) SetNrCellCu(v []NrCellCuSingle) {
o.NrCellCu = v
}
// GetEPXnC returns the EPXnC field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetEPXnC() []EPXnCSingle {
if o == nil || IsNil(o.EPXnC) {
var ret []EPXnCSingle
return ret
}
return o.EPXnC
}
// GetEPXnCOk returns a tuple with the EPXnC field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetEPXnCOk() ([]EPXnCSingle, bool) {
if o == nil || IsNil(o.EPXnC) {
return nil, false
}
return o.EPXnC, true
}
// HasEPXnC returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasEPXnC() bool {
if o != nil && !IsNil(o.EPXnC) {
return true
}
return false
}
// SetEPXnC gets a reference to the given []EPXnCSingle and assigns it to the EPXnC field.
func (o *GnbCuCpFunctionSingle) SetEPXnC(v []EPXnCSingle) {
o.EPXnC = v
}
// GetEPE1 returns the EPE1 field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetEPE1() []EPE1Single {
if o == nil || IsNil(o.EPE1) {
var ret []EPE1Single
return ret
}
return o.EPE1
}
// GetEPE1Ok returns a tuple with the EPE1 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetEPE1Ok() ([]EPE1Single, bool) {
if o == nil || IsNil(o.EPE1) {
return nil, false
}
return o.EPE1, true
}
// HasEPE1 returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasEPE1() bool {
if o != nil && !IsNil(o.EPE1) {
return true
}
return false
}
// SetEPE1 gets a reference to the given []EPE1Single and assigns it to the EPE1 field.
func (o *GnbCuCpFunctionSingle) SetEPE1(v []EPE1Single) {
o.EPE1 = v
}
// GetEPF1C returns the EPF1C field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetEPF1C() []EPF1CSingle {
if o == nil || IsNil(o.EPF1C) {
var ret []EPF1CSingle
return ret
}
return o.EPF1C
}
// GetEPF1COk returns a tuple with the EPF1C field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetEPF1COk() ([]EPF1CSingle, bool) {
if o == nil || IsNil(o.EPF1C) {
return nil, false
}
return o.EPF1C, true
}
// HasEPF1C returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasEPF1C() bool {
if o != nil && !IsNil(o.EPF1C) {
return true
}
return false
}
// SetEPF1C gets a reference to the given []EPF1CSingle and assigns it to the EPF1C field.
func (o *GnbCuCpFunctionSingle) SetEPF1C(v []EPF1CSingle) {
o.EPF1C = v
}
// GetEPNgC returns the EPNgC field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetEPNgC() []EPNgCSingle {
if o == nil || IsNil(o.EPNgC) {
var ret []EPNgCSingle
return ret
}
return o.EPNgC
}
// GetEPNgCOk returns a tuple with the EPNgC field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetEPNgCOk() ([]EPNgCSingle, bool) {
if o == nil || IsNil(o.EPNgC) {
return nil, false
}
return o.EPNgC, true
}
// HasEPNgC returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasEPNgC() bool {
if o != nil && !IsNil(o.EPNgC) {
return true
}
return false
}
// SetEPNgC gets a reference to the given []EPNgCSingle and assigns it to the EPNgC field.
func (o *GnbCuCpFunctionSingle) SetEPNgC(v []EPNgCSingle) {
o.EPNgC = v
}
// GetEPX2C returns the EPX2C field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetEPX2C() []EPX2CSingle {
if o == nil || IsNil(o.EPX2C) {
var ret []EPX2CSingle
return ret
}
return o.EPX2C
}
// GetEPX2COk returns a tuple with the EPX2C field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetEPX2COk() ([]EPX2CSingle, bool) {
if o == nil || IsNil(o.EPX2C) {
return nil, false
}
return o.EPX2C, true
}
// HasEPX2C returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasEPX2C() bool {
if o != nil && !IsNil(o.EPX2C) {
return true
}
return false
}
// SetEPX2C gets a reference to the given []EPX2CSingle and assigns it to the EPX2C field.
func (o *GnbCuCpFunctionSingle) SetEPX2C(v []EPX2CSingle) {
o.EPX2C = v
}
// GetDANRManagementFunction returns the DANRManagementFunction field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetDANRManagementFunction() DANRManagementFunctionSingle {
if o == nil || IsNil(o.DANRManagementFunction) {
var ret DANRManagementFunctionSingle
return ret
}
return *o.DANRManagementFunction
}
// GetDANRManagementFunctionOk returns a tuple with the DANRManagementFunction field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetDANRManagementFunctionOk() (*DANRManagementFunctionSingle, bool) {
if o == nil || IsNil(o.DANRManagementFunction) {
return nil, false
}
return o.DANRManagementFunction, true
}
// HasDANRManagementFunction returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasDANRManagementFunction() bool {
if o != nil && !IsNil(o.DANRManagementFunction) {
return true
}
return false
}
// SetDANRManagementFunction gets a reference to the given DANRManagementFunctionSingle and assigns it to the DANRManagementFunction field.
func (o *GnbCuCpFunctionSingle) SetDANRManagementFunction(v DANRManagementFunctionSingle) {
o.DANRManagementFunction = &v
}
// GetDESManagementFunction returns the DESManagementFunction field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetDESManagementFunction() DESManagementFunctionSingle {
if o == nil || IsNil(o.DESManagementFunction) {
var ret DESManagementFunctionSingle
return ret
}
return *o.DESManagementFunction
}
// GetDESManagementFunctionOk returns a tuple with the DESManagementFunction field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetDESManagementFunctionOk() (*DESManagementFunctionSingle, bool) {
if o == nil || IsNil(o.DESManagementFunction) {
return nil, false
}
return o.DESManagementFunction, true
}
// HasDESManagementFunction returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasDESManagementFunction() bool {
if o != nil && !IsNil(o.DESManagementFunction) {
return true
}
return false
}
// SetDESManagementFunction gets a reference to the given DESManagementFunctionSingle and assigns it to the DESManagementFunction field.
func (o *GnbCuCpFunctionSingle) SetDESManagementFunction(v DESManagementFunctionSingle) {
o.DESManagementFunction = &v
}
// GetDMROFunction returns the DMROFunction field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetDMROFunction() DMROFunctionSingle {
if o == nil || IsNil(o.DMROFunction) {
var ret DMROFunctionSingle
return ret
}
return *o.DMROFunction
}
// GetDMROFunctionOk returns a tuple with the DMROFunction field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetDMROFunctionOk() (*DMROFunctionSingle, bool) {
if o == nil || IsNil(o.DMROFunction) {
return nil, false
}
return o.DMROFunction, true
}
// HasDMROFunction returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasDMROFunction() bool {
if o != nil && !IsNil(o.DMROFunction) {
return true
}
return false
}
// SetDMROFunction gets a reference to the given DMROFunctionSingle and assigns it to the DMROFunction field.
func (o *GnbCuCpFunctionSingle) SetDMROFunction(v DMROFunctionSingle) {
o.DMROFunction = &v
}
// GetDLBOFunction returns the DLBOFunction field value if set, zero value otherwise.
func (o *GnbCuCpFunctionSingle) GetDLBOFunction() DLBOFunctionSingle {
if o == nil || IsNil(o.DLBOFunction) {
var ret DLBOFunctionSingle
return ret
}
return *o.DLBOFunction
}
// GetDLBOFunctionOk returns a tuple with the DLBOFunction field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbCuCpFunctionSingle) GetDLBOFunctionOk() (*DLBOFunctionSingle, bool) {
if o == nil || IsNil(o.DLBOFunction) {
return nil, false
}
return o.DLBOFunction, true
}
// HasDLBOFunction returns a boolean if a field has been set.
func (o *GnbCuCpFunctionSingle) HasDLBOFunction() bool {
if o != nil && !IsNil(o.DLBOFunction) {
return true
}
return false
}
// SetDLBOFunction gets a reference to the given DLBOFunctionSingle and assigns it to the DLBOFunction field.
func (o *GnbCuCpFunctionSingle) SetDLBOFunction(v DLBOFunctionSingle) {
o.DLBOFunction = &v
}
func (o GnbCuCpFunctionSingle) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GnbCuCpFunctionSingle) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
serializedTop, errTop := json.Marshal(o.Top)
if errTop != nil {
return map[string]interface{}{}, errTop
}
errTop = json.Unmarshal([]byte(serializedTop), &toSerialize)
if errTop != nil {
return map[string]interface{}{}, errTop
}
if !IsNil(o.Attributes) {
toSerialize["attributes"] = o.Attributes
}
if !IsNil(o.PerfMetricJob) {
toSerialize["PerfMetricJob"] = o.PerfMetricJob
}
if !IsNil(o.ThresholdMonitor) {
toSerialize["ThresholdMonitor"] = o.ThresholdMonitor
}
if !IsNil(o.ManagedNFService) {
toSerialize["ManagedNFService"] = o.ManagedNFService
}
if !IsNil(o.TraceJob) {
toSerialize["TraceJob"] = o.TraceJob
}
if !IsNil(o.RRMPolicyRatio) {
toSerialize["RRMPolicyRatio"] = o.RRMPolicyRatio
}
if !IsNil(o.NrCellCu) {
toSerialize["NrCellCu"] = o.NrCellCu
}
if !IsNil(o.EPXnC) {
toSerialize["EP_XnC"] = o.EPXnC
}
if !IsNil(o.EPE1) {
toSerialize["EP_E1"] = o.EPE1
}
if !IsNil(o.EPF1C) {
toSerialize["EP_F1C"] = o.EPF1C
}
if !IsNil(o.EPNgC) {
toSerialize["EP_NgC"] = o.EPNgC
}
if !IsNil(o.EPX2C) {
toSerialize["EP_X2C"] = o.EPX2C
}
if !IsNil(o.DANRManagementFunction) {
toSerialize["DANRManagementFunction"] = o.DANRManagementFunction
}
if !IsNil(o.DESManagementFunction) {
toSerialize["DESManagementFunction"] = o.DESManagementFunction
}
if !IsNil(o.DMROFunction) {
toSerialize["DMROFunction"] = o.DMROFunction
}
if !IsNil(o.DLBOFunction) {
toSerialize["DLBOFunction"] = o.DLBOFunction
}
return toSerialize, nil
}
type NullableGnbCuCpFunctionSingle struct {
value *GnbCuCpFunctionSingle
isSet bool
}
func (v NullableGnbCuCpFunctionSingle) Get() *GnbCuCpFunctionSingle {
return v.value
}
func (v *NullableGnbCuCpFunctionSingle) Set(val *GnbCuCpFunctionSingle) {
v.value = val
v.isSet = true
}
func (v NullableGnbCuCpFunctionSingle) IsSet() bool {
return v.isSet
}
func (v *NullableGnbCuCpFunctionSingle) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGnbCuCpFunctionSingle(val *GnbCuCpFunctionSingle) *NullableGnbCuCpFunctionSingle {
return &NullableGnbCuCpFunctionSingle{value: val, isSet: true}
}
func (v NullableGnbCuCpFunctionSingle) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGnbCuCpFunctionSingle) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}