This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_qos_monitoring_information.go
327 lines (275 loc) · 9.54 KB
/
model_qos_monitoring_information.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
/*
3gpp-as-session-with-qos
API for setting us an AS session with required QoS. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.2
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_AsSessionWithQoS
import (
"encoding/json"
)
// checks if the QosMonitoringInformation type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &QosMonitoringInformation{}
// QosMonitoringInformation Represents QoS monitoring information.
type QosMonitoringInformation struct {
ReqQosMonParams []RequestedQosMonitoringParameter `json:"reqQosMonParams"`
RepFreqs []ReportingFrequency `json:"repFreqs"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
RepThreshDl *int32 `json:"repThreshDl,omitempty"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
RepThreshUl *int32 `json:"repThreshUl,omitempty"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
RepThreshRp *int32 `json:"repThreshRp,omitempty"`
// indicating a time in seconds.
WaitTime *int32 `json:"waitTime,omitempty"`
// indicating a time in seconds.
RepPeriod *int32 `json:"repPeriod,omitempty"`
}
// NewQosMonitoringInformation instantiates a new QosMonitoringInformation 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 NewQosMonitoringInformation(reqQosMonParams []RequestedQosMonitoringParameter, repFreqs []ReportingFrequency) *QosMonitoringInformation {
this := QosMonitoringInformation{}
this.ReqQosMonParams = reqQosMonParams
this.RepFreqs = repFreqs
return &this
}
// NewQosMonitoringInformationWithDefaults instantiates a new QosMonitoringInformation 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 NewQosMonitoringInformationWithDefaults() *QosMonitoringInformation {
this := QosMonitoringInformation{}
return &this
}
// GetReqQosMonParams returns the ReqQosMonParams field value
func (o *QosMonitoringInformation) GetReqQosMonParams() []RequestedQosMonitoringParameter {
if o == nil {
var ret []RequestedQosMonitoringParameter
return ret
}
return o.ReqQosMonParams
}
// GetReqQosMonParamsOk returns a tuple with the ReqQosMonParams field value
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetReqQosMonParamsOk() ([]RequestedQosMonitoringParameter, bool) {
if o == nil {
return nil, false
}
return o.ReqQosMonParams, true
}
// SetReqQosMonParams sets field value
func (o *QosMonitoringInformation) SetReqQosMonParams(v []RequestedQosMonitoringParameter) {
o.ReqQosMonParams = v
}
// GetRepFreqs returns the RepFreqs field value
func (o *QosMonitoringInformation) GetRepFreqs() []ReportingFrequency {
if o == nil {
var ret []ReportingFrequency
return ret
}
return o.RepFreqs
}
// GetRepFreqsOk returns a tuple with the RepFreqs field value
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetRepFreqsOk() ([]ReportingFrequency, bool) {
if o == nil {
return nil, false
}
return o.RepFreqs, true
}
// SetRepFreqs sets field value
func (o *QosMonitoringInformation) SetRepFreqs(v []ReportingFrequency) {
o.RepFreqs = v
}
// GetRepThreshDl returns the RepThreshDl field value if set, zero value otherwise.
func (o *QosMonitoringInformation) GetRepThreshDl() int32 {
if o == nil || IsNil(o.RepThreshDl) {
var ret int32
return ret
}
return *o.RepThreshDl
}
// GetRepThreshDlOk returns a tuple with the RepThreshDl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetRepThreshDlOk() (*int32, bool) {
if o == nil || IsNil(o.RepThreshDl) {
return nil, false
}
return o.RepThreshDl, true
}
// HasRepThreshDl returns a boolean if a field has been set.
func (o *QosMonitoringInformation) HasRepThreshDl() bool {
if o != nil && !IsNil(o.RepThreshDl) {
return true
}
return false
}
// SetRepThreshDl gets a reference to the given int32 and assigns it to the RepThreshDl field.
func (o *QosMonitoringInformation) SetRepThreshDl(v int32) {
o.RepThreshDl = &v
}
// GetRepThreshUl returns the RepThreshUl field value if set, zero value otherwise.
func (o *QosMonitoringInformation) GetRepThreshUl() int32 {
if o == nil || IsNil(o.RepThreshUl) {
var ret int32
return ret
}
return *o.RepThreshUl
}
// GetRepThreshUlOk returns a tuple with the RepThreshUl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetRepThreshUlOk() (*int32, bool) {
if o == nil || IsNil(o.RepThreshUl) {
return nil, false
}
return o.RepThreshUl, true
}
// HasRepThreshUl returns a boolean if a field has been set.
func (o *QosMonitoringInformation) HasRepThreshUl() bool {
if o != nil && !IsNil(o.RepThreshUl) {
return true
}
return false
}
// SetRepThreshUl gets a reference to the given int32 and assigns it to the RepThreshUl field.
func (o *QosMonitoringInformation) SetRepThreshUl(v int32) {
o.RepThreshUl = &v
}
// GetRepThreshRp returns the RepThreshRp field value if set, zero value otherwise.
func (o *QosMonitoringInformation) GetRepThreshRp() int32 {
if o == nil || IsNil(o.RepThreshRp) {
var ret int32
return ret
}
return *o.RepThreshRp
}
// GetRepThreshRpOk returns a tuple with the RepThreshRp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetRepThreshRpOk() (*int32, bool) {
if o == nil || IsNil(o.RepThreshRp) {
return nil, false
}
return o.RepThreshRp, true
}
// HasRepThreshRp returns a boolean if a field has been set.
func (o *QosMonitoringInformation) HasRepThreshRp() bool {
if o != nil && !IsNil(o.RepThreshRp) {
return true
}
return false
}
// SetRepThreshRp gets a reference to the given int32 and assigns it to the RepThreshRp field.
func (o *QosMonitoringInformation) SetRepThreshRp(v int32) {
o.RepThreshRp = &v
}
// GetWaitTime returns the WaitTime field value if set, zero value otherwise.
func (o *QosMonitoringInformation) GetWaitTime() int32 {
if o == nil || IsNil(o.WaitTime) {
var ret int32
return ret
}
return *o.WaitTime
}
// GetWaitTimeOk returns a tuple with the WaitTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetWaitTimeOk() (*int32, bool) {
if o == nil || IsNil(o.WaitTime) {
return nil, false
}
return o.WaitTime, true
}
// HasWaitTime returns a boolean if a field has been set.
func (o *QosMonitoringInformation) HasWaitTime() bool {
if o != nil && !IsNil(o.WaitTime) {
return true
}
return false
}
// SetWaitTime gets a reference to the given int32 and assigns it to the WaitTime field.
func (o *QosMonitoringInformation) SetWaitTime(v int32) {
o.WaitTime = &v
}
// GetRepPeriod returns the RepPeriod field value if set, zero value otherwise.
func (o *QosMonitoringInformation) GetRepPeriod() int32 {
if o == nil || IsNil(o.RepPeriod) {
var ret int32
return ret
}
return *o.RepPeriod
}
// GetRepPeriodOk returns a tuple with the RepPeriod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetRepPeriodOk() (*int32, bool) {
if o == nil || IsNil(o.RepPeriod) {
return nil, false
}
return o.RepPeriod, true
}
// HasRepPeriod returns a boolean if a field has been set.
func (o *QosMonitoringInformation) HasRepPeriod() bool {
if o != nil && !IsNil(o.RepPeriod) {
return true
}
return false
}
// SetRepPeriod gets a reference to the given int32 and assigns it to the RepPeriod field.
func (o *QosMonitoringInformation) SetRepPeriod(v int32) {
o.RepPeriod = &v
}
func (o QosMonitoringInformation) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o QosMonitoringInformation) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["reqQosMonParams"] = o.ReqQosMonParams
toSerialize["repFreqs"] = o.RepFreqs
if !IsNil(o.RepThreshDl) {
toSerialize["repThreshDl"] = o.RepThreshDl
}
if !IsNil(o.RepThreshUl) {
toSerialize["repThreshUl"] = o.RepThreshUl
}
if !IsNil(o.RepThreshRp) {
toSerialize["repThreshRp"] = o.RepThreshRp
}
if !IsNil(o.WaitTime) {
toSerialize["waitTime"] = o.WaitTime
}
if !IsNil(o.RepPeriod) {
toSerialize["repPeriod"] = o.RepPeriod
}
return toSerialize, nil
}
type NullableQosMonitoringInformation struct {
value *QosMonitoringInformation
isSet bool
}
func (v NullableQosMonitoringInformation) Get() *QosMonitoringInformation {
return v.value
}
func (v *NullableQosMonitoringInformation) Set(val *QosMonitoringInformation) {
v.value = val
v.isSet = true
}
func (v NullableQosMonitoringInformation) IsSet() bool {
return v.isSet
}
func (v *NullableQosMonitoringInformation) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableQosMonitoringInformation(val *QosMonitoringInformation) *NullableQosMonitoringInformation {
return &NullableQosMonitoringInformation{value: val, isSet: true}
}
func (v NullableQosMonitoringInformation) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableQosMonitoringInformation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}