This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_non_dynamic5_qi.go
314 lines (265 loc) · 9.88 KB
/
model_non_dynamic5_qi.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
/*
Nsmf_PDUSession
SMF PDU Session Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.3.0-alpha.2
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Nsmf_PDUSession
import (
"encoding/json"
)
// checks if the NonDynamic5Qi type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &NonDynamic5Qi{}
// NonDynamic5Qi It indicates the QoS Characteristics for a standardized or pre-configured 5QI for downlink and uplink.
type NonDynamic5Qi struct {
// Unsigned integer indicating the 5QI Priority Level (see clauses 5.7.3.3 and 5.7.4 of 3GPP TS 23.501, within the range 1 to 127.Values are ordered in decreasing order of priority, i.e. with 1 as the highest priority and 127 as the lowest priority.
PriorityLevel *int32 `json:"priorityLevel,omitempty"`
// Unsigned integer indicating Averaging Window (see clause 5.7.3.6 and 5.7.4 of 3GPP TS 23.501), expressed in milliseconds.
AverWindow *int32 `json:"averWindow,omitempty"`
// Unsigned integer indicating Maximum Data Burst Volume (see clauses 5.7.3.7 and 5.7.4 of 3GPP TS 23.501), expressed in Bytes.
MaxDataBurstVol *int32 `json:"maxDataBurstVol,omitempty"`
// Unsigned integer indicating Maximum Data Burst Volume (see clauses 5.7.3.7 and 5.7.4 of 3GPP TS 23.501), expressed in Bytes.
ExtMaxDataBurstVol *int32 `json:"extMaxDataBurstVol,omitempty"`
// Unsigned integer indicating Packet Delay Budget (see clauses 5.7.3.4 and 5.7.4 of 3GPP TS 23.501 [8])), expressed in 0.01 milliseconds.
CnPacketDelayBudgetDl *int32 `json:"cnPacketDelayBudgetDl,omitempty"`
// Unsigned integer indicating Packet Delay Budget (see clauses 5.7.3.4 and 5.7.4 of 3GPP TS 23.501 [8])), expressed in 0.01 milliseconds.
CnPacketDelayBudgetUl *int32 `json:"cnPacketDelayBudgetUl,omitempty"`
}
// NewNonDynamic5Qi instantiates a new NonDynamic5Qi 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 NewNonDynamic5Qi() *NonDynamic5Qi {
this := NonDynamic5Qi{}
var averWindow int32 = 2000
this.AverWindow = &averWindow
return &this
}
// NewNonDynamic5QiWithDefaults instantiates a new NonDynamic5Qi 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 NewNonDynamic5QiWithDefaults() *NonDynamic5Qi {
this := NonDynamic5Qi{}
var averWindow int32 = 2000
this.AverWindow = &averWindow
return &this
}
// GetPriorityLevel returns the PriorityLevel field value if set, zero value otherwise.
func (o *NonDynamic5Qi) GetPriorityLevel() int32 {
if o == nil || IsNil(o.PriorityLevel) {
var ret int32
return ret
}
return *o.PriorityLevel
}
// GetPriorityLevelOk returns a tuple with the PriorityLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NonDynamic5Qi) GetPriorityLevelOk() (*int32, bool) {
if o == nil || IsNil(o.PriorityLevel) {
return nil, false
}
return o.PriorityLevel, true
}
// HasPriorityLevel returns a boolean if a field has been set.
func (o *NonDynamic5Qi) HasPriorityLevel() bool {
if o != nil && !IsNil(o.PriorityLevel) {
return true
}
return false
}
// SetPriorityLevel gets a reference to the given int32 and assigns it to the PriorityLevel field.
func (o *NonDynamic5Qi) SetPriorityLevel(v int32) {
o.PriorityLevel = &v
}
// GetAverWindow returns the AverWindow field value if set, zero value otherwise.
func (o *NonDynamic5Qi) GetAverWindow() int32 {
if o == nil || IsNil(o.AverWindow) {
var ret int32
return ret
}
return *o.AverWindow
}
// GetAverWindowOk returns a tuple with the AverWindow field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NonDynamic5Qi) GetAverWindowOk() (*int32, bool) {
if o == nil || IsNil(o.AverWindow) {
return nil, false
}
return o.AverWindow, true
}
// HasAverWindow returns a boolean if a field has been set.
func (o *NonDynamic5Qi) HasAverWindow() bool {
if o != nil && !IsNil(o.AverWindow) {
return true
}
return false
}
// SetAverWindow gets a reference to the given int32 and assigns it to the AverWindow field.
func (o *NonDynamic5Qi) SetAverWindow(v int32) {
o.AverWindow = &v
}
// GetMaxDataBurstVol returns the MaxDataBurstVol field value if set, zero value otherwise.
func (o *NonDynamic5Qi) GetMaxDataBurstVol() int32 {
if o == nil || IsNil(o.MaxDataBurstVol) {
var ret int32
return ret
}
return *o.MaxDataBurstVol
}
// GetMaxDataBurstVolOk returns a tuple with the MaxDataBurstVol field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NonDynamic5Qi) GetMaxDataBurstVolOk() (*int32, bool) {
if o == nil || IsNil(o.MaxDataBurstVol) {
return nil, false
}
return o.MaxDataBurstVol, true
}
// HasMaxDataBurstVol returns a boolean if a field has been set.
func (o *NonDynamic5Qi) HasMaxDataBurstVol() bool {
if o != nil && !IsNil(o.MaxDataBurstVol) {
return true
}
return false
}
// SetMaxDataBurstVol gets a reference to the given int32 and assigns it to the MaxDataBurstVol field.
func (o *NonDynamic5Qi) SetMaxDataBurstVol(v int32) {
o.MaxDataBurstVol = &v
}
// GetExtMaxDataBurstVol returns the ExtMaxDataBurstVol field value if set, zero value otherwise.
func (o *NonDynamic5Qi) GetExtMaxDataBurstVol() int32 {
if o == nil || IsNil(o.ExtMaxDataBurstVol) {
var ret int32
return ret
}
return *o.ExtMaxDataBurstVol
}
// GetExtMaxDataBurstVolOk returns a tuple with the ExtMaxDataBurstVol field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NonDynamic5Qi) GetExtMaxDataBurstVolOk() (*int32, bool) {
if o == nil || IsNil(o.ExtMaxDataBurstVol) {
return nil, false
}
return o.ExtMaxDataBurstVol, true
}
// HasExtMaxDataBurstVol returns a boolean if a field has been set.
func (o *NonDynamic5Qi) HasExtMaxDataBurstVol() bool {
if o != nil && !IsNil(o.ExtMaxDataBurstVol) {
return true
}
return false
}
// SetExtMaxDataBurstVol gets a reference to the given int32 and assigns it to the ExtMaxDataBurstVol field.
func (o *NonDynamic5Qi) SetExtMaxDataBurstVol(v int32) {
o.ExtMaxDataBurstVol = &v
}
// GetCnPacketDelayBudgetDl returns the CnPacketDelayBudgetDl field value if set, zero value otherwise.
func (o *NonDynamic5Qi) GetCnPacketDelayBudgetDl() int32 {
if o == nil || IsNil(o.CnPacketDelayBudgetDl) {
var ret int32
return ret
}
return *o.CnPacketDelayBudgetDl
}
// GetCnPacketDelayBudgetDlOk returns a tuple with the CnPacketDelayBudgetDl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NonDynamic5Qi) GetCnPacketDelayBudgetDlOk() (*int32, bool) {
if o == nil || IsNil(o.CnPacketDelayBudgetDl) {
return nil, false
}
return o.CnPacketDelayBudgetDl, true
}
// HasCnPacketDelayBudgetDl returns a boolean if a field has been set.
func (o *NonDynamic5Qi) HasCnPacketDelayBudgetDl() bool {
if o != nil && !IsNil(o.CnPacketDelayBudgetDl) {
return true
}
return false
}
// SetCnPacketDelayBudgetDl gets a reference to the given int32 and assigns it to the CnPacketDelayBudgetDl field.
func (o *NonDynamic5Qi) SetCnPacketDelayBudgetDl(v int32) {
o.CnPacketDelayBudgetDl = &v
}
// GetCnPacketDelayBudgetUl returns the CnPacketDelayBudgetUl field value if set, zero value otherwise.
func (o *NonDynamic5Qi) GetCnPacketDelayBudgetUl() int32 {
if o == nil || IsNil(o.CnPacketDelayBudgetUl) {
var ret int32
return ret
}
return *o.CnPacketDelayBudgetUl
}
// GetCnPacketDelayBudgetUlOk returns a tuple with the CnPacketDelayBudgetUl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NonDynamic5Qi) GetCnPacketDelayBudgetUlOk() (*int32, bool) {
if o == nil || IsNil(o.CnPacketDelayBudgetUl) {
return nil, false
}
return o.CnPacketDelayBudgetUl, true
}
// HasCnPacketDelayBudgetUl returns a boolean if a field has been set.
func (o *NonDynamic5Qi) HasCnPacketDelayBudgetUl() bool {
if o != nil && !IsNil(o.CnPacketDelayBudgetUl) {
return true
}
return false
}
// SetCnPacketDelayBudgetUl gets a reference to the given int32 and assigns it to the CnPacketDelayBudgetUl field.
func (o *NonDynamic5Qi) SetCnPacketDelayBudgetUl(v int32) {
o.CnPacketDelayBudgetUl = &v
}
func (o NonDynamic5Qi) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o NonDynamic5Qi) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.PriorityLevel) {
toSerialize["priorityLevel"] = o.PriorityLevel
}
if !IsNil(o.AverWindow) {
toSerialize["averWindow"] = o.AverWindow
}
if !IsNil(o.MaxDataBurstVol) {
toSerialize["maxDataBurstVol"] = o.MaxDataBurstVol
}
if !IsNil(o.ExtMaxDataBurstVol) {
toSerialize["extMaxDataBurstVol"] = o.ExtMaxDataBurstVol
}
if !IsNil(o.CnPacketDelayBudgetDl) {
toSerialize["cnPacketDelayBudgetDl"] = o.CnPacketDelayBudgetDl
}
if !IsNil(o.CnPacketDelayBudgetUl) {
toSerialize["cnPacketDelayBudgetUl"] = o.CnPacketDelayBudgetUl
}
return toSerialize, nil
}
type NullableNonDynamic5Qi struct {
value *NonDynamic5Qi
isSet bool
}
func (v NullableNonDynamic5Qi) Get() *NonDynamic5Qi {
return v.value
}
func (v *NullableNonDynamic5Qi) Set(val *NonDynamic5Qi) {
v.value = val
v.isSet = true
}
func (v NullableNonDynamic5Qi) IsSet() bool {
return v.isSet
}
func (v *NullableNonDynamic5Qi) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableNonDynamic5Qi(val *NonDynamic5Qi) *NullableNonDynamic5Qi {
return &NullableNonDynamic5Qi{value: val, isSet: true}
}
func (v NullableNonDynamic5Qi) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableNonDynamic5Qi) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}