This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_n1_message_notification.go
409 lines (346 loc) · 12.5 KB
/
model_n1_message_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
/*
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 N1MessageNotification type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &N1MessageNotification{}
// N1MessageNotification Data within a N1 message notification request
type N1MessageNotification struct {
N1NotifySubscriptionId *string `json:"n1NotifySubscriptionId,omitempty"`
N1MessageContainer N1MessageContainer `json:"n1MessageContainer"`
// LCS Correlation ID.
LcsCorrelationId *string `json:"lcsCorrelationId,omitempty"`
RegistrationCtxtContainer *RegistrationContextContainer `json:"registrationCtxtContainer,omitempty"`
// LMF identification.
NewLmfIdentification *string `json:"newLmfIdentification,omitempty"`
Guami *Guami `json:"guami,omitempty"`
CIoT5GSOptimisation *bool `json:"cIoT5GSOptimisation,omitempty"`
Ecgi *Ecgi `json:"ecgi,omitempty"`
Ncgi *Ncgi `json:"ncgi,omitempty"`
}
// NewN1MessageNotification instantiates a new N1MessageNotification 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 NewN1MessageNotification(n1MessageContainer N1MessageContainer) *N1MessageNotification {
this := N1MessageNotification{}
this.N1MessageContainer = n1MessageContainer
var cIoT5GSOptimisation bool = false
this.CIoT5GSOptimisation = &cIoT5GSOptimisation
return &this
}
// NewN1MessageNotificationWithDefaults instantiates a new N1MessageNotification 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 NewN1MessageNotificationWithDefaults() *N1MessageNotification {
this := N1MessageNotification{}
var cIoT5GSOptimisation bool = false
this.CIoT5GSOptimisation = &cIoT5GSOptimisation
return &this
}
// GetN1NotifySubscriptionId returns the N1NotifySubscriptionId field value if set, zero value otherwise.
func (o *N1MessageNotification) GetN1NotifySubscriptionId() string {
if o == nil || IsNil(o.N1NotifySubscriptionId) {
var ret string
return ret
}
return *o.N1NotifySubscriptionId
}
// GetN1NotifySubscriptionIdOk returns a tuple with the N1NotifySubscriptionId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N1MessageNotification) GetN1NotifySubscriptionIdOk() (*string, bool) {
if o == nil || IsNil(o.N1NotifySubscriptionId) {
return nil, false
}
return o.N1NotifySubscriptionId, true
}
// HasN1NotifySubscriptionId returns a boolean if a field has been set.
func (o *N1MessageNotification) HasN1NotifySubscriptionId() bool {
if o != nil && !IsNil(o.N1NotifySubscriptionId) {
return true
}
return false
}
// SetN1NotifySubscriptionId gets a reference to the given string and assigns it to the N1NotifySubscriptionId field.
func (o *N1MessageNotification) SetN1NotifySubscriptionId(v string) {
o.N1NotifySubscriptionId = &v
}
// GetN1MessageContainer returns the N1MessageContainer field value
func (o *N1MessageNotification) GetN1MessageContainer() N1MessageContainer {
if o == nil {
var ret N1MessageContainer
return ret
}
return o.N1MessageContainer
}
// GetN1MessageContainerOk returns a tuple with the N1MessageContainer field value
// and a boolean to check if the value has been set.
func (o *N1MessageNotification) GetN1MessageContainerOk() (*N1MessageContainer, bool) {
if o == nil {
return nil, false
}
return &o.N1MessageContainer, true
}
// SetN1MessageContainer sets field value
func (o *N1MessageNotification) SetN1MessageContainer(v N1MessageContainer) {
o.N1MessageContainer = v
}
// GetLcsCorrelationId returns the LcsCorrelationId field value if set, zero value otherwise.
func (o *N1MessageNotification) 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 *N1MessageNotification) 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 *N1MessageNotification) 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 *N1MessageNotification) SetLcsCorrelationId(v string) {
o.LcsCorrelationId = &v
}
// GetRegistrationCtxtContainer returns the RegistrationCtxtContainer field value if set, zero value otherwise.
func (o *N1MessageNotification) GetRegistrationCtxtContainer() RegistrationContextContainer {
if o == nil || IsNil(o.RegistrationCtxtContainer) {
var ret RegistrationContextContainer
return ret
}
return *o.RegistrationCtxtContainer
}
// GetRegistrationCtxtContainerOk returns a tuple with the RegistrationCtxtContainer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N1MessageNotification) GetRegistrationCtxtContainerOk() (*RegistrationContextContainer, bool) {
if o == nil || IsNil(o.RegistrationCtxtContainer) {
return nil, false
}
return o.RegistrationCtxtContainer, true
}
// HasRegistrationCtxtContainer returns a boolean if a field has been set.
func (o *N1MessageNotification) HasRegistrationCtxtContainer() bool {
if o != nil && !IsNil(o.RegistrationCtxtContainer) {
return true
}
return false
}
// SetRegistrationCtxtContainer gets a reference to the given RegistrationContextContainer and assigns it to the RegistrationCtxtContainer field.
func (o *N1MessageNotification) SetRegistrationCtxtContainer(v RegistrationContextContainer) {
o.RegistrationCtxtContainer = &v
}
// GetNewLmfIdentification returns the NewLmfIdentification field value if set, zero value otherwise.
func (o *N1MessageNotification) GetNewLmfIdentification() string {
if o == nil || IsNil(o.NewLmfIdentification) {
var ret string
return ret
}
return *o.NewLmfIdentification
}
// GetNewLmfIdentificationOk returns a tuple with the NewLmfIdentification field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N1MessageNotification) GetNewLmfIdentificationOk() (*string, bool) {
if o == nil || IsNil(o.NewLmfIdentification) {
return nil, false
}
return o.NewLmfIdentification, true
}
// HasNewLmfIdentification returns a boolean if a field has been set.
func (o *N1MessageNotification) HasNewLmfIdentification() bool {
if o != nil && !IsNil(o.NewLmfIdentification) {
return true
}
return false
}
// SetNewLmfIdentification gets a reference to the given string and assigns it to the NewLmfIdentification field.
func (o *N1MessageNotification) SetNewLmfIdentification(v string) {
o.NewLmfIdentification = &v
}
// GetGuami returns the Guami field value if set, zero value otherwise.
func (o *N1MessageNotification) 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 *N1MessageNotification) 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 *N1MessageNotification) 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 *N1MessageNotification) SetGuami(v Guami) {
o.Guami = &v
}
// GetCIoT5GSOptimisation returns the CIoT5GSOptimisation field value if set, zero value otherwise.
func (o *N1MessageNotification) GetCIoT5GSOptimisation() bool {
if o == nil || IsNil(o.CIoT5GSOptimisation) {
var ret bool
return ret
}
return *o.CIoT5GSOptimisation
}
// GetCIoT5GSOptimisationOk returns a tuple with the CIoT5GSOptimisation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N1MessageNotification) GetCIoT5GSOptimisationOk() (*bool, bool) {
if o == nil || IsNil(o.CIoT5GSOptimisation) {
return nil, false
}
return o.CIoT5GSOptimisation, true
}
// HasCIoT5GSOptimisation returns a boolean if a field has been set.
func (o *N1MessageNotification) HasCIoT5GSOptimisation() bool {
if o != nil && !IsNil(o.CIoT5GSOptimisation) {
return true
}
return false
}
// SetCIoT5GSOptimisation gets a reference to the given bool and assigns it to the CIoT5GSOptimisation field.
func (o *N1MessageNotification) SetCIoT5GSOptimisation(v bool) {
o.CIoT5GSOptimisation = &v
}
// GetEcgi returns the Ecgi field value if set, zero value otherwise.
func (o *N1MessageNotification) GetEcgi() Ecgi {
if o == nil || IsNil(o.Ecgi) {
var ret Ecgi
return ret
}
return *o.Ecgi
}
// GetEcgiOk returns a tuple with the Ecgi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N1MessageNotification) GetEcgiOk() (*Ecgi, bool) {
if o == nil || IsNil(o.Ecgi) {
return nil, false
}
return o.Ecgi, true
}
// HasEcgi returns a boolean if a field has been set.
func (o *N1MessageNotification) HasEcgi() bool {
if o != nil && !IsNil(o.Ecgi) {
return true
}
return false
}
// SetEcgi gets a reference to the given Ecgi and assigns it to the Ecgi field.
func (o *N1MessageNotification) SetEcgi(v Ecgi) {
o.Ecgi = &v
}
// GetNcgi returns the Ncgi field value if set, zero value otherwise.
func (o *N1MessageNotification) GetNcgi() Ncgi {
if o == nil || IsNil(o.Ncgi) {
var ret Ncgi
return ret
}
return *o.Ncgi
}
// GetNcgiOk returns a tuple with the Ncgi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *N1MessageNotification) GetNcgiOk() (*Ncgi, bool) {
if o == nil || IsNil(o.Ncgi) {
return nil, false
}
return o.Ncgi, true
}
// HasNcgi returns a boolean if a field has been set.
func (o *N1MessageNotification) HasNcgi() bool {
if o != nil && !IsNil(o.Ncgi) {
return true
}
return false
}
// SetNcgi gets a reference to the given Ncgi and assigns it to the Ncgi field.
func (o *N1MessageNotification) SetNcgi(v Ncgi) {
o.Ncgi = &v
}
func (o N1MessageNotification) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o N1MessageNotification) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.N1NotifySubscriptionId) {
toSerialize["n1NotifySubscriptionId"] = o.N1NotifySubscriptionId
}
toSerialize["n1MessageContainer"] = o.N1MessageContainer
if !IsNil(o.LcsCorrelationId) {
toSerialize["lcsCorrelationId"] = o.LcsCorrelationId
}
if !IsNil(o.RegistrationCtxtContainer) {
toSerialize["registrationCtxtContainer"] = o.RegistrationCtxtContainer
}
if !IsNil(o.NewLmfIdentification) {
toSerialize["newLmfIdentification"] = o.NewLmfIdentification
}
if !IsNil(o.Guami) {
toSerialize["guami"] = o.Guami
}
if !IsNil(o.CIoT5GSOptimisation) {
toSerialize["cIoT5GSOptimisation"] = o.CIoT5GSOptimisation
}
if !IsNil(o.Ecgi) {
toSerialize["ecgi"] = o.Ecgi
}
if !IsNil(o.Ncgi) {
toSerialize["ncgi"] = o.Ncgi
}
return toSerialize, nil
}
type NullableN1MessageNotification struct {
value *N1MessageNotification
isSet bool
}
func (v NullableN1MessageNotification) Get() *N1MessageNotification {
return v.value
}
func (v *NullableN1MessageNotification) Set(val *N1MessageNotification) {
v.value = val
v.isSet = true
}
func (v NullableN1MessageNotification) IsSet() bool {
return v.isSet
}
func (v *NullableN1MessageNotification) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableN1MessageNotification(val *N1MessageNotification) *NullableN1MessageNotification {
return &NullableN1MessageNotification{value: val, isSet: true}
}
func (v NullableN1MessageNotification) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableN1MessageNotification) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}