This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_n2_information_notification.go
518 lines (440 loc) · 16.1 KB
/
model_n2_information_notification.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
/*
Namf_Communication
AMF Communication Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.3.0-alpha.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Namf_Communication
import (
"encoding/json"
)
// checks if the N2InformationNotification type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &N2InformationNotification{}
// N2InformationNotification Data within a N2 information notification request
type N2InformationNotification struct {
N2NotifySubscriptionId string `json:"n2NotifySubscriptionId"`
N2InfoContainer *N2InfoContainer `json:"n2InfoContainer,omitempty"`
ToReleaseSessionList []int32 `json:"toReleaseSessionList,omitempty"`
// LCS Correlation ID.
LcsCorrelationId *string `json:"lcsCorrelationId,omitempty"`
NotifyReason *N2InfoNotifyReason `json:"notifyReason,omitempty"`
SmfChangeInfoList []SmfChangeInfo `json:"smfChangeInfoList,omitempty"`
RanNodeId *GlobalRanNodeId `json:"ranNodeId,omitempty"`
// Fully Qualified Domain Name
InitialAmfName *string `json:"initialAmfName,omitempty"`
// String identifying a IPv4 address formatted in the 'dotted decimal' notation as defined in RFC 1166.
AnN2IPv4Addr *string `json:"anN2IPv4Addr,omitempty"`
AnN2IPv6Addr *Ipv6Addr `json:"anN2IPv6Addr,omitempty"`
Guami *Guami `json:"guami,omitempty"`
NotifySourceNgRan *bool `json:"notifySourceNgRan,omitempty"`
}
// NewN2InformationNotification instantiates a new N2InformationNotification 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 NewN2InformationNotification(n2NotifySubscriptionId string) *N2InformationNotification {
this := N2InformationNotification{}
this.N2NotifySubscriptionId = n2NotifySubscriptionId
var notifySourceNgRan bool = false
this.NotifySourceNgRan = ¬ifySourceNgRan
return &this
}
// NewN2InformationNotificationWithDefaults instantiates a new N2InformationNotification 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 NewN2InformationNotificationWithDefaults() *N2InformationNotification {
this := N2InformationNotification{}
var notifySourceNgRan bool = false
this.NotifySourceNgRan = ¬ifySourceNgRan
return &this
}
// GetN2NotifySubscriptionId returns the N2NotifySubscriptionId field value
func (o *N2InformationNotification) GetN2NotifySubscriptionId() string {
if o == nil {
var ret string
return ret
}
return o.N2NotifySubscriptionId
}
// GetN2NotifySubscriptionIdOk returns a tuple with the N2NotifySubscriptionId field value
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetN2NotifySubscriptionIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.N2NotifySubscriptionId, true
}
// SetN2NotifySubscriptionId sets field value
func (o *N2InformationNotification) SetN2NotifySubscriptionId(v string) {
o.N2NotifySubscriptionId = v
}
// GetN2InfoContainer returns the N2InfoContainer field value if set, zero value otherwise.
func (o *N2InformationNotification) GetN2InfoContainer() N2InfoContainer {
if o == nil || IsNil(o.N2InfoContainer) {
var ret N2InfoContainer
return ret
}
return *o.N2InfoContainer
}
// GetN2InfoContainerOk returns a tuple with the N2InfoContainer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetN2InfoContainerOk() (*N2InfoContainer, bool) {
if o == nil || IsNil(o.N2InfoContainer) {
return nil, false
}
return o.N2InfoContainer, true
}
// HasN2InfoContainer returns a boolean if a field has been set.
func (o *N2InformationNotification) HasN2InfoContainer() bool {
if o != nil && !IsNil(o.N2InfoContainer) {
return true
}
return false
}
// SetN2InfoContainer gets a reference to the given N2InfoContainer and assigns it to the N2InfoContainer field.
func (o *N2InformationNotification) SetN2InfoContainer(v N2InfoContainer) {
o.N2InfoContainer = &v
}
// GetToReleaseSessionList returns the ToReleaseSessionList field value if set, zero value otherwise.
func (o *N2InformationNotification) GetToReleaseSessionList() []int32 {
if o == nil || IsNil(o.ToReleaseSessionList) {
var ret []int32
return ret
}
return o.ToReleaseSessionList
}
// GetToReleaseSessionListOk returns a tuple with the ToReleaseSessionList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetToReleaseSessionListOk() ([]int32, bool) {
if o == nil || IsNil(o.ToReleaseSessionList) {
return nil, false
}
return o.ToReleaseSessionList, true
}
// HasToReleaseSessionList returns a boolean if a field has been set.
func (o *N2InformationNotification) HasToReleaseSessionList() bool {
if o != nil && !IsNil(o.ToReleaseSessionList) {
return true
}
return false
}
// SetToReleaseSessionList gets a reference to the given []int32 and assigns it to the ToReleaseSessionList field.
func (o *N2InformationNotification) SetToReleaseSessionList(v []int32) {
o.ToReleaseSessionList = v
}
// GetLcsCorrelationId returns the LcsCorrelationId field value if set, zero value otherwise.
func (o *N2InformationNotification) GetLcsCorrelationId() string {
if o == nil || IsNil(o.LcsCorrelationId) {
var ret string
return ret
}
return *o.LcsCorrelationId
}
// GetLcsCorrelationIdOk returns a tuple with the LcsCorrelationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetLcsCorrelationIdOk() (*string, bool) {
if o == nil || IsNil(o.LcsCorrelationId) {
return nil, false
}
return o.LcsCorrelationId, true
}
// HasLcsCorrelationId returns a boolean if a field has been set.
func (o *N2InformationNotification) HasLcsCorrelationId() bool {
if o != nil && !IsNil(o.LcsCorrelationId) {
return true
}
return false
}
// SetLcsCorrelationId gets a reference to the given string and assigns it to the LcsCorrelationId field.
func (o *N2InformationNotification) SetLcsCorrelationId(v string) {
o.LcsCorrelationId = &v
}
// GetNotifyReason returns the NotifyReason field value if set, zero value otherwise.
func (o *N2InformationNotification) GetNotifyReason() N2InfoNotifyReason {
if o == nil || IsNil(o.NotifyReason) {
var ret N2InfoNotifyReason
return ret
}
return *o.NotifyReason
}
// GetNotifyReasonOk returns a tuple with the NotifyReason field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetNotifyReasonOk() (*N2InfoNotifyReason, bool) {
if o == nil || IsNil(o.NotifyReason) {
return nil, false
}
return o.NotifyReason, true
}
// HasNotifyReason returns a boolean if a field has been set.
func (o *N2InformationNotification) HasNotifyReason() bool {
if o != nil && !IsNil(o.NotifyReason) {
return true
}
return false
}
// SetNotifyReason gets a reference to the given N2InfoNotifyReason and assigns it to the NotifyReason field.
func (o *N2InformationNotification) SetNotifyReason(v N2InfoNotifyReason) {
o.NotifyReason = &v
}
// GetSmfChangeInfoList returns the SmfChangeInfoList field value if set, zero value otherwise.
func (o *N2InformationNotification) GetSmfChangeInfoList() []SmfChangeInfo {
if o == nil || IsNil(o.SmfChangeInfoList) {
var ret []SmfChangeInfo
return ret
}
return o.SmfChangeInfoList
}
// GetSmfChangeInfoListOk returns a tuple with the SmfChangeInfoList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetSmfChangeInfoListOk() ([]SmfChangeInfo, bool) {
if o == nil || IsNil(o.SmfChangeInfoList) {
return nil, false
}
return o.SmfChangeInfoList, true
}
// HasSmfChangeInfoList returns a boolean if a field has been set.
func (o *N2InformationNotification) HasSmfChangeInfoList() bool {
if o != nil && !IsNil(o.SmfChangeInfoList) {
return true
}
return false
}
// SetSmfChangeInfoList gets a reference to the given []SmfChangeInfo and assigns it to the SmfChangeInfoList field.
func (o *N2InformationNotification) SetSmfChangeInfoList(v []SmfChangeInfo) {
o.SmfChangeInfoList = v
}
// GetRanNodeId returns the RanNodeId field value if set, zero value otherwise.
func (o *N2InformationNotification) GetRanNodeId() GlobalRanNodeId {
if o == nil || IsNil(o.RanNodeId) {
var ret GlobalRanNodeId
return ret
}
return *o.RanNodeId
}
// GetRanNodeIdOk returns a tuple with the RanNodeId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetRanNodeIdOk() (*GlobalRanNodeId, bool) {
if o == nil || IsNil(o.RanNodeId) {
return nil, false
}
return o.RanNodeId, true
}
// HasRanNodeId returns a boolean if a field has been set.
func (o *N2InformationNotification) HasRanNodeId() bool {
if o != nil && !IsNil(o.RanNodeId) {
return true
}
return false
}
// SetRanNodeId gets a reference to the given GlobalRanNodeId and assigns it to the RanNodeId field.
func (o *N2InformationNotification) SetRanNodeId(v GlobalRanNodeId) {
o.RanNodeId = &v
}
// GetInitialAmfName returns the InitialAmfName field value if set, zero value otherwise.
func (o *N2InformationNotification) GetInitialAmfName() string {
if o == nil || IsNil(o.InitialAmfName) {
var ret string
return ret
}
return *o.InitialAmfName
}
// GetInitialAmfNameOk returns a tuple with the InitialAmfName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetInitialAmfNameOk() (*string, bool) {
if o == nil || IsNil(o.InitialAmfName) {
return nil, false
}
return o.InitialAmfName, true
}
// HasInitialAmfName returns a boolean if a field has been set.
func (o *N2InformationNotification) HasInitialAmfName() bool {
if o != nil && !IsNil(o.InitialAmfName) {
return true
}
return false
}
// SetInitialAmfName gets a reference to the given string and assigns it to the InitialAmfName field.
func (o *N2InformationNotification) SetInitialAmfName(v string) {
o.InitialAmfName = &v
}
// GetAnN2IPv4Addr returns the AnN2IPv4Addr field value if set, zero value otherwise.
func (o *N2InformationNotification) GetAnN2IPv4Addr() string {
if o == nil || IsNil(o.AnN2IPv4Addr) {
var ret string
return ret
}
return *o.AnN2IPv4Addr
}
// GetAnN2IPv4AddrOk returns a tuple with the AnN2IPv4Addr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetAnN2IPv4AddrOk() (*string, bool) {
if o == nil || IsNil(o.AnN2IPv4Addr) {
return nil, false
}
return o.AnN2IPv4Addr, true
}
// HasAnN2IPv4Addr returns a boolean if a field has been set.
func (o *N2InformationNotification) HasAnN2IPv4Addr() bool {
if o != nil && !IsNil(o.AnN2IPv4Addr) {
return true
}
return false
}
// SetAnN2IPv4Addr gets a reference to the given string and assigns it to the AnN2IPv4Addr field.
func (o *N2InformationNotification) SetAnN2IPv4Addr(v string) {
o.AnN2IPv4Addr = &v
}
// GetAnN2IPv6Addr returns the AnN2IPv6Addr field value if set, zero value otherwise.
func (o *N2InformationNotification) GetAnN2IPv6Addr() Ipv6Addr {
if o == nil || IsNil(o.AnN2IPv6Addr) {
var ret Ipv6Addr
return ret
}
return *o.AnN2IPv6Addr
}
// GetAnN2IPv6AddrOk returns a tuple with the AnN2IPv6Addr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetAnN2IPv6AddrOk() (*Ipv6Addr, bool) {
if o == nil || IsNil(o.AnN2IPv6Addr) {
return nil, false
}
return o.AnN2IPv6Addr, true
}
// HasAnN2IPv6Addr returns a boolean if a field has been set.
func (o *N2InformationNotification) HasAnN2IPv6Addr() bool {
if o != nil && !IsNil(o.AnN2IPv6Addr) {
return true
}
return false
}
// SetAnN2IPv6Addr gets a reference to the given Ipv6Addr and assigns it to the AnN2IPv6Addr field.
func (o *N2InformationNotification) SetAnN2IPv6Addr(v Ipv6Addr) {
o.AnN2IPv6Addr = &v
}
// GetGuami returns the Guami field value if set, zero value otherwise.
func (o *N2InformationNotification) GetGuami() Guami {
if o == nil || IsNil(o.Guami) {
var ret Guami
return ret
}
return *o.Guami
}
// GetGuamiOk returns a tuple with the Guami field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetGuamiOk() (*Guami, bool) {
if o == nil || IsNil(o.Guami) {
return nil, false
}
return o.Guami, true
}
// HasGuami returns a boolean if a field has been set.
func (o *N2InformationNotification) HasGuami() bool {
if o != nil && !IsNil(o.Guami) {
return true
}
return false
}
// SetGuami gets a reference to the given Guami and assigns it to the Guami field.
func (o *N2InformationNotification) SetGuami(v Guami) {
o.Guami = &v
}
// GetNotifySourceNgRan returns the NotifySourceNgRan field value if set, zero value otherwise.
func (o *N2InformationNotification) GetNotifySourceNgRan() bool {
if o == nil || IsNil(o.NotifySourceNgRan) {
var ret bool
return ret
}
return *o.NotifySourceNgRan
}
// GetNotifySourceNgRanOk returns a tuple with the NotifySourceNgRan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N2InformationNotification) GetNotifySourceNgRanOk() (*bool, bool) {
if o == nil || IsNil(o.NotifySourceNgRan) {
return nil, false
}
return o.NotifySourceNgRan, true
}
// HasNotifySourceNgRan returns a boolean if a field has been set.
func (o *N2InformationNotification) HasNotifySourceNgRan() bool {
if o != nil && !IsNil(o.NotifySourceNgRan) {
return true
}
return false
}
// SetNotifySourceNgRan gets a reference to the given bool and assigns it to the NotifySourceNgRan field.
func (o *N2InformationNotification) SetNotifySourceNgRan(v bool) {
o.NotifySourceNgRan = &v
}
func (o N2InformationNotification) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o N2InformationNotification) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["n2NotifySubscriptionId"] = o.N2NotifySubscriptionId
if !IsNil(o.N2InfoContainer) {
toSerialize["n2InfoContainer"] = o.N2InfoContainer
}
if !IsNil(o.ToReleaseSessionList) {
toSerialize["toReleaseSessionList"] = o.ToReleaseSessionList
}
if !IsNil(o.LcsCorrelationId) {
toSerialize["lcsCorrelationId"] = o.LcsCorrelationId
}
if !IsNil(o.NotifyReason) {
toSerialize["notifyReason"] = o.NotifyReason
}
if !IsNil(o.SmfChangeInfoList) {
toSerialize["smfChangeInfoList"] = o.SmfChangeInfoList
}
if !IsNil(o.RanNodeId) {
toSerialize["ranNodeId"] = o.RanNodeId
}
if !IsNil(o.InitialAmfName) {
toSerialize["initialAmfName"] = o.InitialAmfName
}
if !IsNil(o.AnN2IPv4Addr) {
toSerialize["anN2IPv4Addr"] = o.AnN2IPv4Addr
}
if !IsNil(o.AnN2IPv6Addr) {
toSerialize["anN2IPv6Addr"] = o.AnN2IPv6Addr
}
if !IsNil(o.Guami) {
toSerialize["guami"] = o.Guami
}
if !IsNil(o.NotifySourceNgRan) {
toSerialize["notifySourceNgRan"] = o.NotifySourceNgRan
}
return toSerialize, nil
}
type NullableN2InformationNotification struct {
value *N2InformationNotification
isSet bool
}
func (v NullableN2InformationNotification) Get() *N2InformationNotification {
return v.value
}
func (v *NullableN2InformationNotification) Set(val *N2InformationNotification) {
v.value = val
v.isSet = true
}
func (v NullableN2InformationNotification) IsSet() bool {
return v.isSet
}
func (v *NullableN2InformationNotification) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableN2InformationNotification(val *N2InformationNotification) *NullableN2InformationNotification {
return &NullableN2InformationNotification{value: val, isSet: true}
}
func (v NullableN2InformationNotification) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableN2InformationNotification) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}