This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_rat_freq_information.go
307 lines (258 loc) · 8.82 KB
/
model_rat_freq_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
/*
Nnwdaf_AnalyticsInfo
Nnwdaf_AnalyticsInfo Service API. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.3.0-alpha.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Nnwdaf_AnalyticsInfo
import (
"encoding/json"
)
// checks if the RatFreqInformation type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &RatFreqInformation{}
// RatFreqInformation Represents the RAT type and/or Frequency information.
type RatFreqInformation struct {
// Set to \"true\" to indicate to handle all the frequencies the NWDAF received, otherwise set to \"false\" or omit. The \"allFreq\" attribute and the \"freq\" attribute are mutually exclusive.
AllFreq *bool `json:"allFreq,omitempty"`
// Set to \"true\" to indicate to handle all the RAT Types the NWDAF received, otherwise set to \"false\" or omit. The \"allRat\" attribute and the \"ratType\" attribute are mutually exclusive.
AllRat *bool `json:"allRat,omitempty"`
// Integer value indicating the ARFCN applicable for a downlink, uplink or bi-directional (TDD) NR global frequency raster, as definition of \"ARFCN-ValueNR\" IE in clause 6.3.2 of 3GPP TS 38.331.
Freq *int32 `json:"freq,omitempty"`
RatType *RatType `json:"ratType,omitempty"`
SvcExpThreshold *ThresholdLevel `json:"svcExpThreshold,omitempty"`
MatchingDir *MatchingDirection `json:"matchingDir,omitempty"`
}
// NewRatFreqInformation instantiates a new RatFreqInformation 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 NewRatFreqInformation() *RatFreqInformation {
this := RatFreqInformation{}
return &this
}
// NewRatFreqInformationWithDefaults instantiates a new RatFreqInformation 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 NewRatFreqInformationWithDefaults() *RatFreqInformation {
this := RatFreqInformation{}
return &this
}
// GetAllFreq returns the AllFreq field value if set, zero value otherwise.
func (o *RatFreqInformation) GetAllFreq() bool {
if o == nil || IsNil(o.AllFreq) {
var ret bool
return ret
}
return *o.AllFreq
}
// GetAllFreqOk returns a tuple with the AllFreq field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RatFreqInformation) GetAllFreqOk() (*bool, bool) {
if o == nil || IsNil(o.AllFreq) {
return nil, false
}
return o.AllFreq, true
}
// HasAllFreq returns a boolean if a field has been set.
func (o *RatFreqInformation) HasAllFreq() bool {
if o != nil && !IsNil(o.AllFreq) {
return true
}
return false
}
// SetAllFreq gets a reference to the given bool and assigns it to the AllFreq field.
func (o *RatFreqInformation) SetAllFreq(v bool) {
o.AllFreq = &v
}
// GetAllRat returns the AllRat field value if set, zero value otherwise.
func (o *RatFreqInformation) GetAllRat() bool {
if o == nil || IsNil(o.AllRat) {
var ret bool
return ret
}
return *o.AllRat
}
// GetAllRatOk returns a tuple with the AllRat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RatFreqInformation) GetAllRatOk() (*bool, bool) {
if o == nil || IsNil(o.AllRat) {
return nil, false
}
return o.AllRat, true
}
// HasAllRat returns a boolean if a field has been set.
func (o *RatFreqInformation) HasAllRat() bool {
if o != nil && !IsNil(o.AllRat) {
return true
}
return false
}
// SetAllRat gets a reference to the given bool and assigns it to the AllRat field.
func (o *RatFreqInformation) SetAllRat(v bool) {
o.AllRat = &v
}
// GetFreq returns the Freq field value if set, zero value otherwise.
func (o *RatFreqInformation) GetFreq() int32 {
if o == nil || IsNil(o.Freq) {
var ret int32
return ret
}
return *o.Freq
}
// GetFreqOk returns a tuple with the Freq field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RatFreqInformation) GetFreqOk() (*int32, bool) {
if o == nil || IsNil(o.Freq) {
return nil, false
}
return o.Freq, true
}
// HasFreq returns a boolean if a field has been set.
func (o *RatFreqInformation) HasFreq() bool {
if o != nil && !IsNil(o.Freq) {
return true
}
return false
}
// SetFreq gets a reference to the given int32 and assigns it to the Freq field.
func (o *RatFreqInformation) SetFreq(v int32) {
o.Freq = &v
}
// GetRatType returns the RatType field value if set, zero value otherwise.
func (o *RatFreqInformation) GetRatType() RatType {
if o == nil || IsNil(o.RatType) {
var ret RatType
return ret
}
return *o.RatType
}
// GetRatTypeOk returns a tuple with the RatType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RatFreqInformation) GetRatTypeOk() (*RatType, bool) {
if o == nil || IsNil(o.RatType) {
return nil, false
}
return o.RatType, true
}
// HasRatType returns a boolean if a field has been set.
func (o *RatFreqInformation) HasRatType() bool {
if o != nil && !IsNil(o.RatType) {
return true
}
return false
}
// SetRatType gets a reference to the given RatType and assigns it to the RatType field.
func (o *RatFreqInformation) SetRatType(v RatType) {
o.RatType = &v
}
// GetSvcExpThreshold returns the SvcExpThreshold field value if set, zero value otherwise.
func (o *RatFreqInformation) GetSvcExpThreshold() ThresholdLevel {
if o == nil || IsNil(o.SvcExpThreshold) {
var ret ThresholdLevel
return ret
}
return *o.SvcExpThreshold
}
// GetSvcExpThresholdOk returns a tuple with the SvcExpThreshold field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RatFreqInformation) GetSvcExpThresholdOk() (*ThresholdLevel, bool) {
if o == nil || IsNil(o.SvcExpThreshold) {
return nil, false
}
return o.SvcExpThreshold, true
}
// HasSvcExpThreshold returns a boolean if a field has been set.
func (o *RatFreqInformation) HasSvcExpThreshold() bool {
if o != nil && !IsNil(o.SvcExpThreshold) {
return true
}
return false
}
// SetSvcExpThreshold gets a reference to the given ThresholdLevel and assigns it to the SvcExpThreshold field.
func (o *RatFreqInformation) SetSvcExpThreshold(v ThresholdLevel) {
o.SvcExpThreshold = &v
}
// GetMatchingDir returns the MatchingDir field value if set, zero value otherwise.
func (o *RatFreqInformation) GetMatchingDir() MatchingDirection {
if o == nil || IsNil(o.MatchingDir) {
var ret MatchingDirection
return ret
}
return *o.MatchingDir
}
// GetMatchingDirOk returns a tuple with the MatchingDir field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RatFreqInformation) GetMatchingDirOk() (*MatchingDirection, bool) {
if o == nil || IsNil(o.MatchingDir) {
return nil, false
}
return o.MatchingDir, true
}
// HasMatchingDir returns a boolean if a field has been set.
func (o *RatFreqInformation) HasMatchingDir() bool {
if o != nil && !IsNil(o.MatchingDir) {
return true
}
return false
}
// SetMatchingDir gets a reference to the given MatchingDirection and assigns it to the MatchingDir field.
func (o *RatFreqInformation) SetMatchingDir(v MatchingDirection) {
o.MatchingDir = &v
}
func (o RatFreqInformation) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o RatFreqInformation) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AllFreq) {
toSerialize["allFreq"] = o.AllFreq
}
if !IsNil(o.AllRat) {
toSerialize["allRat"] = o.AllRat
}
if !IsNil(o.Freq) {
toSerialize["freq"] = o.Freq
}
if !IsNil(o.RatType) {
toSerialize["ratType"] = o.RatType
}
if !IsNil(o.SvcExpThreshold) {
toSerialize["svcExpThreshold"] = o.SvcExpThreshold
}
if !IsNil(o.MatchingDir) {
toSerialize["matchingDir"] = o.MatchingDir
}
return toSerialize, nil
}
type NullableRatFreqInformation struct {
value *RatFreqInformation
isSet bool
}
func (v NullableRatFreqInformation) Get() *RatFreqInformation {
return v.value
}
func (v *NullableRatFreqInformation) Set(val *RatFreqInformation) {
v.value = val
v.isSet = true
}
func (v NullableRatFreqInformation) IsSet() bool {
return v.isSet
}
func (v *NullableRatFreqInformation) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableRatFreqInformation(val *RatFreqInformation) *NullableRatFreqInformation {
return &NullableRatFreqInformation{value: val, isSet: true}
}
func (v NullableRatFreqInformation) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableRatFreqInformation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}