This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model__mbs_contexts_post_request.go
485 lines (411 loc) · 16.9 KB
/
model__mbs_contexts_post_request.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
/*
Namf_MBSBroadcast
AMF MBSBroadcast 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_Namf_MBSBroadcast
import (
"encoding/json"
"os"
)
// checks if the MbsContextsPostRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MbsContextsPostRequest{}
// MbsContextsPostRequest struct for MbsContextsPostRequest
type MbsContextsPostRequest struct {
JsonData *ContextStatusNotification `json:"jsonData,omitempty"`
BinaryDataN2Information1 **os.File `json:"binaryDataN2Information1,omitempty"`
BinaryDataN2Information2 **os.File `json:"binaryDataN2Information2,omitempty"`
BinaryDataN2Information3 **os.File `json:"binaryDataN2Information3,omitempty"`
BinaryDataN2Information4 **os.File `json:"binaryDataN2Information4,omitempty"`
BinaryDataN2Information5 **os.File `json:"binaryDataN2Information5,omitempty"`
BinaryDataN2Information6 **os.File `json:"binaryDataN2Information6,omitempty"`
BinaryDataN2Information7 **os.File `json:"binaryDataN2Information7,omitempty"`
BinaryDataN2Information8 **os.File `json:"binaryDataN2Information8,omitempty"`
BinaryDataN2Information9 **os.File `json:"binaryDataN2Information9,omitempty"`
BinaryDataN2Information10 **os.File `json:"binaryDataN2Information10,omitempty"`
}
// NewMbsContextsPostRequest instantiates a new MbsContextsPostRequest 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 NewMbsContextsPostRequest() *MbsContextsPostRequest {
this := MbsContextsPostRequest{}
return &this
}
// NewMbsContextsPostRequestWithDefaults instantiates a new MbsContextsPostRequest 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 NewMbsContextsPostRequestWithDefaults() *MbsContextsPostRequest {
this := MbsContextsPostRequest{}
return &this
}
// GetJsonData returns the JsonData field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetJsonData() ContextStatusNotification {
if o == nil || IsNil(o.JsonData) {
var ret ContextStatusNotification
return ret
}
return *o.JsonData
}
// GetJsonDataOk returns a tuple with the JsonData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetJsonDataOk() (*ContextStatusNotification, bool) {
if o == nil || IsNil(o.JsonData) {
return nil, false
}
return o.JsonData, true
}
// HasJsonData returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasJsonData() bool {
if o != nil && !IsNil(o.JsonData) {
return true
}
return false
}
// SetJsonData gets a reference to the given ContextStatusNotification and assigns it to the JsonData field.
func (o *MbsContextsPostRequest) SetJsonData(v ContextStatusNotification) {
o.JsonData = &v
}
// GetBinaryDataN2Information1 returns the BinaryDataN2Information1 field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information1() *os.File {
if o == nil || IsNil(o.BinaryDataN2Information1) {
var ret *os.File
return ret
}
return *o.BinaryDataN2Information1
}
// GetBinaryDataN2Information1Ok returns a tuple with the BinaryDataN2Information1 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information1Ok() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2Information1) {
return nil, false
}
return o.BinaryDataN2Information1, true
}
// HasBinaryDataN2Information1 returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasBinaryDataN2Information1() bool {
if o != nil && !IsNil(o.BinaryDataN2Information1) {
return true
}
return false
}
// SetBinaryDataN2Information1 gets a reference to the given *os.File and assigns it to the BinaryDataN2Information1 field.
func (o *MbsContextsPostRequest) SetBinaryDataN2Information1(v *os.File) {
o.BinaryDataN2Information1 = &v
}
// GetBinaryDataN2Information2 returns the BinaryDataN2Information2 field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information2() *os.File {
if o == nil || IsNil(o.BinaryDataN2Information2) {
var ret *os.File
return ret
}
return *o.BinaryDataN2Information2
}
// GetBinaryDataN2Information2Ok returns a tuple with the BinaryDataN2Information2 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information2Ok() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2Information2) {
return nil, false
}
return o.BinaryDataN2Information2, true
}
// HasBinaryDataN2Information2 returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasBinaryDataN2Information2() bool {
if o != nil && !IsNil(o.BinaryDataN2Information2) {
return true
}
return false
}
// SetBinaryDataN2Information2 gets a reference to the given *os.File and assigns it to the BinaryDataN2Information2 field.
func (o *MbsContextsPostRequest) SetBinaryDataN2Information2(v *os.File) {
o.BinaryDataN2Information2 = &v
}
// GetBinaryDataN2Information3 returns the BinaryDataN2Information3 field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information3() *os.File {
if o == nil || IsNil(o.BinaryDataN2Information3) {
var ret *os.File
return ret
}
return *o.BinaryDataN2Information3
}
// GetBinaryDataN2Information3Ok returns a tuple with the BinaryDataN2Information3 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information3Ok() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2Information3) {
return nil, false
}
return o.BinaryDataN2Information3, true
}
// HasBinaryDataN2Information3 returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasBinaryDataN2Information3() bool {
if o != nil && !IsNil(o.BinaryDataN2Information3) {
return true
}
return false
}
// SetBinaryDataN2Information3 gets a reference to the given *os.File and assigns it to the BinaryDataN2Information3 field.
func (o *MbsContextsPostRequest) SetBinaryDataN2Information3(v *os.File) {
o.BinaryDataN2Information3 = &v
}
// GetBinaryDataN2Information4 returns the BinaryDataN2Information4 field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information4() *os.File {
if o == nil || IsNil(o.BinaryDataN2Information4) {
var ret *os.File
return ret
}
return *o.BinaryDataN2Information4
}
// GetBinaryDataN2Information4Ok returns a tuple with the BinaryDataN2Information4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information4Ok() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2Information4) {
return nil, false
}
return o.BinaryDataN2Information4, true
}
// HasBinaryDataN2Information4 returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasBinaryDataN2Information4() bool {
if o != nil && !IsNil(o.BinaryDataN2Information4) {
return true
}
return false
}
// SetBinaryDataN2Information4 gets a reference to the given *os.File and assigns it to the BinaryDataN2Information4 field.
func (o *MbsContextsPostRequest) SetBinaryDataN2Information4(v *os.File) {
o.BinaryDataN2Information4 = &v
}
// GetBinaryDataN2Information5 returns the BinaryDataN2Information5 field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information5() *os.File {
if o == nil || IsNil(o.BinaryDataN2Information5) {
var ret *os.File
return ret
}
return *o.BinaryDataN2Information5
}
// GetBinaryDataN2Information5Ok returns a tuple with the BinaryDataN2Information5 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information5Ok() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2Information5) {
return nil, false
}
return o.BinaryDataN2Information5, true
}
// HasBinaryDataN2Information5 returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasBinaryDataN2Information5() bool {
if o != nil && !IsNil(o.BinaryDataN2Information5) {
return true
}
return false
}
// SetBinaryDataN2Information5 gets a reference to the given *os.File and assigns it to the BinaryDataN2Information5 field.
func (o *MbsContextsPostRequest) SetBinaryDataN2Information5(v *os.File) {
o.BinaryDataN2Information5 = &v
}
// GetBinaryDataN2Information6 returns the BinaryDataN2Information6 field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information6() *os.File {
if o == nil || IsNil(o.BinaryDataN2Information6) {
var ret *os.File
return ret
}
return *o.BinaryDataN2Information6
}
// GetBinaryDataN2Information6Ok returns a tuple with the BinaryDataN2Information6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information6Ok() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2Information6) {
return nil, false
}
return o.BinaryDataN2Information6, true
}
// HasBinaryDataN2Information6 returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasBinaryDataN2Information6() bool {
if o != nil && !IsNil(o.BinaryDataN2Information6) {
return true
}
return false
}
// SetBinaryDataN2Information6 gets a reference to the given *os.File and assigns it to the BinaryDataN2Information6 field.
func (o *MbsContextsPostRequest) SetBinaryDataN2Information6(v *os.File) {
o.BinaryDataN2Information6 = &v
}
// GetBinaryDataN2Information7 returns the BinaryDataN2Information7 field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information7() *os.File {
if o == nil || IsNil(o.BinaryDataN2Information7) {
var ret *os.File
return ret
}
return *o.BinaryDataN2Information7
}
// GetBinaryDataN2Information7Ok returns a tuple with the BinaryDataN2Information7 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information7Ok() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2Information7) {
return nil, false
}
return o.BinaryDataN2Information7, true
}
// HasBinaryDataN2Information7 returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasBinaryDataN2Information7() bool {
if o != nil && !IsNil(o.BinaryDataN2Information7) {
return true
}
return false
}
// SetBinaryDataN2Information7 gets a reference to the given *os.File and assigns it to the BinaryDataN2Information7 field.
func (o *MbsContextsPostRequest) SetBinaryDataN2Information7(v *os.File) {
o.BinaryDataN2Information7 = &v
}
// GetBinaryDataN2Information8 returns the BinaryDataN2Information8 field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information8() *os.File {
if o == nil || IsNil(o.BinaryDataN2Information8) {
var ret *os.File
return ret
}
return *o.BinaryDataN2Information8
}
// GetBinaryDataN2Information8Ok returns a tuple with the BinaryDataN2Information8 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information8Ok() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2Information8) {
return nil, false
}
return o.BinaryDataN2Information8, true
}
// HasBinaryDataN2Information8 returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasBinaryDataN2Information8() bool {
if o != nil && !IsNil(o.BinaryDataN2Information8) {
return true
}
return false
}
// SetBinaryDataN2Information8 gets a reference to the given *os.File and assigns it to the BinaryDataN2Information8 field.
func (o *MbsContextsPostRequest) SetBinaryDataN2Information8(v *os.File) {
o.BinaryDataN2Information8 = &v
}
// GetBinaryDataN2Information9 returns the BinaryDataN2Information9 field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information9() *os.File {
if o == nil || IsNil(o.BinaryDataN2Information9) {
var ret *os.File
return ret
}
return *o.BinaryDataN2Information9
}
// GetBinaryDataN2Information9Ok returns a tuple with the BinaryDataN2Information9 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information9Ok() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2Information9) {
return nil, false
}
return o.BinaryDataN2Information9, true
}
// HasBinaryDataN2Information9 returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasBinaryDataN2Information9() bool {
if o != nil && !IsNil(o.BinaryDataN2Information9) {
return true
}
return false
}
// SetBinaryDataN2Information9 gets a reference to the given *os.File and assigns it to the BinaryDataN2Information9 field.
func (o *MbsContextsPostRequest) SetBinaryDataN2Information9(v *os.File) {
o.BinaryDataN2Information9 = &v
}
// GetBinaryDataN2Information10 returns the BinaryDataN2Information10 field value if set, zero value otherwise.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information10() *os.File {
if o == nil || IsNil(o.BinaryDataN2Information10) {
var ret *os.File
return ret
}
return *o.BinaryDataN2Information10
}
// GetBinaryDataN2Information10Ok returns a tuple with the BinaryDataN2Information10 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MbsContextsPostRequest) GetBinaryDataN2Information10Ok() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2Information10) {
return nil, false
}
return o.BinaryDataN2Information10, true
}
// HasBinaryDataN2Information10 returns a boolean if a field has been set.
func (o *MbsContextsPostRequest) HasBinaryDataN2Information10() bool {
if o != nil && !IsNil(o.BinaryDataN2Information10) {
return true
}
return false
}
// SetBinaryDataN2Information10 gets a reference to the given *os.File and assigns it to the BinaryDataN2Information10 field.
func (o *MbsContextsPostRequest) SetBinaryDataN2Information10(v *os.File) {
o.BinaryDataN2Information10 = &v
}
func (o MbsContextsPostRequest) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MbsContextsPostRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.JsonData) {
toSerialize["jsonData"] = o.JsonData
}
if !IsNil(o.BinaryDataN2Information1) {
toSerialize["binaryDataN2Information1"] = o.BinaryDataN2Information1
}
if !IsNil(o.BinaryDataN2Information2) {
toSerialize["binaryDataN2Information2"] = o.BinaryDataN2Information2
}
if !IsNil(o.BinaryDataN2Information3) {
toSerialize["binaryDataN2Information3"] = o.BinaryDataN2Information3
}
if !IsNil(o.BinaryDataN2Information4) {
toSerialize["binaryDataN2Information4"] = o.BinaryDataN2Information4
}
if !IsNil(o.BinaryDataN2Information5) {
toSerialize["binaryDataN2Information5"] = o.BinaryDataN2Information5
}
if !IsNil(o.BinaryDataN2Information6) {
toSerialize["binaryDataN2Information6"] = o.BinaryDataN2Information6
}
if !IsNil(o.BinaryDataN2Information7) {
toSerialize["binaryDataN2Information7"] = o.BinaryDataN2Information7
}
if !IsNil(o.BinaryDataN2Information8) {
toSerialize["binaryDataN2Information8"] = o.BinaryDataN2Information8
}
if !IsNil(o.BinaryDataN2Information9) {
toSerialize["binaryDataN2Information9"] = o.BinaryDataN2Information9
}
if !IsNil(o.BinaryDataN2Information10) {
toSerialize["binaryDataN2Information10"] = o.BinaryDataN2Information10
}
return toSerialize, nil
}
type NullableMbsContextsPostRequest struct {
value *MbsContextsPostRequest
isSet bool
}
func (v NullableMbsContextsPostRequest) Get() *MbsContextsPostRequest {
return v.value
}
func (v *NullableMbsContextsPostRequest) Set(val *MbsContextsPostRequest) {
v.value = val
v.isSet = true
}
func (v NullableMbsContextsPostRequest) IsSet() bool {
return v.isSet
}
func (v *NullableMbsContextsPostRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMbsContextsPostRequest(val *MbsContextsPostRequest) *NullableMbsContextsPostRequest {
return &NullableMbsContextsPostRequest{value: val, isSet: true}
}
func (v NullableMbsContextsPostRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMbsContextsPostRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}