This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
/
model_monitoring_report.go
316 lines (265 loc) · 9.07 KB
/
model_monitoring_report.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
/*
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 MonitoringReport type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MonitoringReport{}
// MonitoringReport struct for MonitoringReport
type MonitoringReport struct {
ReferenceId int32 `json:"referenceId"`
EventType EventType `json:"eventType"`
Report *Report `json:"report,omitempty"`
ReachabilityForSmsReport *ReachabilityForSmsReport `json:"reachabilityForSmsReport,omitempty"`
// String identifying a Gpsi shall contain either an External Id or an MSISDN. It shall be formatted as follows -External Identifier= \"extid-'extid', where 'extid' shall be formatted according to clause 19.7.2 of 3GPP TS 23.003 that describes an External Identifier.
Gpsi *string `json:"gpsi,omitempty"`
// string with format 'date-time' as defined in OpenAPI.
TimeStamp time.Time `json:"timeStamp"`
ReachabilityReport *ReachabilityReport `json:"reachabilityReport,omitempty"`
}
// NewMonitoringReport instantiates a new MonitoringReport 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 NewMonitoringReport(referenceId int32, eventType EventType, timeStamp time.Time) *MonitoringReport {
this := MonitoringReport{}
this.ReferenceId = referenceId
this.EventType = eventType
this.TimeStamp = timeStamp
return &this
}
// NewMonitoringReportWithDefaults instantiates a new MonitoringReport 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 NewMonitoringReportWithDefaults() *MonitoringReport {
this := MonitoringReport{}
return &this
}
// GetReferenceId returns the ReferenceId field value
func (o *MonitoringReport) GetReferenceId() int32 {
if o == nil {
var ret int32
return ret
}
return o.ReferenceId
}
// GetReferenceIdOk returns a tuple with the ReferenceId field value
// and a boolean to check if the value has been set.
func (o *MonitoringReport) GetReferenceIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.ReferenceId, true
}
// SetReferenceId sets field value
func (o *MonitoringReport) SetReferenceId(v int32) {
o.ReferenceId = v
}
// GetEventType returns the EventType field value
func (o *MonitoringReport) GetEventType() EventType {
if o == nil {
var ret EventType
return ret
}
return o.EventType
}
// GetEventTypeOk returns a tuple with the EventType field value
// and a boolean to check if the value has been set.
func (o *MonitoringReport) GetEventTypeOk() (*EventType, bool) {
if o == nil {
return nil, false
}
return &o.EventType, true
}
// SetEventType sets field value
func (o *MonitoringReport) SetEventType(v EventType) {
o.EventType = v
}
// GetReport returns the Report field value if set, zero value otherwise.
func (o *MonitoringReport) GetReport() Report {
if o == nil || IsNil(o.Report) {
var ret Report
return ret
}
return *o.Report
}
// GetReportOk returns a tuple with the Report field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringReport) GetReportOk() (*Report, bool) {
if o == nil || IsNil(o.Report) {
return nil, false
}
return o.Report, true
}
// HasReport returns a boolean if a field has been set.
func (o *MonitoringReport) HasReport() bool {
if o != nil && !IsNil(o.Report) {
return true
}
return false
}
// SetReport gets a reference to the given Report and assigns it to the Report field.
func (o *MonitoringReport) SetReport(v Report) {
o.Report = &v
}
// GetReachabilityForSmsReport returns the ReachabilityForSmsReport field value if set, zero value otherwise.
func (o *MonitoringReport) GetReachabilityForSmsReport() ReachabilityForSmsReport {
if o == nil || IsNil(o.ReachabilityForSmsReport) {
var ret ReachabilityForSmsReport
return ret
}
return *o.ReachabilityForSmsReport
}
// GetReachabilityForSmsReportOk returns a tuple with the ReachabilityForSmsReport field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringReport) GetReachabilityForSmsReportOk() (*ReachabilityForSmsReport, bool) {
if o == nil || IsNil(o.ReachabilityForSmsReport) {
return nil, false
}
return o.ReachabilityForSmsReport, true
}
// HasReachabilityForSmsReport returns a boolean if a field has been set.
func (o *MonitoringReport) HasReachabilityForSmsReport() bool {
if o != nil && !IsNil(o.ReachabilityForSmsReport) {
return true
}
return false
}
// SetReachabilityForSmsReport gets a reference to the given ReachabilityForSmsReport and assigns it to the ReachabilityForSmsReport field.
func (o *MonitoringReport) SetReachabilityForSmsReport(v ReachabilityForSmsReport) {
o.ReachabilityForSmsReport = &v
}
// GetGpsi returns the Gpsi field value if set, zero value otherwise.
func (o *MonitoringReport) GetGpsi() string {
if o == nil || IsNil(o.Gpsi) {
var ret string
return ret
}
return *o.Gpsi
}
// GetGpsiOk returns a tuple with the Gpsi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringReport) GetGpsiOk() (*string, bool) {
if o == nil || IsNil(o.Gpsi) {
return nil, false
}
return o.Gpsi, true
}
// HasGpsi returns a boolean if a field has been set.
func (o *MonitoringReport) HasGpsi() bool {
if o != nil && !IsNil(o.Gpsi) {
return true
}
return false
}
// SetGpsi gets a reference to the given string and assigns it to the Gpsi field.
func (o *MonitoringReport) SetGpsi(v string) {
o.Gpsi = &v
}
// GetTimeStamp returns the TimeStamp field value
func (o *MonitoringReport) GetTimeStamp() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.TimeStamp
}
// GetTimeStampOk returns a tuple with the TimeStamp field value
// and a boolean to check if the value has been set.
func (o *MonitoringReport) GetTimeStampOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.TimeStamp, true
}
// SetTimeStamp sets field value
func (o *MonitoringReport) SetTimeStamp(v time.Time) {
o.TimeStamp = v
}
// GetReachabilityReport returns the ReachabilityReport field value if set, zero value otherwise.
func (o *MonitoringReport) GetReachabilityReport() ReachabilityReport {
if o == nil || IsNil(o.ReachabilityReport) {
var ret ReachabilityReport
return ret
}
return *o.ReachabilityReport
}
// GetReachabilityReportOk returns a tuple with the ReachabilityReport field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MonitoringReport) GetReachabilityReportOk() (*ReachabilityReport, bool) {
if o == nil || IsNil(o.ReachabilityReport) {
return nil, false
}
return o.ReachabilityReport, true
}
// HasReachabilityReport returns a boolean if a field has been set.
func (o *MonitoringReport) HasReachabilityReport() bool {
if o != nil && !IsNil(o.ReachabilityReport) {
return true
}
return false
}
// SetReachabilityReport gets a reference to the given ReachabilityReport and assigns it to the ReachabilityReport field.
func (o *MonitoringReport) SetReachabilityReport(v ReachabilityReport) {
o.ReachabilityReport = &v
}
func (o MonitoringReport) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MonitoringReport) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["referenceId"] = o.ReferenceId
toSerialize["eventType"] = o.EventType
if !IsNil(o.Report) {
toSerialize["report"] = o.Report
}
if !IsNil(o.ReachabilityForSmsReport) {
toSerialize["reachabilityForSmsReport"] = o.ReachabilityForSmsReport
}
if !IsNil(o.Gpsi) {
toSerialize["gpsi"] = o.Gpsi
}
toSerialize["timeStamp"] = o.TimeStamp
if !IsNil(o.ReachabilityReport) {
toSerialize["reachabilityReport"] = o.ReachabilityReport
}
return toSerialize, nil
}
type NullableMonitoringReport struct {
value *MonitoringReport
isSet bool
}
func (v NullableMonitoringReport) Get() *MonitoringReport {
return v.value
}
func (v *NullableMonitoringReport) Set(val *MonitoringReport) {
v.value = val
v.isSet = true
}
func (v NullableMonitoringReport) IsSet() bool {
return v.isSet
}
func (v *NullableMonitoringReport) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMonitoringReport(val *MonitoringReport) *NullableMonitoringReport {
return &NullableMonitoringReport{value: val, isSet: true}
}
func (v NullableMonitoringReport) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMonitoringReport) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}