This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_acr_mgnt_event_subsc.go
333 lines (280 loc) · 9.4 KB
/
model_acr_mgnt_event_subsc.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
/*
EES ACR Management Event_API
API for EES ACR Management Event. © 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_Eees_ACRManagementEvent
import (
"encoding/json"
)
// checks if the AcrMgntEventSubsc type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AcrMgntEventSubsc{}
// AcrMgntEventSubsc Represents an ACR Management Event Subscription.
type AcrMgntEventSubsc struct {
Event AcrMgntEvent `json:"event"`
EventFilter *AcrMgntEventFilter `json:"eventFilter,omitempty"`
EvtReq *ReportingInformation `json:"evtReq,omitempty"`
TgtUeId *TargetUeIdentification `json:"tgtUeId,omitempty"`
DnaiChgType *DnaiChangeType `json:"dnaiChgType,omitempty"`
// Identifies whether EAS acknowledgement of UP path change event notifications is to be expected. Set to \"true\" if the EAS acknowledgement is expected. Default value is \"false\". This attribute may be provided only if the \"event\" attribute is set to \"UP_PATH_CHG\".
EasAckInd *bool `json:"easAckInd,omitempty"`
// A list of EAS characteristics.
EasChars []EasCharacteristics `json:"easChars,omitempty"`
}
// NewAcrMgntEventSubsc instantiates a new AcrMgntEventSubsc 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 NewAcrMgntEventSubsc(event AcrMgntEvent) *AcrMgntEventSubsc {
this := AcrMgntEventSubsc{}
this.Event = event
return &this
}
// NewAcrMgntEventSubscWithDefaults instantiates a new AcrMgntEventSubsc 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 NewAcrMgntEventSubscWithDefaults() *AcrMgntEventSubsc {
this := AcrMgntEventSubsc{}
return &this
}
// GetEvent returns the Event field value
func (o *AcrMgntEventSubsc) GetEvent() AcrMgntEvent {
if o == nil {
var ret AcrMgntEvent
return ret
}
return o.Event
}
// GetEventOk returns a tuple with the Event field value
// and a boolean to check if the value has been set.
func (o *AcrMgntEventSubsc) GetEventOk() (*AcrMgntEvent, bool) {
if o == nil {
return nil, false
}
return &o.Event, true
}
// SetEvent sets field value
func (o *AcrMgntEventSubsc) SetEvent(v AcrMgntEvent) {
o.Event = v
}
// GetEventFilter returns the EventFilter field value if set, zero value otherwise.
func (o *AcrMgntEventSubsc) GetEventFilter() AcrMgntEventFilter {
if o == nil || IsNil(o.EventFilter) {
var ret AcrMgntEventFilter
return ret
}
return *o.EventFilter
}
// GetEventFilterOk returns a tuple with the EventFilter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrMgntEventSubsc) GetEventFilterOk() (*AcrMgntEventFilter, bool) {
if o == nil || IsNil(o.EventFilter) {
return nil, false
}
return o.EventFilter, true
}
// HasEventFilter returns a boolean if a field has been set.
func (o *AcrMgntEventSubsc) HasEventFilter() bool {
if o != nil && !IsNil(o.EventFilter) {
return true
}
return false
}
// SetEventFilter gets a reference to the given AcrMgntEventFilter and assigns it to the EventFilter field.
func (o *AcrMgntEventSubsc) SetEventFilter(v AcrMgntEventFilter) {
o.EventFilter = &v
}
// GetEvtReq returns the EvtReq field value if set, zero value otherwise.
func (o *AcrMgntEventSubsc) GetEvtReq() ReportingInformation {
if o == nil || IsNil(o.EvtReq) {
var ret ReportingInformation
return ret
}
return *o.EvtReq
}
// GetEvtReqOk returns a tuple with the EvtReq field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrMgntEventSubsc) GetEvtReqOk() (*ReportingInformation, bool) {
if o == nil || IsNil(o.EvtReq) {
return nil, false
}
return o.EvtReq, true
}
// HasEvtReq returns a boolean if a field has been set.
func (o *AcrMgntEventSubsc) HasEvtReq() bool {
if o != nil && !IsNil(o.EvtReq) {
return true
}
return false
}
// SetEvtReq gets a reference to the given ReportingInformation and assigns it to the EvtReq field.
func (o *AcrMgntEventSubsc) SetEvtReq(v ReportingInformation) {
o.EvtReq = &v
}
// GetTgtUeId returns the TgtUeId field value if set, zero value otherwise.
func (o *AcrMgntEventSubsc) GetTgtUeId() TargetUeIdentification {
if o == nil || IsNil(o.TgtUeId) {
var ret TargetUeIdentification
return ret
}
return *o.TgtUeId
}
// GetTgtUeIdOk returns a tuple with the TgtUeId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrMgntEventSubsc) GetTgtUeIdOk() (*TargetUeIdentification, bool) {
if o == nil || IsNil(o.TgtUeId) {
return nil, false
}
return o.TgtUeId, true
}
// HasTgtUeId returns a boolean if a field has been set.
func (o *AcrMgntEventSubsc) HasTgtUeId() bool {
if o != nil && !IsNil(o.TgtUeId) {
return true
}
return false
}
// SetTgtUeId gets a reference to the given TargetUeIdentification and assigns it to the TgtUeId field.
func (o *AcrMgntEventSubsc) SetTgtUeId(v TargetUeIdentification) {
o.TgtUeId = &v
}
// GetDnaiChgType returns the DnaiChgType field value if set, zero value otherwise.
func (o *AcrMgntEventSubsc) GetDnaiChgType() DnaiChangeType {
if o == nil || IsNil(o.DnaiChgType) {
var ret DnaiChangeType
return ret
}
return *o.DnaiChgType
}
// GetDnaiChgTypeOk returns a tuple with the DnaiChgType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrMgntEventSubsc) GetDnaiChgTypeOk() (*DnaiChangeType, bool) {
if o == nil || IsNil(o.DnaiChgType) {
return nil, false
}
return o.DnaiChgType, true
}
// HasDnaiChgType returns a boolean if a field has been set.
func (o *AcrMgntEventSubsc) HasDnaiChgType() bool {
if o != nil && !IsNil(o.DnaiChgType) {
return true
}
return false
}
// SetDnaiChgType gets a reference to the given DnaiChangeType and assigns it to the DnaiChgType field.
func (o *AcrMgntEventSubsc) SetDnaiChgType(v DnaiChangeType) {
o.DnaiChgType = &v
}
// GetEasAckInd returns the EasAckInd field value if set, zero value otherwise.
func (o *AcrMgntEventSubsc) GetEasAckInd() bool {
if o == nil || IsNil(o.EasAckInd) {
var ret bool
return ret
}
return *o.EasAckInd
}
// GetEasAckIndOk returns a tuple with the EasAckInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrMgntEventSubsc) GetEasAckIndOk() (*bool, bool) {
if o == nil || IsNil(o.EasAckInd) {
return nil, false
}
return o.EasAckInd, true
}
// HasEasAckInd returns a boolean if a field has been set.
func (o *AcrMgntEventSubsc) HasEasAckInd() bool {
if o != nil && !IsNil(o.EasAckInd) {
return true
}
return false
}
// SetEasAckInd gets a reference to the given bool and assigns it to the EasAckInd field.
func (o *AcrMgntEventSubsc) SetEasAckInd(v bool) {
o.EasAckInd = &v
}
// GetEasChars returns the EasChars field value if set, zero value otherwise.
func (o *AcrMgntEventSubsc) GetEasChars() []EasCharacteristics {
if o == nil || IsNil(o.EasChars) {
var ret []EasCharacteristics
return ret
}
return o.EasChars
}
// GetEasCharsOk returns a tuple with the EasChars field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrMgntEventSubsc) GetEasCharsOk() ([]EasCharacteristics, bool) {
if o == nil || IsNil(o.EasChars) {
return nil, false
}
return o.EasChars, true
}
// HasEasChars returns a boolean if a field has been set.
func (o *AcrMgntEventSubsc) HasEasChars() bool {
if o != nil && !IsNil(o.EasChars) {
return true
}
return false
}
// SetEasChars gets a reference to the given []EasCharacteristics and assigns it to the EasChars field.
func (o *AcrMgntEventSubsc) SetEasChars(v []EasCharacteristics) {
o.EasChars = v
}
func (o AcrMgntEventSubsc) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AcrMgntEventSubsc) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["event"] = o.Event
if !IsNil(o.EventFilter) {
toSerialize["eventFilter"] = o.EventFilter
}
if !IsNil(o.EvtReq) {
toSerialize["evtReq"] = o.EvtReq
}
if !IsNil(o.TgtUeId) {
toSerialize["tgtUeId"] = o.TgtUeId
}
if !IsNil(o.DnaiChgType) {
toSerialize["dnaiChgType"] = o.DnaiChgType
}
if !IsNil(o.EasAckInd) {
toSerialize["easAckInd"] = o.EasAckInd
}
if !IsNil(o.EasChars) {
toSerialize["easChars"] = o.EasChars
}
return toSerialize, nil
}
type NullableAcrMgntEventSubsc struct {
value *AcrMgntEventSubsc
isSet bool
}
func (v NullableAcrMgntEventSubsc) Get() *AcrMgntEventSubsc {
return v.value
}
func (v *NullableAcrMgntEventSubsc) Set(val *AcrMgntEventSubsc) {
v.value = val
v.isSet = true
}
func (v NullableAcrMgntEventSubsc) IsSet() bool {
return v.isSet
}
func (v *NullableAcrMgntEventSubsc) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAcrMgntEventSubsc(val *AcrMgntEventSubsc) *NullableAcrMgntEventSubsc {
return &NullableAcrMgntEventSubsc{value: val, isSet: true}
}
func (v NullableAcrMgntEventSubsc) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAcrMgntEventSubsc) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}