forked from meraki/dashboard-api-go
/
model_get_network_sensor_alerts_profiles_200_response_inner_conditions_inner_threshold.go
378 lines (317 loc) · 16.5 KB
/
model_get_network_sensor_alerts_profiles_200_response_inner_conditions_inner_threshold.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
/*
Meraki Dashboard API
A RESTful API to programmatically manage and monitor Cisco Meraki networks at scale. > Date: 02 August, 2023 > > [Recent Updates](https://meraki.io/whats-new/) --- [API Documentation](https://meraki.io/api) [Community Support](https://meraki.io/community) [Meraki Homepage](https://www.meraki.com)
API version: 1.36.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold{}
// GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold Threshold for sensor readings that will cause an alert to be sent. This object should contain a single property key matching the condition's 'metric' value.
type GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold struct {
Temperature *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTemperature `json:"temperature,omitempty"`
Humidity *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdHumidity `json:"humidity,omitempty"`
Water *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdWater `json:"water,omitempty"`
Door *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdDoor `json:"door,omitempty"`
Tvoc *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTvoc `json:"tvoc,omitempty"`
Pm25 *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdPm25 `json:"pm25,omitempty"`
Noise *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdNoise `json:"noise,omitempty"`
IndoorAirQuality *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdIndoorAirQuality `json:"indoorAirQuality,omitempty"`
}
// NewGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold instantiates a new GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold 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 NewGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold() *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold {
this := GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold{}
return &this
}
// NewGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdWithDefaults instantiates a new GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold 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 NewGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdWithDefaults() *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold {
this := GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold{}
return &this
}
// GetTemperature returns the Temperature field value if set, zero value otherwise.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetTemperature() GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTemperature {
if o == nil || IsNil(o.Temperature) {
var ret GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTemperature
return ret
}
return *o.Temperature
}
// GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetTemperatureOk() (*GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTemperature, bool) {
if o == nil || IsNil(o.Temperature) {
return nil, false
}
return o.Temperature, true
}
// HasTemperature returns a boolean if a field has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) HasTemperature() bool {
if o != nil && !IsNil(o.Temperature) {
return true
}
return false
}
// SetTemperature gets a reference to the given GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTemperature and assigns it to the Temperature field.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) SetTemperature(v GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTemperature) {
o.Temperature = &v
}
// GetHumidity returns the Humidity field value if set, zero value otherwise.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetHumidity() GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdHumidity {
if o == nil || IsNil(o.Humidity) {
var ret GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdHumidity
return ret
}
return *o.Humidity
}
// GetHumidityOk returns a tuple with the Humidity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetHumidityOk() (*GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdHumidity, bool) {
if o == nil || IsNil(o.Humidity) {
return nil, false
}
return o.Humidity, true
}
// HasHumidity returns a boolean if a field has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) HasHumidity() bool {
if o != nil && !IsNil(o.Humidity) {
return true
}
return false
}
// SetHumidity gets a reference to the given GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdHumidity and assigns it to the Humidity field.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) SetHumidity(v GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdHumidity) {
o.Humidity = &v
}
// GetWater returns the Water field value if set, zero value otherwise.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetWater() GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdWater {
if o == nil || IsNil(o.Water) {
var ret GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdWater
return ret
}
return *o.Water
}
// GetWaterOk returns a tuple with the Water field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetWaterOk() (*GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdWater, bool) {
if o == nil || IsNil(o.Water) {
return nil, false
}
return o.Water, true
}
// HasWater returns a boolean if a field has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) HasWater() bool {
if o != nil && !IsNil(o.Water) {
return true
}
return false
}
// SetWater gets a reference to the given GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdWater and assigns it to the Water field.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) SetWater(v GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdWater) {
o.Water = &v
}
// GetDoor returns the Door field value if set, zero value otherwise.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetDoor() GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdDoor {
if o == nil || IsNil(o.Door) {
var ret GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdDoor
return ret
}
return *o.Door
}
// GetDoorOk returns a tuple with the Door field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetDoorOk() (*GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdDoor, bool) {
if o == nil || IsNil(o.Door) {
return nil, false
}
return o.Door, true
}
// HasDoor returns a boolean if a field has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) HasDoor() bool {
if o != nil && !IsNil(o.Door) {
return true
}
return false
}
// SetDoor gets a reference to the given GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdDoor and assigns it to the Door field.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) SetDoor(v GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdDoor) {
o.Door = &v
}
// GetTvoc returns the Tvoc field value if set, zero value otherwise.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetTvoc() GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTvoc {
if o == nil || IsNil(o.Tvoc) {
var ret GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTvoc
return ret
}
return *o.Tvoc
}
// GetTvocOk returns a tuple with the Tvoc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetTvocOk() (*GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTvoc, bool) {
if o == nil || IsNil(o.Tvoc) {
return nil, false
}
return o.Tvoc, true
}
// HasTvoc returns a boolean if a field has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) HasTvoc() bool {
if o != nil && !IsNil(o.Tvoc) {
return true
}
return false
}
// SetTvoc gets a reference to the given GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTvoc and assigns it to the Tvoc field.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) SetTvoc(v GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdTvoc) {
o.Tvoc = &v
}
// GetPm25 returns the Pm25 field value if set, zero value otherwise.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetPm25() GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdPm25 {
if o == nil || IsNil(o.Pm25) {
var ret GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdPm25
return ret
}
return *o.Pm25
}
// GetPm25Ok returns a tuple with the Pm25 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetPm25Ok() (*GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdPm25, bool) {
if o == nil || IsNil(o.Pm25) {
return nil, false
}
return o.Pm25, true
}
// HasPm25 returns a boolean if a field has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) HasPm25() bool {
if o != nil && !IsNil(o.Pm25) {
return true
}
return false
}
// SetPm25 gets a reference to the given GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdPm25 and assigns it to the Pm25 field.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) SetPm25(v GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdPm25) {
o.Pm25 = &v
}
// GetNoise returns the Noise field value if set, zero value otherwise.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetNoise() GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdNoise {
if o == nil || IsNil(o.Noise) {
var ret GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdNoise
return ret
}
return *o.Noise
}
// GetNoiseOk returns a tuple with the Noise field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetNoiseOk() (*GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdNoise, bool) {
if o == nil || IsNil(o.Noise) {
return nil, false
}
return o.Noise, true
}
// HasNoise returns a boolean if a field has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) HasNoise() bool {
if o != nil && !IsNil(o.Noise) {
return true
}
return false
}
// SetNoise gets a reference to the given GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdNoise and assigns it to the Noise field.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) SetNoise(v GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdNoise) {
o.Noise = &v
}
// GetIndoorAirQuality returns the IndoorAirQuality field value if set, zero value otherwise.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetIndoorAirQuality() GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdIndoorAirQuality {
if o == nil || IsNil(o.IndoorAirQuality) {
var ret GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdIndoorAirQuality
return ret
}
return *o.IndoorAirQuality
}
// GetIndoorAirQualityOk returns a tuple with the IndoorAirQuality field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) GetIndoorAirQualityOk() (*GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdIndoorAirQuality, bool) {
if o == nil || IsNil(o.IndoorAirQuality) {
return nil, false
}
return o.IndoorAirQuality, true
}
// HasIndoorAirQuality returns a boolean if a field has been set.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) HasIndoorAirQuality() bool {
if o != nil && !IsNil(o.IndoorAirQuality) {
return true
}
return false
}
// SetIndoorAirQuality gets a reference to the given GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdIndoorAirQuality and assigns it to the IndoorAirQuality field.
func (o *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) SetIndoorAirQuality(v GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThresholdIndoorAirQuality) {
o.IndoorAirQuality = &v
}
func (o GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Temperature) {
toSerialize["temperature"] = o.Temperature
}
if !IsNil(o.Humidity) {
toSerialize["humidity"] = o.Humidity
}
if !IsNil(o.Water) {
toSerialize["water"] = o.Water
}
if !IsNil(o.Door) {
toSerialize["door"] = o.Door
}
if !IsNil(o.Tvoc) {
toSerialize["tvoc"] = o.Tvoc
}
if !IsNil(o.Pm25) {
toSerialize["pm25"] = o.Pm25
}
if !IsNil(o.Noise) {
toSerialize["noise"] = o.Noise
}
if !IsNil(o.IndoorAirQuality) {
toSerialize["indoorAirQuality"] = o.IndoorAirQuality
}
return toSerialize, nil
}
type NullableGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold struct {
value *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold
isSet bool
}
func (v NullableGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) Get() *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold {
return v.value
}
func (v *NullableGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) Set(val *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) {
v.value = val
v.isSet = true
}
func (v NullableGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) IsSet() bool {
return v.isSet
}
func (v *NullableGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold(val *GetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) *NullableGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold {
return &NullableGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold{value: val, isSet: true}
}
func (v NullableGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetNetworkSensorAlertsProfiles200ResponseInnerConditionsInnerThreshold) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}