This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_idle_status_indication.go
272 lines (228 loc) · 7.96 KB
/
model_idle_status_indication.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
/*
Nadrf_DataManagement
ADRF Data Management 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_Nadrf_DataManagement
import (
"encoding/json"
"time"
)
// checks if the IdleStatusIndication type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &IdleStatusIndication{}
// IdleStatusIndication Represents the idle status indication.
type IdleStatusIndication struct {
// string with format 'date-time' as defined in OpenAPI.
TimeStamp *time.Time `json:"timeStamp,omitempty"`
// indicating a time in seconds.
ActiveTime *int32 `json:"activeTime,omitempty"`
// indicating a time in seconds.
SubsRegTimer *int32 `json:"subsRegTimer,omitempty"`
EdrxCycleLength *int32 `json:"edrxCycleLength,omitempty"`
SuggestedNumOfDlPackets *int32 `json:"suggestedNumOfDlPackets,omitempty"`
}
// NewIdleStatusIndication instantiates a new IdleStatusIndication 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 NewIdleStatusIndication() *IdleStatusIndication {
this := IdleStatusIndication{}
return &this
}
// NewIdleStatusIndicationWithDefaults instantiates a new IdleStatusIndication 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 NewIdleStatusIndicationWithDefaults() *IdleStatusIndication {
this := IdleStatusIndication{}
return &this
}
// GetTimeStamp returns the TimeStamp field value if set, zero value otherwise.
func (o *IdleStatusIndication) GetTimeStamp() time.Time {
if o == nil || IsNil(o.TimeStamp) {
var ret time.Time
return ret
}
return *o.TimeStamp
}
// GetTimeStampOk returns a tuple with the TimeStamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdleStatusIndication) GetTimeStampOk() (*time.Time, bool) {
if o == nil || IsNil(o.TimeStamp) {
return nil, false
}
return o.TimeStamp, true
}
// HasTimeStamp returns a boolean if a field has been set.
func (o *IdleStatusIndication) HasTimeStamp() bool {
if o != nil && !IsNil(o.TimeStamp) {
return true
}
return false
}
// SetTimeStamp gets a reference to the given time.Time and assigns it to the TimeStamp field.
func (o *IdleStatusIndication) SetTimeStamp(v time.Time) {
o.TimeStamp = &v
}
// GetActiveTime returns the ActiveTime field value if set, zero value otherwise.
func (o *IdleStatusIndication) GetActiveTime() int32 {
if o == nil || IsNil(o.ActiveTime) {
var ret int32
return ret
}
return *o.ActiveTime
}
// GetActiveTimeOk returns a tuple with the ActiveTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdleStatusIndication) GetActiveTimeOk() (*int32, bool) {
if o == nil || IsNil(o.ActiveTime) {
return nil, false
}
return o.ActiveTime, true
}
// HasActiveTime returns a boolean if a field has been set.
func (o *IdleStatusIndication) HasActiveTime() bool {
if o != nil && !IsNil(o.ActiveTime) {
return true
}
return false
}
// SetActiveTime gets a reference to the given int32 and assigns it to the ActiveTime field.
func (o *IdleStatusIndication) SetActiveTime(v int32) {
o.ActiveTime = &v
}
// GetSubsRegTimer returns the SubsRegTimer field value if set, zero value otherwise.
func (o *IdleStatusIndication) GetSubsRegTimer() int32 {
if o == nil || IsNil(o.SubsRegTimer) {
var ret int32
return ret
}
return *o.SubsRegTimer
}
// GetSubsRegTimerOk returns a tuple with the SubsRegTimer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdleStatusIndication) GetSubsRegTimerOk() (*int32, bool) {
if o == nil || IsNil(o.SubsRegTimer) {
return nil, false
}
return o.SubsRegTimer, true
}
// HasSubsRegTimer returns a boolean if a field has been set.
func (o *IdleStatusIndication) HasSubsRegTimer() bool {
if o != nil && !IsNil(o.SubsRegTimer) {
return true
}
return false
}
// SetSubsRegTimer gets a reference to the given int32 and assigns it to the SubsRegTimer field.
func (o *IdleStatusIndication) SetSubsRegTimer(v int32) {
o.SubsRegTimer = &v
}
// GetEdrxCycleLength returns the EdrxCycleLength field value if set, zero value otherwise.
func (o *IdleStatusIndication) GetEdrxCycleLength() int32 {
if o == nil || IsNil(o.EdrxCycleLength) {
var ret int32
return ret
}
return *o.EdrxCycleLength
}
// GetEdrxCycleLengthOk returns a tuple with the EdrxCycleLength field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdleStatusIndication) GetEdrxCycleLengthOk() (*int32, bool) {
if o == nil || IsNil(o.EdrxCycleLength) {
return nil, false
}
return o.EdrxCycleLength, true
}
// HasEdrxCycleLength returns a boolean if a field has been set.
func (o *IdleStatusIndication) HasEdrxCycleLength() bool {
if o != nil && !IsNil(o.EdrxCycleLength) {
return true
}
return false
}
// SetEdrxCycleLength gets a reference to the given int32 and assigns it to the EdrxCycleLength field.
func (o *IdleStatusIndication) SetEdrxCycleLength(v int32) {
o.EdrxCycleLength = &v
}
// GetSuggestedNumOfDlPackets returns the SuggestedNumOfDlPackets field value if set, zero value otherwise.
func (o *IdleStatusIndication) GetSuggestedNumOfDlPackets() int32 {
if o == nil || IsNil(o.SuggestedNumOfDlPackets) {
var ret int32
return ret
}
return *o.SuggestedNumOfDlPackets
}
// GetSuggestedNumOfDlPacketsOk returns a tuple with the SuggestedNumOfDlPackets field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IdleStatusIndication) GetSuggestedNumOfDlPacketsOk() (*int32, bool) {
if o == nil || IsNil(o.SuggestedNumOfDlPackets) {
return nil, false
}
return o.SuggestedNumOfDlPackets, true
}
// HasSuggestedNumOfDlPackets returns a boolean if a field has been set.
func (o *IdleStatusIndication) HasSuggestedNumOfDlPackets() bool {
if o != nil && !IsNil(o.SuggestedNumOfDlPackets) {
return true
}
return false
}
// SetSuggestedNumOfDlPackets gets a reference to the given int32 and assigns it to the SuggestedNumOfDlPackets field.
func (o *IdleStatusIndication) SetSuggestedNumOfDlPackets(v int32) {
o.SuggestedNumOfDlPackets = &v
}
func (o IdleStatusIndication) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o IdleStatusIndication) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.TimeStamp) {
toSerialize["timeStamp"] = o.TimeStamp
}
if !IsNil(o.ActiveTime) {
toSerialize["activeTime"] = o.ActiveTime
}
if !IsNil(o.SubsRegTimer) {
toSerialize["subsRegTimer"] = o.SubsRegTimer
}
if !IsNil(o.EdrxCycleLength) {
toSerialize["edrxCycleLength"] = o.EdrxCycleLength
}
if !IsNil(o.SuggestedNumOfDlPackets) {
toSerialize["suggestedNumOfDlPackets"] = o.SuggestedNumOfDlPackets
}
return toSerialize, nil
}
type NullableIdleStatusIndication struct {
value *IdleStatusIndication
isSet bool
}
func (v NullableIdleStatusIndication) Get() *IdleStatusIndication {
return v.value
}
func (v *NullableIdleStatusIndication) Set(val *IdleStatusIndication) {
v.value = val
v.isSet = true
}
func (v NullableIdleStatusIndication) IsSet() bool {
return v.isSet
}
func (v *NullableIdleStatusIndication) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIdleStatusIndication(val *IdleStatusIndication) *NullableIdleStatusIndication {
return &NullableIdleStatusIndication{value: val, isSet: true}
}
func (v NullableIdleStatusIndication) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIdleStatusIndication) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}