This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_app_am_context_update_data.go
353 lines (296 loc) · 11 KB
/
model_app_am_context_update_data.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
/*
Npcf_AMPolicyAuthorization Service API
PCF Access and Mobility Policy Authorization Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.0-alpha.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi_Npcf_AMPolicyAuthorization
import (
"encoding/json"
)
// checks if the AppAmContextUpdateData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AppAmContextUpdateData{}
// AppAmContextUpdateData Describes the modifications to an Individual Application AM resource.
type AppAmContextUpdateData struct {
// String providing an URI formatted according to RFC 3986.
TermNotifUri *string `json:"termNotifUri,omitempty"`
EvSubsc NullableAmEventsSubscDataRm `json:"evSubsc,omitempty"`
// indicating a time in seconds with OpenAPI defined 'nullable: true' property.
Expiry NullableInt32 `json:"expiry,omitempty"`
// Indicates whether high throughput is desired for the indicated UE traffic.
HighThruInd NullableBool `json:"highThruInd,omitempty"`
// Identifies a list of Tracking Areas per serving network where service is allowed.
CovReq []ServiceAreaCoverageInfo `json:"covReq,omitempty"`
AsTimeDisParam NullableAsTimeDistributionParam `json:"asTimeDisParam,omitempty"`
}
// NewAppAmContextUpdateData instantiates a new AppAmContextUpdateData 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 NewAppAmContextUpdateData() *AppAmContextUpdateData {
this := AppAmContextUpdateData{}
return &this
}
// NewAppAmContextUpdateDataWithDefaults instantiates a new AppAmContextUpdateData 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 NewAppAmContextUpdateDataWithDefaults() *AppAmContextUpdateData {
this := AppAmContextUpdateData{}
return &this
}
// GetTermNotifUri returns the TermNotifUri field value if set, zero value otherwise.
func (o *AppAmContextUpdateData) GetTermNotifUri() string {
if o == nil || IsNil(o.TermNotifUri) {
var ret string
return ret
}
return *o.TermNotifUri
}
// GetTermNotifUriOk returns a tuple with the TermNotifUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppAmContextUpdateData) GetTermNotifUriOk() (*string, bool) {
if o == nil || IsNil(o.TermNotifUri) {
return nil, false
}
return o.TermNotifUri, true
}
// HasTermNotifUri returns a boolean if a field has been set.
func (o *AppAmContextUpdateData) HasTermNotifUri() bool {
if o != nil && !IsNil(o.TermNotifUri) {
return true
}
return false
}
// SetTermNotifUri gets a reference to the given string and assigns it to the TermNotifUri field.
func (o *AppAmContextUpdateData) SetTermNotifUri(v string) {
o.TermNotifUri = &v
}
// GetEvSubsc returns the EvSubsc field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppAmContextUpdateData) GetEvSubsc() AmEventsSubscDataRm {
if o == nil || IsNil(o.EvSubsc.Get()) {
var ret AmEventsSubscDataRm
return ret
}
return *o.EvSubsc.Get()
}
// GetEvSubscOk returns a tuple with the EvSubsc field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AppAmContextUpdateData) GetEvSubscOk() (*AmEventsSubscDataRm, bool) {
if o == nil {
return nil, false
}
return o.EvSubsc.Get(), o.EvSubsc.IsSet()
}
// HasEvSubsc returns a boolean if a field has been set.
func (o *AppAmContextUpdateData) HasEvSubsc() bool {
if o != nil && o.EvSubsc.IsSet() {
return true
}
return false
}
// SetEvSubsc gets a reference to the given NullableAmEventsSubscDataRm and assigns it to the EvSubsc field.
func (o *AppAmContextUpdateData) SetEvSubsc(v AmEventsSubscDataRm) {
o.EvSubsc.Set(&v)
}
// SetEvSubscNil sets the value for EvSubsc to be an explicit nil
func (o *AppAmContextUpdateData) SetEvSubscNil() {
o.EvSubsc.Set(nil)
}
// UnsetEvSubsc ensures that no value is present for EvSubsc, not even an explicit nil
func (o *AppAmContextUpdateData) UnsetEvSubsc() {
o.EvSubsc.Unset()
}
// GetExpiry returns the Expiry field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppAmContextUpdateData) GetExpiry() int32 {
if o == nil || IsNil(o.Expiry.Get()) {
var ret int32
return ret
}
return *o.Expiry.Get()
}
// GetExpiryOk returns a tuple with the Expiry field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AppAmContextUpdateData) GetExpiryOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.Expiry.Get(), o.Expiry.IsSet()
}
// HasExpiry returns a boolean if a field has been set.
func (o *AppAmContextUpdateData) HasExpiry() bool {
if o != nil && o.Expiry.IsSet() {
return true
}
return false
}
// SetExpiry gets a reference to the given NullableInt32 and assigns it to the Expiry field.
func (o *AppAmContextUpdateData) SetExpiry(v int32) {
o.Expiry.Set(&v)
}
// SetExpiryNil sets the value for Expiry to be an explicit nil
func (o *AppAmContextUpdateData) SetExpiryNil() {
o.Expiry.Set(nil)
}
// UnsetExpiry ensures that no value is present for Expiry, not even an explicit nil
func (o *AppAmContextUpdateData) UnsetExpiry() {
o.Expiry.Unset()
}
// GetHighThruInd returns the HighThruInd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppAmContextUpdateData) GetHighThruInd() bool {
if o == nil || IsNil(o.HighThruInd.Get()) {
var ret bool
return ret
}
return *o.HighThruInd.Get()
}
// GetHighThruIndOk returns a tuple with the HighThruInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AppAmContextUpdateData) GetHighThruIndOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.HighThruInd.Get(), o.HighThruInd.IsSet()
}
// HasHighThruInd returns a boolean if a field has been set.
func (o *AppAmContextUpdateData) HasHighThruInd() bool {
if o != nil && o.HighThruInd.IsSet() {
return true
}
return false
}
// SetHighThruInd gets a reference to the given NullableBool and assigns it to the HighThruInd field.
func (o *AppAmContextUpdateData) SetHighThruInd(v bool) {
o.HighThruInd.Set(&v)
}
// SetHighThruIndNil sets the value for HighThruInd to be an explicit nil
func (o *AppAmContextUpdateData) SetHighThruIndNil() {
o.HighThruInd.Set(nil)
}
// UnsetHighThruInd ensures that no value is present for HighThruInd, not even an explicit nil
func (o *AppAmContextUpdateData) UnsetHighThruInd() {
o.HighThruInd.Unset()
}
// GetCovReq returns the CovReq field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppAmContextUpdateData) GetCovReq() []ServiceAreaCoverageInfo {
if o == nil {
var ret []ServiceAreaCoverageInfo
return ret
}
return o.CovReq
}
// GetCovReqOk returns a tuple with the CovReq field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AppAmContextUpdateData) GetCovReqOk() ([]ServiceAreaCoverageInfo, bool) {
if o == nil || IsNil(o.CovReq) {
return nil, false
}
return o.CovReq, true
}
// HasCovReq returns a boolean if a field has been set.
func (o *AppAmContextUpdateData) HasCovReq() bool {
if o != nil && IsNil(o.CovReq) {
return true
}
return false
}
// SetCovReq gets a reference to the given []ServiceAreaCoverageInfo and assigns it to the CovReq field.
func (o *AppAmContextUpdateData) SetCovReq(v []ServiceAreaCoverageInfo) {
o.CovReq = v
}
// GetAsTimeDisParam returns the AsTimeDisParam field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AppAmContextUpdateData) GetAsTimeDisParam() AsTimeDistributionParam {
if o == nil || IsNil(o.AsTimeDisParam.Get()) {
var ret AsTimeDistributionParam
return ret
}
return *o.AsTimeDisParam.Get()
}
// GetAsTimeDisParamOk returns a tuple with the AsTimeDisParam field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AppAmContextUpdateData) GetAsTimeDisParamOk() (*AsTimeDistributionParam, bool) {
if o == nil {
return nil, false
}
return o.AsTimeDisParam.Get(), o.AsTimeDisParam.IsSet()
}
// HasAsTimeDisParam returns a boolean if a field has been set.
func (o *AppAmContextUpdateData) HasAsTimeDisParam() bool {
if o != nil && o.AsTimeDisParam.IsSet() {
return true
}
return false
}
// SetAsTimeDisParam gets a reference to the given NullableAsTimeDistributionParam and assigns it to the AsTimeDisParam field.
func (o *AppAmContextUpdateData) SetAsTimeDisParam(v AsTimeDistributionParam) {
o.AsTimeDisParam.Set(&v)
}
// SetAsTimeDisParamNil sets the value for AsTimeDisParam to be an explicit nil
func (o *AppAmContextUpdateData) SetAsTimeDisParamNil() {
o.AsTimeDisParam.Set(nil)
}
// UnsetAsTimeDisParam ensures that no value is present for AsTimeDisParam, not even an explicit nil
func (o *AppAmContextUpdateData) UnsetAsTimeDisParam() {
o.AsTimeDisParam.Unset()
}
func (o AppAmContextUpdateData) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AppAmContextUpdateData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.TermNotifUri) {
toSerialize["termNotifUri"] = o.TermNotifUri
}
if o.EvSubsc.IsSet() {
toSerialize["evSubsc"] = o.EvSubsc.Get()
}
if o.Expiry.IsSet() {
toSerialize["expiry"] = o.Expiry.Get()
}
if o.HighThruInd.IsSet() {
toSerialize["highThruInd"] = o.HighThruInd.Get()
}
if o.CovReq != nil {
toSerialize["covReq"] = o.CovReq
}
if o.AsTimeDisParam.IsSet() {
toSerialize["asTimeDisParam"] = o.AsTimeDisParam.Get()
}
return toSerialize, nil
}
type NullableAppAmContextUpdateData struct {
value *AppAmContextUpdateData
isSet bool
}
func (v NullableAppAmContextUpdateData) Get() *AppAmContextUpdateData {
return v.value
}
func (v *NullableAppAmContextUpdateData) Set(val *AppAmContextUpdateData) {
v.value = val
v.isSet = true
}
func (v NullableAppAmContextUpdateData) IsSet() bool {
return v.isSet
}
func (v *NullableAppAmContextUpdateData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAppAmContextUpdateData(val *AppAmContextUpdateData) *NullableAppAmContextUpdateData {
return &NullableAppAmContextUpdateData{value: val, isSet: true}
}
func (v NullableAppAmContextUpdateData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAppAmContextUpdateData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}