/
model_as_session_with_qo_s_subscription_patch.go
376 lines (313 loc) · 12.1 KB
/
model_as_session_with_qo_s_subscription_patch.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
/*
3gpp-as-session-with-qos
API for setting us an AS session with required QoS. © 2021, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package assessionwithqos
import (
"encoding/json"
)
// AsSessionWithQoSSubscriptionPatch struct for AsSessionWithQoSSubscriptionPatch
type AsSessionWithQoSSubscriptionPatch struct {
// Describe the data flow which requires QoS.
FlowInfo *[]FlowInfo `json:"flowInfo,omitempty"`
// Identifies Ethernet packet flows.
EthFlowInfo *[]EthFlowDescription `json:"ethFlowInfo,omitempty"`
// Pre-defined QoS reference
QosReference *string `json:"qosReference,omitempty"`
// Identifies an ordered list of pre-defined QoS information. The lower the index of the array for a given entry, the higher the priority.
AltQoSReferences *[]string `json:"altQoSReferences,omitempty"`
DisUeNotif *bool `json:"disUeNotif,omitempty"`
UsageThreshold NullableUsageThresholdRm `json:"usageThreshold,omitempty"`
QosMonInfo *QosMonitoringInformationRm `json:"qosMonInfo,omitempty"`
AdditionalProperties map[string]interface{}
}
type _AsSessionWithQoSSubscriptionPatch AsSessionWithQoSSubscriptionPatch
// NewAsSessionWithQoSSubscriptionPatch instantiates a new AsSessionWithQoSSubscriptionPatch 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 NewAsSessionWithQoSSubscriptionPatch() *AsSessionWithQoSSubscriptionPatch {
this := AsSessionWithQoSSubscriptionPatch{}
return &this
}
// NewAsSessionWithQoSSubscriptionPatchWithDefaults instantiates a new AsSessionWithQoSSubscriptionPatch 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 NewAsSessionWithQoSSubscriptionPatchWithDefaults() *AsSessionWithQoSSubscriptionPatch {
this := AsSessionWithQoSSubscriptionPatch{}
return &this
}
// GetFlowInfo returns the FlowInfo field value if set, zero value otherwise.
func (o *AsSessionWithQoSSubscriptionPatch) GetFlowInfo() []FlowInfo {
if o == nil || o.FlowInfo == nil {
var ret []FlowInfo
return ret
}
return *o.FlowInfo
}
// GetFlowInfoOk returns a tuple with the FlowInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AsSessionWithQoSSubscriptionPatch) GetFlowInfoOk() (*[]FlowInfo, bool) {
if o == nil || o.FlowInfo == nil {
return nil, false
}
return o.FlowInfo, true
}
// HasFlowInfo returns a boolean if a field has been set.
func (o *AsSessionWithQoSSubscriptionPatch) HasFlowInfo() bool {
if o != nil && o.FlowInfo != nil {
return true
}
return false
}
// SetFlowInfo gets a reference to the given []FlowInfo and assigns it to the FlowInfo field.
func (o *AsSessionWithQoSSubscriptionPatch) SetFlowInfo(v []FlowInfo) {
o.FlowInfo = &v
}
// GetEthFlowInfo returns the EthFlowInfo field value if set, zero value otherwise.
func (o *AsSessionWithQoSSubscriptionPatch) GetEthFlowInfo() []EthFlowDescription {
if o == nil || o.EthFlowInfo == nil {
var ret []EthFlowDescription
return ret
}
return *o.EthFlowInfo
}
// GetEthFlowInfoOk returns a tuple with the EthFlowInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AsSessionWithQoSSubscriptionPatch) GetEthFlowInfoOk() (*[]EthFlowDescription, bool) {
if o == nil || o.EthFlowInfo == nil {
return nil, false
}
return o.EthFlowInfo, true
}
// HasEthFlowInfo returns a boolean if a field has been set.
func (o *AsSessionWithQoSSubscriptionPatch) HasEthFlowInfo() bool {
if o != nil && o.EthFlowInfo != nil {
return true
}
return false
}
// SetEthFlowInfo gets a reference to the given []EthFlowDescription and assigns it to the EthFlowInfo field.
func (o *AsSessionWithQoSSubscriptionPatch) SetEthFlowInfo(v []EthFlowDescription) {
o.EthFlowInfo = &v
}
// GetQosReference returns the QosReference field value if set, zero value otherwise.
func (o *AsSessionWithQoSSubscriptionPatch) GetQosReference() string {
if o == nil || o.QosReference == nil {
var ret string
return ret
}
return *o.QosReference
}
// GetQosReferenceOk returns a tuple with the QosReference field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AsSessionWithQoSSubscriptionPatch) GetQosReferenceOk() (*string, bool) {
if o == nil || o.QosReference == nil {
return nil, false
}
return o.QosReference, true
}
// HasQosReference returns a boolean if a field has been set.
func (o *AsSessionWithQoSSubscriptionPatch) HasQosReference() bool {
if o != nil && o.QosReference != nil {
return true
}
return false
}
// SetQosReference gets a reference to the given string and assigns it to the QosReference field.
func (o *AsSessionWithQoSSubscriptionPatch) SetQosReference(v string) {
o.QosReference = &v
}
// GetAltQoSReferences returns the AltQoSReferences field value if set, zero value otherwise.
func (o *AsSessionWithQoSSubscriptionPatch) GetAltQoSReferences() []string {
if o == nil || o.AltQoSReferences == nil {
var ret []string
return ret
}
return *o.AltQoSReferences
}
// GetAltQoSReferencesOk returns a tuple with the AltQoSReferences field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AsSessionWithQoSSubscriptionPatch) GetAltQoSReferencesOk() (*[]string, bool) {
if o == nil || o.AltQoSReferences == nil {
return nil, false
}
return o.AltQoSReferences, true
}
// HasAltQoSReferences returns a boolean if a field has been set.
func (o *AsSessionWithQoSSubscriptionPatch) HasAltQoSReferences() bool {
if o != nil && o.AltQoSReferences != nil {
return true
}
return false
}
// SetAltQoSReferences gets a reference to the given []string and assigns it to the AltQoSReferences field.
func (o *AsSessionWithQoSSubscriptionPatch) SetAltQoSReferences(v []string) {
o.AltQoSReferences = &v
}
// GetDisUeNotif returns the DisUeNotif field value if set, zero value otherwise.
func (o *AsSessionWithQoSSubscriptionPatch) GetDisUeNotif() bool {
if o == nil || o.DisUeNotif == nil {
var ret bool
return ret
}
return *o.DisUeNotif
}
// GetDisUeNotifOk returns a tuple with the DisUeNotif field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AsSessionWithQoSSubscriptionPatch) GetDisUeNotifOk() (*bool, bool) {
if o == nil || o.DisUeNotif == nil {
return nil, false
}
return o.DisUeNotif, true
}
// HasDisUeNotif returns a boolean if a field has been set.
func (o *AsSessionWithQoSSubscriptionPatch) HasDisUeNotif() bool {
if o != nil && o.DisUeNotif != nil {
return true
}
return false
}
// SetDisUeNotif gets a reference to the given bool and assigns it to the DisUeNotif field.
func (o *AsSessionWithQoSSubscriptionPatch) SetDisUeNotif(v bool) {
o.DisUeNotif = &v
}
// GetUsageThreshold returns the UsageThreshold field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AsSessionWithQoSSubscriptionPatch) GetUsageThreshold() UsageThresholdRm {
if o == nil || o.UsageThreshold.Get() == nil {
var ret UsageThresholdRm
return ret
}
return *o.UsageThreshold.Get()
}
// GetUsageThresholdOk returns a tuple with the UsageThreshold field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AsSessionWithQoSSubscriptionPatch) GetUsageThresholdOk() (*UsageThresholdRm, bool) {
if o == nil {
return nil, false
}
return o.UsageThreshold.Get(), o.UsageThreshold.IsSet()
}
// HasUsageThreshold returns a boolean if a field has been set.
func (o *AsSessionWithQoSSubscriptionPatch) HasUsageThreshold() bool {
if o != nil && o.UsageThreshold.IsSet() {
return true
}
return false
}
// SetUsageThreshold gets a reference to the given NullableUsageThresholdRm and assigns it to the UsageThreshold field.
func (o *AsSessionWithQoSSubscriptionPatch) SetUsageThreshold(v UsageThresholdRm) {
o.UsageThreshold.Set(&v)
}
// SetUsageThresholdNil sets the value for UsageThreshold to be an explicit nil
func (o *AsSessionWithQoSSubscriptionPatch) SetUsageThresholdNil() {
o.UsageThreshold.Set(nil)
}
// UnsetUsageThreshold ensures that no value is present for UsageThreshold, not even an explicit nil
func (o *AsSessionWithQoSSubscriptionPatch) UnsetUsageThreshold() {
o.UsageThreshold.Unset()
}
// GetQosMonInfo returns the QosMonInfo field value if set, zero value otherwise.
func (o *AsSessionWithQoSSubscriptionPatch) GetQosMonInfo() QosMonitoringInformationRm {
if o == nil || o.QosMonInfo == nil {
var ret QosMonitoringInformationRm
return ret
}
return *o.QosMonInfo
}
// GetQosMonInfoOk returns a tuple with the QosMonInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AsSessionWithQoSSubscriptionPatch) GetQosMonInfoOk() (*QosMonitoringInformationRm, bool) {
if o == nil || o.QosMonInfo == nil {
return nil, false
}
return o.QosMonInfo, true
}
// HasQosMonInfo returns a boolean if a field has been set.
func (o *AsSessionWithQoSSubscriptionPatch) HasQosMonInfo() bool {
if o != nil && o.QosMonInfo != nil {
return true
}
return false
}
// SetQosMonInfo gets a reference to the given QosMonitoringInformationRm and assigns it to the QosMonInfo field.
func (o *AsSessionWithQoSSubscriptionPatch) SetQosMonInfo(v QosMonitoringInformationRm) {
o.QosMonInfo = &v
}
func (o AsSessionWithQoSSubscriptionPatch) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.FlowInfo != nil {
toSerialize["flowInfo"] = o.FlowInfo
}
if o.EthFlowInfo != nil {
toSerialize["ethFlowInfo"] = o.EthFlowInfo
}
if o.QosReference != nil {
toSerialize["qosReference"] = o.QosReference
}
if o.AltQoSReferences != nil {
toSerialize["altQoSReferences"] = o.AltQoSReferences
}
if o.DisUeNotif != nil {
toSerialize["disUeNotif"] = o.DisUeNotif
}
if o.UsageThreshold.IsSet() {
toSerialize["usageThreshold"] = o.UsageThreshold.Get()
}
if o.QosMonInfo != nil {
toSerialize["qosMonInfo"] = o.QosMonInfo
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *AsSessionWithQoSSubscriptionPatch) UnmarshalJSON(bytes []byte) (err error) {
varAsSessionWithQoSSubscriptionPatch := _AsSessionWithQoSSubscriptionPatch{}
if err = json.Unmarshal(bytes, &varAsSessionWithQoSSubscriptionPatch); err == nil {
*o = AsSessionWithQoSSubscriptionPatch(varAsSessionWithQoSSubscriptionPatch)
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "flowInfo")
delete(additionalProperties, "ethFlowInfo")
delete(additionalProperties, "qosReference")
delete(additionalProperties, "altQoSReferences")
delete(additionalProperties, "disUeNotif")
delete(additionalProperties, "usageThreshold")
delete(additionalProperties, "qosMonInfo")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableAsSessionWithQoSSubscriptionPatch struct {
value *AsSessionWithQoSSubscriptionPatch
isSet bool
}
func (v NullableAsSessionWithQoSSubscriptionPatch) Get() *AsSessionWithQoSSubscriptionPatch {
return v.value
}
func (v *NullableAsSessionWithQoSSubscriptionPatch) Set(val *AsSessionWithQoSSubscriptionPatch) {
v.value = val
v.isSet = true
}
func (v NullableAsSessionWithQoSSubscriptionPatch) IsSet() bool {
return v.isSet
}
func (v *NullableAsSessionWithQoSSubscriptionPatch) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAsSessionWithQoSSubscriptionPatch(val *AsSessionWithQoSSubscriptionPatch) *NullableAsSessionWithQoSSubscriptionPatch {
return &NullableAsSessionWithQoSSubscriptionPatch{value: val, isSet: true}
}
func (v NullableAsSessionWithQoSSubscriptionPatch) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAsSessionWithQoSSubscriptionPatch) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}