This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_gtp_u_path_qo_s_monitoring_control_single_all_of_attributes.go
412 lines (348 loc) · 17 KB
/
model_gtp_u_path_qo_s_monitoring_control_single_all_of_attributes.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
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
/*
Provisioning MnS
OAS 3.0.1 definition of the Provisioning MnS © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 17.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_ProvMnS
import (
"encoding/json"
)
// checks if the GtpUPathQoSMonitoringControlSingleAllOfAttributes type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GtpUPathQoSMonitoringControlSingleAllOfAttributes{}
// GtpUPathQoSMonitoringControlSingleAllOfAttributes struct for GtpUPathQoSMonitoringControlSingleAllOfAttributes
type GtpUPathQoSMonitoringControlSingleAllOfAttributes struct {
GtpUPathQoSMonitoringState *string `json:"gtpUPathQoSMonitoringState,omitempty"`
GtpUPathMonitoredSNSSAIs []Snssai `json:"gtpUPathMonitoredSNSSAIs,omitempty"`
MonitoredDSCPs []int32 `json:"monitoredDSCPs,omitempty"`
IsEventTriggeredGtpUPathMonitoringSupported *bool `json:"isEventTriggeredGtpUPathMonitoringSupported,omitempty"`
IsPeriodicGtpUMonitoringSupported *bool `json:"isPeriodicGtpUMonitoringSupported,omitempty"`
IsImmediateGtpUMonitoringSupported *bool `json:"isImmediateGtpUMonitoringSupported,omitempty"`
GtpUPathDelayThresholds *GtpUPathDelayThresholdsType `json:"gtpUPathDelayThresholds,omitempty"`
GtpUPathMinimumWaitTime *int32 `json:"gtpUPathMinimumWaitTime,omitempty"`
GtpUPathMeasurementPeriod *int32 `json:"gtpUPathMeasurementPeriod,omitempty"`
}
// NewGtpUPathQoSMonitoringControlSingleAllOfAttributes instantiates a new GtpUPathQoSMonitoringControlSingleAllOfAttributes 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 NewGtpUPathQoSMonitoringControlSingleAllOfAttributes() *GtpUPathQoSMonitoringControlSingleAllOfAttributes {
this := GtpUPathQoSMonitoringControlSingleAllOfAttributes{}
return &this
}
// NewGtpUPathQoSMonitoringControlSingleAllOfAttributesWithDefaults instantiates a new GtpUPathQoSMonitoringControlSingleAllOfAttributes 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 NewGtpUPathQoSMonitoringControlSingleAllOfAttributesWithDefaults() *GtpUPathQoSMonitoringControlSingleAllOfAttributes {
this := GtpUPathQoSMonitoringControlSingleAllOfAttributes{}
return &this
}
// GetGtpUPathQoSMonitoringState returns the GtpUPathQoSMonitoringState field value if set, zero value otherwise.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetGtpUPathQoSMonitoringState() string {
if o == nil || IsNil(o.GtpUPathQoSMonitoringState) {
var ret string
return ret
}
return *o.GtpUPathQoSMonitoringState
}
// GetGtpUPathQoSMonitoringStateOk returns a tuple with the GtpUPathQoSMonitoringState field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetGtpUPathQoSMonitoringStateOk() (*string, bool) {
if o == nil || IsNil(o.GtpUPathQoSMonitoringState) {
return nil, false
}
return o.GtpUPathQoSMonitoringState, true
}
// HasGtpUPathQoSMonitoringState returns a boolean if a field has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) HasGtpUPathQoSMonitoringState() bool {
if o != nil && !IsNil(o.GtpUPathQoSMonitoringState) {
return true
}
return false
}
// SetGtpUPathQoSMonitoringState gets a reference to the given string and assigns it to the GtpUPathQoSMonitoringState field.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) SetGtpUPathQoSMonitoringState(v string) {
o.GtpUPathQoSMonitoringState = &v
}
// GetGtpUPathMonitoredSNSSAIs returns the GtpUPathMonitoredSNSSAIs field value if set, zero value otherwise.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetGtpUPathMonitoredSNSSAIs() []Snssai {
if o == nil || IsNil(o.GtpUPathMonitoredSNSSAIs) {
var ret []Snssai
return ret
}
return o.GtpUPathMonitoredSNSSAIs
}
// GetGtpUPathMonitoredSNSSAIsOk returns a tuple with the GtpUPathMonitoredSNSSAIs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetGtpUPathMonitoredSNSSAIsOk() ([]Snssai, bool) {
if o == nil || IsNil(o.GtpUPathMonitoredSNSSAIs) {
return nil, false
}
return o.GtpUPathMonitoredSNSSAIs, true
}
// HasGtpUPathMonitoredSNSSAIs returns a boolean if a field has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) HasGtpUPathMonitoredSNSSAIs() bool {
if o != nil && !IsNil(o.GtpUPathMonitoredSNSSAIs) {
return true
}
return false
}
// SetGtpUPathMonitoredSNSSAIs gets a reference to the given []Snssai and assigns it to the GtpUPathMonitoredSNSSAIs field.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) SetGtpUPathMonitoredSNSSAIs(v []Snssai) {
o.GtpUPathMonitoredSNSSAIs = v
}
// GetMonitoredDSCPs returns the MonitoredDSCPs field value if set, zero value otherwise.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetMonitoredDSCPs() []int32 {
if o == nil || IsNil(o.MonitoredDSCPs) {
var ret []int32
return ret
}
return o.MonitoredDSCPs
}
// GetMonitoredDSCPsOk returns a tuple with the MonitoredDSCPs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetMonitoredDSCPsOk() ([]int32, bool) {
if o == nil || IsNil(o.MonitoredDSCPs) {
return nil, false
}
return o.MonitoredDSCPs, true
}
// HasMonitoredDSCPs returns a boolean if a field has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) HasMonitoredDSCPs() bool {
if o != nil && !IsNil(o.MonitoredDSCPs) {
return true
}
return false
}
// SetMonitoredDSCPs gets a reference to the given []int32 and assigns it to the MonitoredDSCPs field.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) SetMonitoredDSCPs(v []int32) {
o.MonitoredDSCPs = v
}
// GetIsEventTriggeredGtpUPathMonitoringSupported returns the IsEventTriggeredGtpUPathMonitoringSupported field value if set, zero value otherwise.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetIsEventTriggeredGtpUPathMonitoringSupported() bool {
if o == nil || IsNil(o.IsEventTriggeredGtpUPathMonitoringSupported) {
var ret bool
return ret
}
return *o.IsEventTriggeredGtpUPathMonitoringSupported
}
// GetIsEventTriggeredGtpUPathMonitoringSupportedOk returns a tuple with the IsEventTriggeredGtpUPathMonitoringSupported field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetIsEventTriggeredGtpUPathMonitoringSupportedOk() (*bool, bool) {
if o == nil || IsNil(o.IsEventTriggeredGtpUPathMonitoringSupported) {
return nil, false
}
return o.IsEventTriggeredGtpUPathMonitoringSupported, true
}
// HasIsEventTriggeredGtpUPathMonitoringSupported returns a boolean if a field has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) HasIsEventTriggeredGtpUPathMonitoringSupported() bool {
if o != nil && !IsNil(o.IsEventTriggeredGtpUPathMonitoringSupported) {
return true
}
return false
}
// SetIsEventTriggeredGtpUPathMonitoringSupported gets a reference to the given bool and assigns it to the IsEventTriggeredGtpUPathMonitoringSupported field.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) SetIsEventTriggeredGtpUPathMonitoringSupported(v bool) {
o.IsEventTriggeredGtpUPathMonitoringSupported = &v
}
// GetIsPeriodicGtpUMonitoringSupported returns the IsPeriodicGtpUMonitoringSupported field value if set, zero value otherwise.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetIsPeriodicGtpUMonitoringSupported() bool {
if o == nil || IsNil(o.IsPeriodicGtpUMonitoringSupported) {
var ret bool
return ret
}
return *o.IsPeriodicGtpUMonitoringSupported
}
// GetIsPeriodicGtpUMonitoringSupportedOk returns a tuple with the IsPeriodicGtpUMonitoringSupported field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetIsPeriodicGtpUMonitoringSupportedOk() (*bool, bool) {
if o == nil || IsNil(o.IsPeriodicGtpUMonitoringSupported) {
return nil, false
}
return o.IsPeriodicGtpUMonitoringSupported, true
}
// HasIsPeriodicGtpUMonitoringSupported returns a boolean if a field has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) HasIsPeriodicGtpUMonitoringSupported() bool {
if o != nil && !IsNil(o.IsPeriodicGtpUMonitoringSupported) {
return true
}
return false
}
// SetIsPeriodicGtpUMonitoringSupported gets a reference to the given bool and assigns it to the IsPeriodicGtpUMonitoringSupported field.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) SetIsPeriodicGtpUMonitoringSupported(v bool) {
o.IsPeriodicGtpUMonitoringSupported = &v
}
// GetIsImmediateGtpUMonitoringSupported returns the IsImmediateGtpUMonitoringSupported field value if set, zero value otherwise.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetIsImmediateGtpUMonitoringSupported() bool {
if o == nil || IsNil(o.IsImmediateGtpUMonitoringSupported) {
var ret bool
return ret
}
return *o.IsImmediateGtpUMonitoringSupported
}
// GetIsImmediateGtpUMonitoringSupportedOk returns a tuple with the IsImmediateGtpUMonitoringSupported field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetIsImmediateGtpUMonitoringSupportedOk() (*bool, bool) {
if o == nil || IsNil(o.IsImmediateGtpUMonitoringSupported) {
return nil, false
}
return o.IsImmediateGtpUMonitoringSupported, true
}
// HasIsImmediateGtpUMonitoringSupported returns a boolean if a field has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) HasIsImmediateGtpUMonitoringSupported() bool {
if o != nil && !IsNil(o.IsImmediateGtpUMonitoringSupported) {
return true
}
return false
}
// SetIsImmediateGtpUMonitoringSupported gets a reference to the given bool and assigns it to the IsImmediateGtpUMonitoringSupported field.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) SetIsImmediateGtpUMonitoringSupported(v bool) {
o.IsImmediateGtpUMonitoringSupported = &v
}
// GetGtpUPathDelayThresholds returns the GtpUPathDelayThresholds field value if set, zero value otherwise.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetGtpUPathDelayThresholds() GtpUPathDelayThresholdsType {
if o == nil || IsNil(o.GtpUPathDelayThresholds) {
var ret GtpUPathDelayThresholdsType
return ret
}
return *o.GtpUPathDelayThresholds
}
// GetGtpUPathDelayThresholdsOk returns a tuple with the GtpUPathDelayThresholds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetGtpUPathDelayThresholdsOk() (*GtpUPathDelayThresholdsType, bool) {
if o == nil || IsNil(o.GtpUPathDelayThresholds) {
return nil, false
}
return o.GtpUPathDelayThresholds, true
}
// HasGtpUPathDelayThresholds returns a boolean if a field has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) HasGtpUPathDelayThresholds() bool {
if o != nil && !IsNil(o.GtpUPathDelayThresholds) {
return true
}
return false
}
// SetGtpUPathDelayThresholds gets a reference to the given GtpUPathDelayThresholdsType and assigns it to the GtpUPathDelayThresholds field.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) SetGtpUPathDelayThresholds(v GtpUPathDelayThresholdsType) {
o.GtpUPathDelayThresholds = &v
}
// GetGtpUPathMinimumWaitTime returns the GtpUPathMinimumWaitTime field value if set, zero value otherwise.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetGtpUPathMinimumWaitTime() int32 {
if o == nil || IsNil(o.GtpUPathMinimumWaitTime) {
var ret int32
return ret
}
return *o.GtpUPathMinimumWaitTime
}
// GetGtpUPathMinimumWaitTimeOk returns a tuple with the GtpUPathMinimumWaitTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetGtpUPathMinimumWaitTimeOk() (*int32, bool) {
if o == nil || IsNil(o.GtpUPathMinimumWaitTime) {
return nil, false
}
return o.GtpUPathMinimumWaitTime, true
}
// HasGtpUPathMinimumWaitTime returns a boolean if a field has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) HasGtpUPathMinimumWaitTime() bool {
if o != nil && !IsNil(o.GtpUPathMinimumWaitTime) {
return true
}
return false
}
// SetGtpUPathMinimumWaitTime gets a reference to the given int32 and assigns it to the GtpUPathMinimumWaitTime field.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) SetGtpUPathMinimumWaitTime(v int32) {
o.GtpUPathMinimumWaitTime = &v
}
// GetGtpUPathMeasurementPeriod returns the GtpUPathMeasurementPeriod field value if set, zero value otherwise.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetGtpUPathMeasurementPeriod() int32 {
if o == nil || IsNil(o.GtpUPathMeasurementPeriod) {
var ret int32
return ret
}
return *o.GtpUPathMeasurementPeriod
}
// GetGtpUPathMeasurementPeriodOk returns a tuple with the GtpUPathMeasurementPeriod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) GetGtpUPathMeasurementPeriodOk() (*int32, bool) {
if o == nil || IsNil(o.GtpUPathMeasurementPeriod) {
return nil, false
}
return o.GtpUPathMeasurementPeriod, true
}
// HasGtpUPathMeasurementPeriod returns a boolean if a field has been set.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) HasGtpUPathMeasurementPeriod() bool {
if o != nil && !IsNil(o.GtpUPathMeasurementPeriod) {
return true
}
return false
}
// SetGtpUPathMeasurementPeriod gets a reference to the given int32 and assigns it to the GtpUPathMeasurementPeriod field.
func (o *GtpUPathQoSMonitoringControlSingleAllOfAttributes) SetGtpUPathMeasurementPeriod(v int32) {
o.GtpUPathMeasurementPeriod = &v
}
func (o GtpUPathQoSMonitoringControlSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GtpUPathQoSMonitoringControlSingleAllOfAttributes) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.GtpUPathQoSMonitoringState) {
toSerialize["gtpUPathQoSMonitoringState"] = o.GtpUPathQoSMonitoringState
}
if !IsNil(o.GtpUPathMonitoredSNSSAIs) {
toSerialize["gtpUPathMonitoredSNSSAIs"] = o.GtpUPathMonitoredSNSSAIs
}
if !IsNil(o.MonitoredDSCPs) {
toSerialize["monitoredDSCPs"] = o.MonitoredDSCPs
}
if !IsNil(o.IsEventTriggeredGtpUPathMonitoringSupported) {
toSerialize["isEventTriggeredGtpUPathMonitoringSupported"] = o.IsEventTriggeredGtpUPathMonitoringSupported
}
if !IsNil(o.IsPeriodicGtpUMonitoringSupported) {
toSerialize["isPeriodicGtpUMonitoringSupported"] = o.IsPeriodicGtpUMonitoringSupported
}
if !IsNil(o.IsImmediateGtpUMonitoringSupported) {
toSerialize["isImmediateGtpUMonitoringSupported"] = o.IsImmediateGtpUMonitoringSupported
}
if !IsNil(o.GtpUPathDelayThresholds) {
toSerialize["gtpUPathDelayThresholds"] = o.GtpUPathDelayThresholds
}
if !IsNil(o.GtpUPathMinimumWaitTime) {
toSerialize["gtpUPathMinimumWaitTime"] = o.GtpUPathMinimumWaitTime
}
if !IsNil(o.GtpUPathMeasurementPeriod) {
toSerialize["gtpUPathMeasurementPeriod"] = o.GtpUPathMeasurementPeriod
}
return toSerialize, nil
}
type NullableGtpUPathQoSMonitoringControlSingleAllOfAttributes struct {
value *GtpUPathQoSMonitoringControlSingleAllOfAttributes
isSet bool
}
func (v NullableGtpUPathQoSMonitoringControlSingleAllOfAttributes) Get() *GtpUPathQoSMonitoringControlSingleAllOfAttributes {
return v.value
}
func (v *NullableGtpUPathQoSMonitoringControlSingleAllOfAttributes) Set(val *GtpUPathQoSMonitoringControlSingleAllOfAttributes) {
v.value = val
v.isSet = true
}
func (v NullableGtpUPathQoSMonitoringControlSingleAllOfAttributes) IsSet() bool {
return v.isSet
}
func (v *NullableGtpUPathQoSMonitoringControlSingleAllOfAttributes) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGtpUPathQoSMonitoringControlSingleAllOfAttributes(val *GtpUPathQoSMonitoringControlSingleAllOfAttributes) *NullableGtpUPathQoSMonitoringControlSingleAllOfAttributes {
return &NullableGtpUPathQoSMonitoringControlSingleAllOfAttributes{value: val, isSet: true}
}
func (v NullableGtpUPathQoSMonitoringControlSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGtpUPathQoSMonitoringControlSingleAllOfAttributes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}