This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_context_status_event_report.go
361 lines (304 loc) · 11.5 KB
/
model_context_status_event_report.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
/*
Nmbsmf-MBSSession
MB-SMF MBSSession Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Nmbsmf_MBSSession
import (
"encoding/json"
"time"
)
// checks if the ContextStatusEventReport type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ContextStatusEventReport{}
// ContextStatusEventReport Context Status Event Report
type ContextStatusEventReport struct {
EventType ContextStatusEventType `json:"eventType"`
// string with format 'date-time' as defined in OpenAPI.
TimeStamp time.Time `json:"timeStamp"`
QosInfo *QosInfo `json:"qosInfo,omitempty"`
StatusInfo *MbsSessionActivityStatus `json:"statusInfo,omitempty"`
MbsServiceArea *MbsServiceArea `json:"mbsServiceArea,omitempty"`
// A map (list of key-value pairs) where the key identifies an areaSessionId
MbsServiceAreaInfoList *map[string]MbsServiceAreaInfo `json:"mbsServiceAreaInfoList,omitempty"`
MulticastTransAddInfo *MulticastTransportAddressChangeInfo `json:"multicastTransAddInfo,omitempty"`
MbsSecurityContext *MbsSecurityContext `json:"mbsSecurityContext,omitempty"`
}
// NewContextStatusEventReport instantiates a new ContextStatusEventReport 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 NewContextStatusEventReport(eventType ContextStatusEventType, timeStamp time.Time) *ContextStatusEventReport {
this := ContextStatusEventReport{}
this.EventType = eventType
this.TimeStamp = timeStamp
return &this
}
// NewContextStatusEventReportWithDefaults instantiates a new ContextStatusEventReport 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 NewContextStatusEventReportWithDefaults() *ContextStatusEventReport {
this := ContextStatusEventReport{}
return &this
}
// GetEventType returns the EventType field value
func (o *ContextStatusEventReport) GetEventType() ContextStatusEventType {
if o == nil {
var ret ContextStatusEventType
return ret
}
return o.EventType
}
// GetEventTypeOk returns a tuple with the EventType field value
// and a boolean to check if the value has been set.
func (o *ContextStatusEventReport) GetEventTypeOk() (*ContextStatusEventType, bool) {
if o == nil {
return nil, false
}
return &o.EventType, true
}
// SetEventType sets field value
func (o *ContextStatusEventReport) SetEventType(v ContextStatusEventType) {
o.EventType = v
}
// GetTimeStamp returns the TimeStamp field value
func (o *ContextStatusEventReport) GetTimeStamp() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.TimeStamp
}
// GetTimeStampOk returns a tuple with the TimeStamp field value
// and a boolean to check if the value has been set.
func (o *ContextStatusEventReport) GetTimeStampOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.TimeStamp, true
}
// SetTimeStamp sets field value
func (o *ContextStatusEventReport) SetTimeStamp(v time.Time) {
o.TimeStamp = v
}
// GetQosInfo returns the QosInfo field value if set, zero value otherwise.
func (o *ContextStatusEventReport) GetQosInfo() QosInfo {
if o == nil || IsNil(o.QosInfo) {
var ret QosInfo
return ret
}
return *o.QosInfo
}
// GetQosInfoOk returns a tuple with the QosInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ContextStatusEventReport) GetQosInfoOk() (*QosInfo, bool) {
if o == nil || IsNil(o.QosInfo) {
return nil, false
}
return o.QosInfo, true
}
// HasQosInfo returns a boolean if a field has been set.
func (o *ContextStatusEventReport) HasQosInfo() bool {
if o != nil && !IsNil(o.QosInfo) {
return true
}
return false
}
// SetQosInfo gets a reference to the given QosInfo and assigns it to the QosInfo field.
func (o *ContextStatusEventReport) SetQosInfo(v QosInfo) {
o.QosInfo = &v
}
// GetStatusInfo returns the StatusInfo field value if set, zero value otherwise.
func (o *ContextStatusEventReport) GetStatusInfo() MbsSessionActivityStatus {
if o == nil || IsNil(o.StatusInfo) {
var ret MbsSessionActivityStatus
return ret
}
return *o.StatusInfo
}
// GetStatusInfoOk returns a tuple with the StatusInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ContextStatusEventReport) GetStatusInfoOk() (*MbsSessionActivityStatus, bool) {
if o == nil || IsNil(o.StatusInfo) {
return nil, false
}
return o.StatusInfo, true
}
// HasStatusInfo returns a boolean if a field has been set.
func (o *ContextStatusEventReport) HasStatusInfo() bool {
if o != nil && !IsNil(o.StatusInfo) {
return true
}
return false
}
// SetStatusInfo gets a reference to the given MbsSessionActivityStatus and assigns it to the StatusInfo field.
func (o *ContextStatusEventReport) SetStatusInfo(v MbsSessionActivityStatus) {
o.StatusInfo = &v
}
// GetMbsServiceArea returns the MbsServiceArea field value if set, zero value otherwise.
func (o *ContextStatusEventReport) GetMbsServiceArea() MbsServiceArea {
if o == nil || IsNil(o.MbsServiceArea) {
var ret MbsServiceArea
return ret
}
return *o.MbsServiceArea
}
// GetMbsServiceAreaOk returns a tuple with the MbsServiceArea field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ContextStatusEventReport) GetMbsServiceAreaOk() (*MbsServiceArea, bool) {
if o == nil || IsNil(o.MbsServiceArea) {
return nil, false
}
return o.MbsServiceArea, true
}
// HasMbsServiceArea returns a boolean if a field has been set.
func (o *ContextStatusEventReport) HasMbsServiceArea() bool {
if o != nil && !IsNil(o.MbsServiceArea) {
return true
}
return false
}
// SetMbsServiceArea gets a reference to the given MbsServiceArea and assigns it to the MbsServiceArea field.
func (o *ContextStatusEventReport) SetMbsServiceArea(v MbsServiceArea) {
o.MbsServiceArea = &v
}
// GetMbsServiceAreaInfoList returns the MbsServiceAreaInfoList field value if set, zero value otherwise.
func (o *ContextStatusEventReport) GetMbsServiceAreaInfoList() map[string]MbsServiceAreaInfo {
if o == nil || IsNil(o.MbsServiceAreaInfoList) {
var ret map[string]MbsServiceAreaInfo
return ret
}
return *o.MbsServiceAreaInfoList
}
// GetMbsServiceAreaInfoListOk returns a tuple with the MbsServiceAreaInfoList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ContextStatusEventReport) GetMbsServiceAreaInfoListOk() (*map[string]MbsServiceAreaInfo, bool) {
if o == nil || IsNil(o.MbsServiceAreaInfoList) {
return nil, false
}
return o.MbsServiceAreaInfoList, true
}
// HasMbsServiceAreaInfoList returns a boolean if a field has been set.
func (o *ContextStatusEventReport) HasMbsServiceAreaInfoList() bool {
if o != nil && !IsNil(o.MbsServiceAreaInfoList) {
return true
}
return false
}
// SetMbsServiceAreaInfoList gets a reference to the given map[string]MbsServiceAreaInfo and assigns it to the MbsServiceAreaInfoList field.
func (o *ContextStatusEventReport) SetMbsServiceAreaInfoList(v map[string]MbsServiceAreaInfo) {
o.MbsServiceAreaInfoList = &v
}
// GetMulticastTransAddInfo returns the MulticastTransAddInfo field value if set, zero value otherwise.
func (o *ContextStatusEventReport) GetMulticastTransAddInfo() MulticastTransportAddressChangeInfo {
if o == nil || IsNil(o.MulticastTransAddInfo) {
var ret MulticastTransportAddressChangeInfo
return ret
}
return *o.MulticastTransAddInfo
}
// GetMulticastTransAddInfoOk returns a tuple with the MulticastTransAddInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ContextStatusEventReport) GetMulticastTransAddInfoOk() (*MulticastTransportAddressChangeInfo, bool) {
if o == nil || IsNil(o.MulticastTransAddInfo) {
return nil, false
}
return o.MulticastTransAddInfo, true
}
// HasMulticastTransAddInfo returns a boolean if a field has been set.
func (o *ContextStatusEventReport) HasMulticastTransAddInfo() bool {
if o != nil && !IsNil(o.MulticastTransAddInfo) {
return true
}
return false
}
// SetMulticastTransAddInfo gets a reference to the given MulticastTransportAddressChangeInfo and assigns it to the MulticastTransAddInfo field.
func (o *ContextStatusEventReport) SetMulticastTransAddInfo(v MulticastTransportAddressChangeInfo) {
o.MulticastTransAddInfo = &v
}
// GetMbsSecurityContext returns the MbsSecurityContext field value if set, zero value otherwise.
func (o *ContextStatusEventReport) GetMbsSecurityContext() MbsSecurityContext {
if o == nil || IsNil(o.MbsSecurityContext) {
var ret MbsSecurityContext
return ret
}
return *o.MbsSecurityContext
}
// GetMbsSecurityContextOk returns a tuple with the MbsSecurityContext field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ContextStatusEventReport) GetMbsSecurityContextOk() (*MbsSecurityContext, bool) {
if o == nil || IsNil(o.MbsSecurityContext) {
return nil, false
}
return o.MbsSecurityContext, true
}
// HasMbsSecurityContext returns a boolean if a field has been set.
func (o *ContextStatusEventReport) HasMbsSecurityContext() bool {
if o != nil && !IsNil(o.MbsSecurityContext) {
return true
}
return false
}
// SetMbsSecurityContext gets a reference to the given MbsSecurityContext and assigns it to the MbsSecurityContext field.
func (o *ContextStatusEventReport) SetMbsSecurityContext(v MbsSecurityContext) {
o.MbsSecurityContext = &v
}
func (o ContextStatusEventReport) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ContextStatusEventReport) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["eventType"] = o.EventType
toSerialize["timeStamp"] = o.TimeStamp
if !IsNil(o.QosInfo) {
toSerialize["qosInfo"] = o.QosInfo
}
if !IsNil(o.StatusInfo) {
toSerialize["statusInfo"] = o.StatusInfo
}
if !IsNil(o.MbsServiceArea) {
toSerialize["mbsServiceArea"] = o.MbsServiceArea
}
if !IsNil(o.MbsServiceAreaInfoList) {
toSerialize["mbsServiceAreaInfoList"] = o.MbsServiceAreaInfoList
}
if !IsNil(o.MulticastTransAddInfo) {
toSerialize["multicastTransAddInfo"] = o.MulticastTransAddInfo
}
if !IsNil(o.MbsSecurityContext) {
toSerialize["mbsSecurityContext"] = o.MbsSecurityContext
}
return toSerialize, nil
}
type NullableContextStatusEventReport struct {
value *ContextStatusEventReport
isSet bool
}
func (v NullableContextStatusEventReport) Get() *ContextStatusEventReport {
return v.value
}
func (v *NullableContextStatusEventReport) Set(val *ContextStatusEventReport) {
v.value = val
v.isSet = true
}
func (v NullableContextStatusEventReport) IsSet() bool {
return v.isSet
}
func (v *NullableContextStatusEventReport) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableContextStatusEventReport(val *ContextStatusEventReport) *NullableContextStatusEventReport {
return &NullableContextStatusEventReport{value: val, isSet: true}
}
func (v NullableContextStatusEventReport) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableContextStatusEventReport) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}