This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_pcf_info.go
459 lines (390 loc) · 12.3 KB
/
model_pcf_info.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
/*
Nadrf_DataManagement
ADRF Data Management Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.0-alpha.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Nadrf_DataManagement
import (
"encoding/json"
)
// checks if the PcfInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PcfInfo{}
// PcfInfo Information of a PCF NF Instance
type PcfInfo struct {
// Identifier of a group of NFs.
GroupId *string `json:"groupId,omitempty"`
DnnList []string `json:"dnnList,omitempty"`
SupiRanges []SupiRange `json:"supiRanges,omitempty"`
GpsiRanges []IdentityRange `json:"gpsiRanges,omitempty"`
// Fully Qualified Domain Name
RxDiamHost *string `json:"rxDiamHost,omitempty"`
// Fully Qualified Domain Name
RxDiamRealm *string `json:"rxDiamRealm,omitempty"`
V2xSupportInd *bool `json:"v2xSupportInd,omitempty"`
ProseSupportInd *bool `json:"proseSupportInd,omitempty"`
ProseCapability *ProSeCapability `json:"proseCapability,omitempty"`
V2xCapability *V2xCapability `json:"v2xCapability,omitempty"`
}
// NewPcfInfo instantiates a new PcfInfo 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 NewPcfInfo() *PcfInfo {
this := PcfInfo{}
var v2xSupportInd bool = false
this.V2xSupportInd = &v2xSupportInd
var proseSupportInd bool = false
this.ProseSupportInd = &proseSupportInd
return &this
}
// NewPcfInfoWithDefaults instantiates a new PcfInfo 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 NewPcfInfoWithDefaults() *PcfInfo {
this := PcfInfo{}
var v2xSupportInd bool = false
this.V2xSupportInd = &v2xSupportInd
var proseSupportInd bool = false
this.ProseSupportInd = &proseSupportInd
return &this
}
// GetGroupId returns the GroupId field value if set, zero value otherwise.
func (o *PcfInfo) GetGroupId() string {
if o == nil || IsNil(o.GroupId) {
var ret string
return ret
}
return *o.GroupId
}
// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcfInfo) GetGroupIdOk() (*string, bool) {
if o == nil || IsNil(o.GroupId) {
return nil, false
}
return o.GroupId, true
}
// HasGroupId returns a boolean if a field has been set.
func (o *PcfInfo) HasGroupId() bool {
if o != nil && !IsNil(o.GroupId) {
return true
}
return false
}
// SetGroupId gets a reference to the given string and assigns it to the GroupId field.
func (o *PcfInfo) SetGroupId(v string) {
o.GroupId = &v
}
// GetDnnList returns the DnnList field value if set, zero value otherwise.
func (o *PcfInfo) GetDnnList() []string {
if o == nil || IsNil(o.DnnList) {
var ret []string
return ret
}
return o.DnnList
}
// GetDnnListOk returns a tuple with the DnnList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcfInfo) GetDnnListOk() ([]string, bool) {
if o == nil || IsNil(o.DnnList) {
return nil, false
}
return o.DnnList, true
}
// HasDnnList returns a boolean if a field has been set.
func (o *PcfInfo) HasDnnList() bool {
if o != nil && !IsNil(o.DnnList) {
return true
}
return false
}
// SetDnnList gets a reference to the given []string and assigns it to the DnnList field.
func (o *PcfInfo) SetDnnList(v []string) {
o.DnnList = v
}
// GetSupiRanges returns the SupiRanges field value if set, zero value otherwise.
func (o *PcfInfo) GetSupiRanges() []SupiRange {
if o == nil || IsNil(o.SupiRanges) {
var ret []SupiRange
return ret
}
return o.SupiRanges
}
// GetSupiRangesOk returns a tuple with the SupiRanges field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcfInfo) GetSupiRangesOk() ([]SupiRange, bool) {
if o == nil || IsNil(o.SupiRanges) {
return nil, false
}
return o.SupiRanges, true
}
// HasSupiRanges returns a boolean if a field has been set.
func (o *PcfInfo) HasSupiRanges() bool {
if o != nil && !IsNil(o.SupiRanges) {
return true
}
return false
}
// SetSupiRanges gets a reference to the given []SupiRange and assigns it to the SupiRanges field.
func (o *PcfInfo) SetSupiRanges(v []SupiRange) {
o.SupiRanges = v
}
// GetGpsiRanges returns the GpsiRanges field value if set, zero value otherwise.
func (o *PcfInfo) GetGpsiRanges() []IdentityRange {
if o == nil || IsNil(o.GpsiRanges) {
var ret []IdentityRange
return ret
}
return o.GpsiRanges
}
// GetGpsiRangesOk returns a tuple with the GpsiRanges field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcfInfo) GetGpsiRangesOk() ([]IdentityRange, bool) {
if o == nil || IsNil(o.GpsiRanges) {
return nil, false
}
return o.GpsiRanges, true
}
// HasGpsiRanges returns a boolean if a field has been set.
func (o *PcfInfo) HasGpsiRanges() bool {
if o != nil && !IsNil(o.GpsiRanges) {
return true
}
return false
}
// SetGpsiRanges gets a reference to the given []IdentityRange and assigns it to the GpsiRanges field.
func (o *PcfInfo) SetGpsiRanges(v []IdentityRange) {
o.GpsiRanges = v
}
// GetRxDiamHost returns the RxDiamHost field value if set, zero value otherwise.
func (o *PcfInfo) GetRxDiamHost() string {
if o == nil || IsNil(o.RxDiamHost) {
var ret string
return ret
}
return *o.RxDiamHost
}
// GetRxDiamHostOk returns a tuple with the RxDiamHost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcfInfo) GetRxDiamHostOk() (*string, bool) {
if o == nil || IsNil(o.RxDiamHost) {
return nil, false
}
return o.RxDiamHost, true
}
// HasRxDiamHost returns a boolean if a field has been set.
func (o *PcfInfo) HasRxDiamHost() bool {
if o != nil && !IsNil(o.RxDiamHost) {
return true
}
return false
}
// SetRxDiamHost gets a reference to the given string and assigns it to the RxDiamHost field.
func (o *PcfInfo) SetRxDiamHost(v string) {
o.RxDiamHost = &v
}
// GetRxDiamRealm returns the RxDiamRealm field value if set, zero value otherwise.
func (o *PcfInfo) GetRxDiamRealm() string {
if o == nil || IsNil(o.RxDiamRealm) {
var ret string
return ret
}
return *o.RxDiamRealm
}
// GetRxDiamRealmOk returns a tuple with the RxDiamRealm field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcfInfo) GetRxDiamRealmOk() (*string, bool) {
if o == nil || IsNil(o.RxDiamRealm) {
return nil, false
}
return o.RxDiamRealm, true
}
// HasRxDiamRealm returns a boolean if a field has been set.
func (o *PcfInfo) HasRxDiamRealm() bool {
if o != nil && !IsNil(o.RxDiamRealm) {
return true
}
return false
}
// SetRxDiamRealm gets a reference to the given string and assigns it to the RxDiamRealm field.
func (o *PcfInfo) SetRxDiamRealm(v string) {
o.RxDiamRealm = &v
}
// GetV2xSupportInd returns the V2xSupportInd field value if set, zero value otherwise.
func (o *PcfInfo) GetV2xSupportInd() bool {
if o == nil || IsNil(o.V2xSupportInd) {
var ret bool
return ret
}
return *o.V2xSupportInd
}
// GetV2xSupportIndOk returns a tuple with the V2xSupportInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcfInfo) GetV2xSupportIndOk() (*bool, bool) {
if o == nil || IsNil(o.V2xSupportInd) {
return nil, false
}
return o.V2xSupportInd, true
}
// HasV2xSupportInd returns a boolean if a field has been set.
func (o *PcfInfo) HasV2xSupportInd() bool {
if o != nil && !IsNil(o.V2xSupportInd) {
return true
}
return false
}
// SetV2xSupportInd gets a reference to the given bool and assigns it to the V2xSupportInd field.
func (o *PcfInfo) SetV2xSupportInd(v bool) {
o.V2xSupportInd = &v
}
// GetProseSupportInd returns the ProseSupportInd field value if set, zero value otherwise.
func (o *PcfInfo) GetProseSupportInd() bool {
if o == nil || IsNil(o.ProseSupportInd) {
var ret bool
return ret
}
return *o.ProseSupportInd
}
// GetProseSupportIndOk returns a tuple with the ProseSupportInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcfInfo) GetProseSupportIndOk() (*bool, bool) {
if o == nil || IsNil(o.ProseSupportInd) {
return nil, false
}
return o.ProseSupportInd, true
}
// HasProseSupportInd returns a boolean if a field has been set.
func (o *PcfInfo) HasProseSupportInd() bool {
if o != nil && !IsNil(o.ProseSupportInd) {
return true
}
return false
}
// SetProseSupportInd gets a reference to the given bool and assigns it to the ProseSupportInd field.
func (o *PcfInfo) SetProseSupportInd(v bool) {
o.ProseSupportInd = &v
}
// GetProseCapability returns the ProseCapability field value if set, zero value otherwise.
func (o *PcfInfo) GetProseCapability() ProSeCapability {
if o == nil || IsNil(o.ProseCapability) {
var ret ProSeCapability
return ret
}
return *o.ProseCapability
}
// GetProseCapabilityOk returns a tuple with the ProseCapability field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcfInfo) GetProseCapabilityOk() (*ProSeCapability, bool) {
if o == nil || IsNil(o.ProseCapability) {
return nil, false
}
return o.ProseCapability, true
}
// HasProseCapability returns a boolean if a field has been set.
func (o *PcfInfo) HasProseCapability() bool {
if o != nil && !IsNil(o.ProseCapability) {
return true
}
return false
}
// SetProseCapability gets a reference to the given ProSeCapability and assigns it to the ProseCapability field.
func (o *PcfInfo) SetProseCapability(v ProSeCapability) {
o.ProseCapability = &v
}
// GetV2xCapability returns the V2xCapability field value if set, zero value otherwise.
func (o *PcfInfo) GetV2xCapability() V2xCapability {
if o == nil || IsNil(o.V2xCapability) {
var ret V2xCapability
return ret
}
return *o.V2xCapability
}
// GetV2xCapabilityOk returns a tuple with the V2xCapability field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PcfInfo) GetV2xCapabilityOk() (*V2xCapability, bool) {
if o == nil || IsNil(o.V2xCapability) {
return nil, false
}
return o.V2xCapability, true
}
// HasV2xCapability returns a boolean if a field has been set.
func (o *PcfInfo) HasV2xCapability() bool {
if o != nil && !IsNil(o.V2xCapability) {
return true
}
return false
}
// SetV2xCapability gets a reference to the given V2xCapability and assigns it to the V2xCapability field.
func (o *PcfInfo) SetV2xCapability(v V2xCapability) {
o.V2xCapability = &v
}
func (o PcfInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PcfInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.GroupId) {
toSerialize["groupId"] = o.GroupId
}
if !IsNil(o.DnnList) {
toSerialize["dnnList"] = o.DnnList
}
if !IsNil(o.SupiRanges) {
toSerialize["supiRanges"] = o.SupiRanges
}
if !IsNil(o.GpsiRanges) {
toSerialize["gpsiRanges"] = o.GpsiRanges
}
if !IsNil(o.RxDiamHost) {
toSerialize["rxDiamHost"] = o.RxDiamHost
}
if !IsNil(o.RxDiamRealm) {
toSerialize["rxDiamRealm"] = o.RxDiamRealm
}
if !IsNil(o.V2xSupportInd) {
toSerialize["v2xSupportInd"] = o.V2xSupportInd
}
if !IsNil(o.ProseSupportInd) {
toSerialize["proseSupportInd"] = o.ProseSupportInd
}
if !IsNil(o.ProseCapability) {
toSerialize["proseCapability"] = o.ProseCapability
}
if !IsNil(o.V2xCapability) {
toSerialize["v2xCapability"] = o.V2xCapability
}
return toSerialize, nil
}
type NullablePcfInfo struct {
value *PcfInfo
isSet bool
}
func (v NullablePcfInfo) Get() *PcfInfo {
return v.value
}
func (v *NullablePcfInfo) Set(val *PcfInfo) {
v.value = val
v.isSet = true
}
func (v NullablePcfInfo) IsSet() bool {
return v.isSet
}
func (v *NullablePcfInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePcfInfo(val *PcfInfo) *NullablePcfInfo {
return &NullablePcfInfo{value: val, isSet: true}
}
func (v NullablePcfInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePcfInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}