This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_qos_flow_add_modify_request_item.go
299 lines (251 loc) · 8.82 KB
/
model_qos_flow_add_modify_request_item.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
/*
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 QosFlowAddModifyRequestItem type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &QosFlowAddModifyRequestItem{}
// QosFlowAddModifyRequestItem Individual QoS flow requested to be created or modified
type QosFlowAddModifyRequestItem struct {
// Unsigned integer identifying a QoS flow, within the range 0 to 63.
Qfi int32 `json:"qfi"`
// EPS Bearer Identifier
Ebi *int32 `json:"ebi,omitempty"`
// string with format 'bytes' as defined in OpenAPI
QosRules *string `json:"qosRules,omitempty"`
// string with format 'bytes' as defined in OpenAPI
QosFlowDescription *string `json:"qosFlowDescription,omitempty"`
QosFlowProfile *QosFlowProfile `json:"qosFlowProfile,omitempty"`
AssociatedAnType *QosFlowAccessType `json:"associatedAnType,omitempty"`
}
// NewQosFlowAddModifyRequestItem instantiates a new QosFlowAddModifyRequestItem 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 NewQosFlowAddModifyRequestItem(qfi int32) *QosFlowAddModifyRequestItem {
this := QosFlowAddModifyRequestItem{}
this.Qfi = qfi
return &this
}
// NewQosFlowAddModifyRequestItemWithDefaults instantiates a new QosFlowAddModifyRequestItem 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 NewQosFlowAddModifyRequestItemWithDefaults() *QosFlowAddModifyRequestItem {
this := QosFlowAddModifyRequestItem{}
return &this
}
// GetQfi returns the Qfi field value
func (o *QosFlowAddModifyRequestItem) GetQfi() int32 {
if o == nil {
var ret int32
return ret
}
return o.Qfi
}
// GetQfiOk returns a tuple with the Qfi field value
// and a boolean to check if the value has been set.
func (o *QosFlowAddModifyRequestItem) GetQfiOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.Qfi, true
}
// SetQfi sets field value
func (o *QosFlowAddModifyRequestItem) SetQfi(v int32) {
o.Qfi = v
}
// GetEbi returns the Ebi field value if set, zero value otherwise.
func (o *QosFlowAddModifyRequestItem) GetEbi() int32 {
if o == nil || IsNil(o.Ebi) {
var ret int32
return ret
}
return *o.Ebi
}
// GetEbiOk returns a tuple with the Ebi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosFlowAddModifyRequestItem) GetEbiOk() (*int32, bool) {
if o == nil || IsNil(o.Ebi) {
return nil, false
}
return o.Ebi, true
}
// HasEbi returns a boolean if a field has been set.
func (o *QosFlowAddModifyRequestItem) HasEbi() bool {
if o != nil && !IsNil(o.Ebi) {
return true
}
return false
}
// SetEbi gets a reference to the given int32 and assigns it to the Ebi field.
func (o *QosFlowAddModifyRequestItem) SetEbi(v int32) {
o.Ebi = &v
}
// GetQosRules returns the QosRules field value if set, zero value otherwise.
func (o *QosFlowAddModifyRequestItem) GetQosRules() string {
if o == nil || IsNil(o.QosRules) {
var ret string
return ret
}
return *o.QosRules
}
// GetQosRulesOk returns a tuple with the QosRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosFlowAddModifyRequestItem) GetQosRulesOk() (*string, bool) {
if o == nil || IsNil(o.QosRules) {
return nil, false
}
return o.QosRules, true
}
// HasQosRules returns a boolean if a field has been set.
func (o *QosFlowAddModifyRequestItem) HasQosRules() bool {
if o != nil && !IsNil(o.QosRules) {
return true
}
return false
}
// SetQosRules gets a reference to the given string and assigns it to the QosRules field.
func (o *QosFlowAddModifyRequestItem) SetQosRules(v string) {
o.QosRules = &v
}
// GetQosFlowDescription returns the QosFlowDescription field value if set, zero value otherwise.
func (o *QosFlowAddModifyRequestItem) GetQosFlowDescription() string {
if o == nil || IsNil(o.QosFlowDescription) {
var ret string
return ret
}
return *o.QosFlowDescription
}
// GetQosFlowDescriptionOk returns a tuple with the QosFlowDescription field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosFlowAddModifyRequestItem) GetQosFlowDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.QosFlowDescription) {
return nil, false
}
return o.QosFlowDescription, true
}
// HasQosFlowDescription returns a boolean if a field has been set.
func (o *QosFlowAddModifyRequestItem) HasQosFlowDescription() bool {
if o != nil && !IsNil(o.QosFlowDescription) {
return true
}
return false
}
// SetQosFlowDescription gets a reference to the given string and assigns it to the QosFlowDescription field.
func (o *QosFlowAddModifyRequestItem) SetQosFlowDescription(v string) {
o.QosFlowDescription = &v
}
// GetQosFlowProfile returns the QosFlowProfile field value if set, zero value otherwise.
func (o *QosFlowAddModifyRequestItem) GetQosFlowProfile() QosFlowProfile {
if o == nil || IsNil(o.QosFlowProfile) {
var ret QosFlowProfile
return ret
}
return *o.QosFlowProfile
}
// GetQosFlowProfileOk returns a tuple with the QosFlowProfile field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosFlowAddModifyRequestItem) GetQosFlowProfileOk() (*QosFlowProfile, bool) {
if o == nil || IsNil(o.QosFlowProfile) {
return nil, false
}
return o.QosFlowProfile, true
}
// HasQosFlowProfile returns a boolean if a field has been set.
func (o *QosFlowAddModifyRequestItem) HasQosFlowProfile() bool {
if o != nil && !IsNil(o.QosFlowProfile) {
return true
}
return false
}
// SetQosFlowProfile gets a reference to the given QosFlowProfile and assigns it to the QosFlowProfile field.
func (o *QosFlowAddModifyRequestItem) SetQosFlowProfile(v QosFlowProfile) {
o.QosFlowProfile = &v
}
// GetAssociatedAnType returns the AssociatedAnType field value if set, zero value otherwise.
func (o *QosFlowAddModifyRequestItem) GetAssociatedAnType() QosFlowAccessType {
if o == nil || IsNil(o.AssociatedAnType) {
var ret QosFlowAccessType
return ret
}
return *o.AssociatedAnType
}
// GetAssociatedAnTypeOk returns a tuple with the AssociatedAnType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosFlowAddModifyRequestItem) GetAssociatedAnTypeOk() (*QosFlowAccessType, bool) {
if o == nil || IsNil(o.AssociatedAnType) {
return nil, false
}
return o.AssociatedAnType, true
}
// HasAssociatedAnType returns a boolean if a field has been set.
func (o *QosFlowAddModifyRequestItem) HasAssociatedAnType() bool {
if o != nil && !IsNil(o.AssociatedAnType) {
return true
}
return false
}
// SetAssociatedAnType gets a reference to the given QosFlowAccessType and assigns it to the AssociatedAnType field.
func (o *QosFlowAddModifyRequestItem) SetAssociatedAnType(v QosFlowAccessType) {
o.AssociatedAnType = &v
}
func (o QosFlowAddModifyRequestItem) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o QosFlowAddModifyRequestItem) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["qfi"] = o.Qfi
if !IsNil(o.Ebi) {
toSerialize["ebi"] = o.Ebi
}
if !IsNil(o.QosRules) {
toSerialize["qosRules"] = o.QosRules
}
if !IsNil(o.QosFlowDescription) {
toSerialize["qosFlowDescription"] = o.QosFlowDescription
}
if !IsNil(o.QosFlowProfile) {
toSerialize["qosFlowProfile"] = o.QosFlowProfile
}
if !IsNil(o.AssociatedAnType) {
toSerialize["associatedAnType"] = o.AssociatedAnType
}
return toSerialize, nil
}
type NullableQosFlowAddModifyRequestItem struct {
value *QosFlowAddModifyRequestItem
isSet bool
}
func (v NullableQosFlowAddModifyRequestItem) Get() *QosFlowAddModifyRequestItem {
return v.value
}
func (v *NullableQosFlowAddModifyRequestItem) Set(val *QosFlowAddModifyRequestItem) {
v.value = val
v.isSet = true
}
func (v NullableQosFlowAddModifyRequestItem) IsSet() bool {
return v.isSet
}
func (v *NullableQosFlowAddModifyRequestItem) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableQosFlowAddModifyRequestItem(val *QosFlowAddModifyRequestItem) *NullableQosFlowAddModifyRequestItem {
return &NullableQosFlowAddModifyRequestItem{value: val, isSet: true}
}
func (v NullableQosFlowAddModifyRequestItem) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableQosFlowAddModifyRequestItem) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}