This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_amf_info.go
391 lines (330 loc) · 11.3 KB
/
model_amf_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
/*
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 AmfInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AmfInfo{}
// AmfInfo Information of an AMF NF Instance
type AmfInfo struct {
// String identifying the AMF Set ID (10 bits) as specified in clause 2.10.1 of 3GPP TS 23.003. It is encoded as a string of 3 hexadecimal characters where the first character is limited to values 0 to 3 (i.e. 10 bits).
AmfSetId string `json:"amfSetId"`
// String identifying the AMF Set ID (10 bits) as specified in clause 2.10.1 of 3GPP TS 23.003. It is encoded as a string of 3 hexadecimal characters where the first character is limited to values 0 to 3 (i.e. 10 bits)
AmfRegionId string `json:"amfRegionId"`
GuamiList []Guami `json:"guamiList"`
TaiList []Tai `json:"taiList,omitempty"`
TaiRangeList []TaiRange `json:"taiRangeList,omitempty"`
BackupInfoAmfFailure []Guami `json:"backupInfoAmfFailure,omitempty"`
BackupInfoAmfRemoval []Guami `json:"backupInfoAmfRemoval,omitempty"`
N2InterfaceAmfInfo *N2InterfaceAmfInfo `json:"n2InterfaceAmfInfo,omitempty"`
AmfOnboardingCapability *bool `json:"amfOnboardingCapability,omitempty"`
}
// NewAmfInfo instantiates a new AmfInfo 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 NewAmfInfo(amfSetId string, amfRegionId string, guamiList []Guami) *AmfInfo {
this := AmfInfo{}
this.AmfSetId = amfSetId
this.AmfRegionId = amfRegionId
this.GuamiList = guamiList
var amfOnboardingCapability bool = false
this.AmfOnboardingCapability = &amfOnboardingCapability
return &this
}
// NewAmfInfoWithDefaults instantiates a new AmfInfo 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 NewAmfInfoWithDefaults() *AmfInfo {
this := AmfInfo{}
var amfOnboardingCapability bool = false
this.AmfOnboardingCapability = &amfOnboardingCapability
return &this
}
// GetAmfSetId returns the AmfSetId field value
func (o *AmfInfo) GetAmfSetId() string {
if o == nil {
var ret string
return ret
}
return o.AmfSetId
}
// GetAmfSetIdOk returns a tuple with the AmfSetId field value
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetAmfSetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AmfSetId, true
}
// SetAmfSetId sets field value
func (o *AmfInfo) SetAmfSetId(v string) {
o.AmfSetId = v
}
// GetAmfRegionId returns the AmfRegionId field value
func (o *AmfInfo) GetAmfRegionId() string {
if o == nil {
var ret string
return ret
}
return o.AmfRegionId
}
// GetAmfRegionIdOk returns a tuple with the AmfRegionId field value
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetAmfRegionIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AmfRegionId, true
}
// SetAmfRegionId sets field value
func (o *AmfInfo) SetAmfRegionId(v string) {
o.AmfRegionId = v
}
// GetGuamiList returns the GuamiList field value
func (o *AmfInfo) GetGuamiList() []Guami {
if o == nil {
var ret []Guami
return ret
}
return o.GuamiList
}
// GetGuamiListOk returns a tuple with the GuamiList field value
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetGuamiListOk() ([]Guami, bool) {
if o == nil {
return nil, false
}
return o.GuamiList, true
}
// SetGuamiList sets field value
func (o *AmfInfo) SetGuamiList(v []Guami) {
o.GuamiList = v
}
// GetTaiList returns the TaiList field value if set, zero value otherwise.
func (o *AmfInfo) GetTaiList() []Tai {
if o == nil || IsNil(o.TaiList) {
var ret []Tai
return ret
}
return o.TaiList
}
// GetTaiListOk returns a tuple with the TaiList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetTaiListOk() ([]Tai, bool) {
if o == nil || IsNil(o.TaiList) {
return nil, false
}
return o.TaiList, true
}
// HasTaiList returns a boolean if a field has been set.
func (o *AmfInfo) HasTaiList() bool {
if o != nil && !IsNil(o.TaiList) {
return true
}
return false
}
// SetTaiList gets a reference to the given []Tai and assigns it to the TaiList field.
func (o *AmfInfo) SetTaiList(v []Tai) {
o.TaiList = v
}
// GetTaiRangeList returns the TaiRangeList field value if set, zero value otherwise.
func (o *AmfInfo) GetTaiRangeList() []TaiRange {
if o == nil || IsNil(o.TaiRangeList) {
var ret []TaiRange
return ret
}
return o.TaiRangeList
}
// GetTaiRangeListOk returns a tuple with the TaiRangeList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetTaiRangeListOk() ([]TaiRange, bool) {
if o == nil || IsNil(o.TaiRangeList) {
return nil, false
}
return o.TaiRangeList, true
}
// HasTaiRangeList returns a boolean if a field has been set.
func (o *AmfInfo) HasTaiRangeList() bool {
if o != nil && !IsNil(o.TaiRangeList) {
return true
}
return false
}
// SetTaiRangeList gets a reference to the given []TaiRange and assigns it to the TaiRangeList field.
func (o *AmfInfo) SetTaiRangeList(v []TaiRange) {
o.TaiRangeList = v
}
// GetBackupInfoAmfFailure returns the BackupInfoAmfFailure field value if set, zero value otherwise.
func (o *AmfInfo) GetBackupInfoAmfFailure() []Guami {
if o == nil || IsNil(o.BackupInfoAmfFailure) {
var ret []Guami
return ret
}
return o.BackupInfoAmfFailure
}
// GetBackupInfoAmfFailureOk returns a tuple with the BackupInfoAmfFailure field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetBackupInfoAmfFailureOk() ([]Guami, bool) {
if o == nil || IsNil(o.BackupInfoAmfFailure) {
return nil, false
}
return o.BackupInfoAmfFailure, true
}
// HasBackupInfoAmfFailure returns a boolean if a field has been set.
func (o *AmfInfo) HasBackupInfoAmfFailure() bool {
if o != nil && !IsNil(o.BackupInfoAmfFailure) {
return true
}
return false
}
// SetBackupInfoAmfFailure gets a reference to the given []Guami and assigns it to the BackupInfoAmfFailure field.
func (o *AmfInfo) SetBackupInfoAmfFailure(v []Guami) {
o.BackupInfoAmfFailure = v
}
// GetBackupInfoAmfRemoval returns the BackupInfoAmfRemoval field value if set, zero value otherwise.
func (o *AmfInfo) GetBackupInfoAmfRemoval() []Guami {
if o == nil || IsNil(o.BackupInfoAmfRemoval) {
var ret []Guami
return ret
}
return o.BackupInfoAmfRemoval
}
// GetBackupInfoAmfRemovalOk returns a tuple with the BackupInfoAmfRemoval field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetBackupInfoAmfRemovalOk() ([]Guami, bool) {
if o == nil || IsNil(o.BackupInfoAmfRemoval) {
return nil, false
}
return o.BackupInfoAmfRemoval, true
}
// HasBackupInfoAmfRemoval returns a boolean if a field has been set.
func (o *AmfInfo) HasBackupInfoAmfRemoval() bool {
if o != nil && !IsNil(o.BackupInfoAmfRemoval) {
return true
}
return false
}
// SetBackupInfoAmfRemoval gets a reference to the given []Guami and assigns it to the BackupInfoAmfRemoval field.
func (o *AmfInfo) SetBackupInfoAmfRemoval(v []Guami) {
o.BackupInfoAmfRemoval = v
}
// GetN2InterfaceAmfInfo returns the N2InterfaceAmfInfo field value if set, zero value otherwise.
func (o *AmfInfo) GetN2InterfaceAmfInfo() N2InterfaceAmfInfo {
if o == nil || IsNil(o.N2InterfaceAmfInfo) {
var ret N2InterfaceAmfInfo
return ret
}
return *o.N2InterfaceAmfInfo
}
// GetN2InterfaceAmfInfoOk returns a tuple with the N2InterfaceAmfInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetN2InterfaceAmfInfoOk() (*N2InterfaceAmfInfo, bool) {
if o == nil || IsNil(o.N2InterfaceAmfInfo) {
return nil, false
}
return o.N2InterfaceAmfInfo, true
}
// HasN2InterfaceAmfInfo returns a boolean if a field has been set.
func (o *AmfInfo) HasN2InterfaceAmfInfo() bool {
if o != nil && !IsNil(o.N2InterfaceAmfInfo) {
return true
}
return false
}
// SetN2InterfaceAmfInfo gets a reference to the given N2InterfaceAmfInfo and assigns it to the N2InterfaceAmfInfo field.
func (o *AmfInfo) SetN2InterfaceAmfInfo(v N2InterfaceAmfInfo) {
o.N2InterfaceAmfInfo = &v
}
// GetAmfOnboardingCapability returns the AmfOnboardingCapability field value if set, zero value otherwise.
func (o *AmfInfo) GetAmfOnboardingCapability() bool {
if o == nil || IsNil(o.AmfOnboardingCapability) {
var ret bool
return ret
}
return *o.AmfOnboardingCapability
}
// GetAmfOnboardingCapabilityOk returns a tuple with the AmfOnboardingCapability field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AmfInfo) GetAmfOnboardingCapabilityOk() (*bool, bool) {
if o == nil || IsNil(o.AmfOnboardingCapability) {
return nil, false
}
return o.AmfOnboardingCapability, true
}
// HasAmfOnboardingCapability returns a boolean if a field has been set.
func (o *AmfInfo) HasAmfOnboardingCapability() bool {
if o != nil && !IsNil(o.AmfOnboardingCapability) {
return true
}
return false
}
// SetAmfOnboardingCapability gets a reference to the given bool and assigns it to the AmfOnboardingCapability field.
func (o *AmfInfo) SetAmfOnboardingCapability(v bool) {
o.AmfOnboardingCapability = &v
}
func (o AmfInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AmfInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["amfSetId"] = o.AmfSetId
toSerialize["amfRegionId"] = o.AmfRegionId
toSerialize["guamiList"] = o.GuamiList
if !IsNil(o.TaiList) {
toSerialize["taiList"] = o.TaiList
}
if !IsNil(o.TaiRangeList) {
toSerialize["taiRangeList"] = o.TaiRangeList
}
if !IsNil(o.BackupInfoAmfFailure) {
toSerialize["backupInfoAmfFailure"] = o.BackupInfoAmfFailure
}
if !IsNil(o.BackupInfoAmfRemoval) {
toSerialize["backupInfoAmfRemoval"] = o.BackupInfoAmfRemoval
}
if !IsNil(o.N2InterfaceAmfInfo) {
toSerialize["n2InterfaceAmfInfo"] = o.N2InterfaceAmfInfo
}
if !IsNil(o.AmfOnboardingCapability) {
toSerialize["amfOnboardingCapability"] = o.AmfOnboardingCapability
}
return toSerialize, nil
}
type NullableAmfInfo struct {
value *AmfInfo
isSet bool
}
func (v NullableAmfInfo) Get() *AmfInfo {
return v.value
}
func (v *NullableAmfInfo) Set(val *AmfInfo) {
v.value = val
v.isSet = true
}
func (v NullableAmfInfo) IsSet() bool {
return v.isSet
}
func (v *NullableAmfInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAmfInfo(val *AmfInfo) *NullableAmfInfo {
return &NullableAmfInfo{value: val, isSet: true}
}
func (v NullableAmfInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAmfInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}