/
model_sandbox_insert_beam_stats_request_beam_stats_map.go
475 lines (401 loc) · 14.2 KB
/
model_sandbox_insert_beam_stats_request_beam_stats_map.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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
/*
SORACOM SANDBOX API
SORACOM SANDBOX API v1
API version: 20160218
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sandbox
import (
"encoding/json"
)
// SandboxInsertBeamStatsRequestBeamStatsMap struct for SandboxInsertBeamStatsRequestBeamStatsMap
type SandboxInsertBeamStatsRequestBeamStatsMap struct {
InHttp *SandboxBeamCounts `json:"inHttp,omitempty"`
InMqtt *SandboxBeamCounts `json:"inMqtt,omitempty"`
InTcp *SandboxBeamCounts `json:"inTcp,omitempty"`
InUdp *SandboxBeamCounts `json:"inUdp,omitempty"`
OutHttp *SandboxBeamCounts `json:"outHttp,omitempty"`
OutHttps *SandboxBeamCounts `json:"outHttps,omitempty"`
OutMqtt *SandboxBeamCounts `json:"outMqtt,omitempty"`
OutMqtts *SandboxBeamCounts `json:"outMqtts,omitempty"`
OutTcp *SandboxBeamCounts `json:"outTcp,omitempty"`
OutTcps *SandboxBeamCounts `json:"outTcps,omitempty"`
OutUdp *SandboxBeamCounts `json:"outUdp,omitempty"`
}
// NewSandboxInsertBeamStatsRequestBeamStatsMap instantiates a new SandboxInsertBeamStatsRequestBeamStatsMap 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 NewSandboxInsertBeamStatsRequestBeamStatsMap() *SandboxInsertBeamStatsRequestBeamStatsMap {
this := SandboxInsertBeamStatsRequestBeamStatsMap{}
return &this
}
// NewSandboxInsertBeamStatsRequestBeamStatsMapWithDefaults instantiates a new SandboxInsertBeamStatsRequestBeamStatsMap 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 NewSandboxInsertBeamStatsRequestBeamStatsMapWithDefaults() *SandboxInsertBeamStatsRequestBeamStatsMap {
this := SandboxInsertBeamStatsRequestBeamStatsMap{}
return &this
}
// GetInHttp returns the InHttp field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetInHttp() SandboxBeamCounts {
if o == nil || o.InHttp == nil {
var ret SandboxBeamCounts
return ret
}
return *o.InHttp
}
// GetInHttpOk returns a tuple with the InHttp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetInHttpOk() (*SandboxBeamCounts, bool) {
if o == nil || o.InHttp == nil {
return nil, false
}
return o.InHttp, true
}
// HasInHttp returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasInHttp() bool {
if o != nil && o.InHttp != nil {
return true
}
return false
}
// SetInHttp gets a reference to the given SandboxBeamCounts and assigns it to the InHttp field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetInHttp(v SandboxBeamCounts) {
o.InHttp = &v
}
// GetInMqtt returns the InMqtt field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetInMqtt() SandboxBeamCounts {
if o == nil || o.InMqtt == nil {
var ret SandboxBeamCounts
return ret
}
return *o.InMqtt
}
// GetInMqttOk returns a tuple with the InMqtt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetInMqttOk() (*SandboxBeamCounts, bool) {
if o == nil || o.InMqtt == nil {
return nil, false
}
return o.InMqtt, true
}
// HasInMqtt returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasInMqtt() bool {
if o != nil && o.InMqtt != nil {
return true
}
return false
}
// SetInMqtt gets a reference to the given SandboxBeamCounts and assigns it to the InMqtt field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetInMqtt(v SandboxBeamCounts) {
o.InMqtt = &v
}
// GetInTcp returns the InTcp field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetInTcp() SandboxBeamCounts {
if o == nil || o.InTcp == nil {
var ret SandboxBeamCounts
return ret
}
return *o.InTcp
}
// GetInTcpOk returns a tuple with the InTcp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetInTcpOk() (*SandboxBeamCounts, bool) {
if o == nil || o.InTcp == nil {
return nil, false
}
return o.InTcp, true
}
// HasInTcp returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasInTcp() bool {
if o != nil && o.InTcp != nil {
return true
}
return false
}
// SetInTcp gets a reference to the given SandboxBeamCounts and assigns it to the InTcp field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetInTcp(v SandboxBeamCounts) {
o.InTcp = &v
}
// GetInUdp returns the InUdp field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetInUdp() SandboxBeamCounts {
if o == nil || o.InUdp == nil {
var ret SandboxBeamCounts
return ret
}
return *o.InUdp
}
// GetInUdpOk returns a tuple with the InUdp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetInUdpOk() (*SandboxBeamCounts, bool) {
if o == nil || o.InUdp == nil {
return nil, false
}
return o.InUdp, true
}
// HasInUdp returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasInUdp() bool {
if o != nil && o.InUdp != nil {
return true
}
return false
}
// SetInUdp gets a reference to the given SandboxBeamCounts and assigns it to the InUdp field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetInUdp(v SandboxBeamCounts) {
o.InUdp = &v
}
// GetOutHttp returns the OutHttp field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutHttp() SandboxBeamCounts {
if o == nil || o.OutHttp == nil {
var ret SandboxBeamCounts
return ret
}
return *o.OutHttp
}
// GetOutHttpOk returns a tuple with the OutHttp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutHttpOk() (*SandboxBeamCounts, bool) {
if o == nil || o.OutHttp == nil {
return nil, false
}
return o.OutHttp, true
}
// HasOutHttp returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasOutHttp() bool {
if o != nil && o.OutHttp != nil {
return true
}
return false
}
// SetOutHttp gets a reference to the given SandboxBeamCounts and assigns it to the OutHttp field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetOutHttp(v SandboxBeamCounts) {
o.OutHttp = &v
}
// GetOutHttps returns the OutHttps field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutHttps() SandboxBeamCounts {
if o == nil || o.OutHttps == nil {
var ret SandboxBeamCounts
return ret
}
return *o.OutHttps
}
// GetOutHttpsOk returns a tuple with the OutHttps field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutHttpsOk() (*SandboxBeamCounts, bool) {
if o == nil || o.OutHttps == nil {
return nil, false
}
return o.OutHttps, true
}
// HasOutHttps returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasOutHttps() bool {
if o != nil && o.OutHttps != nil {
return true
}
return false
}
// SetOutHttps gets a reference to the given SandboxBeamCounts and assigns it to the OutHttps field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetOutHttps(v SandboxBeamCounts) {
o.OutHttps = &v
}
// GetOutMqtt returns the OutMqtt field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutMqtt() SandboxBeamCounts {
if o == nil || o.OutMqtt == nil {
var ret SandboxBeamCounts
return ret
}
return *o.OutMqtt
}
// GetOutMqttOk returns a tuple with the OutMqtt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutMqttOk() (*SandboxBeamCounts, bool) {
if o == nil || o.OutMqtt == nil {
return nil, false
}
return o.OutMqtt, true
}
// HasOutMqtt returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasOutMqtt() bool {
if o != nil && o.OutMqtt != nil {
return true
}
return false
}
// SetOutMqtt gets a reference to the given SandboxBeamCounts and assigns it to the OutMqtt field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetOutMqtt(v SandboxBeamCounts) {
o.OutMqtt = &v
}
// GetOutMqtts returns the OutMqtts field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutMqtts() SandboxBeamCounts {
if o == nil || o.OutMqtts == nil {
var ret SandboxBeamCounts
return ret
}
return *o.OutMqtts
}
// GetOutMqttsOk returns a tuple with the OutMqtts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutMqttsOk() (*SandboxBeamCounts, bool) {
if o == nil || o.OutMqtts == nil {
return nil, false
}
return o.OutMqtts, true
}
// HasOutMqtts returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasOutMqtts() bool {
if o != nil && o.OutMqtts != nil {
return true
}
return false
}
// SetOutMqtts gets a reference to the given SandboxBeamCounts and assigns it to the OutMqtts field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetOutMqtts(v SandboxBeamCounts) {
o.OutMqtts = &v
}
// GetOutTcp returns the OutTcp field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutTcp() SandboxBeamCounts {
if o == nil || o.OutTcp == nil {
var ret SandboxBeamCounts
return ret
}
return *o.OutTcp
}
// GetOutTcpOk returns a tuple with the OutTcp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutTcpOk() (*SandboxBeamCounts, bool) {
if o == nil || o.OutTcp == nil {
return nil, false
}
return o.OutTcp, true
}
// HasOutTcp returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasOutTcp() bool {
if o != nil && o.OutTcp != nil {
return true
}
return false
}
// SetOutTcp gets a reference to the given SandboxBeamCounts and assigns it to the OutTcp field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetOutTcp(v SandboxBeamCounts) {
o.OutTcp = &v
}
// GetOutTcps returns the OutTcps field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutTcps() SandboxBeamCounts {
if o == nil || o.OutTcps == nil {
var ret SandboxBeamCounts
return ret
}
return *o.OutTcps
}
// GetOutTcpsOk returns a tuple with the OutTcps field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutTcpsOk() (*SandboxBeamCounts, bool) {
if o == nil || o.OutTcps == nil {
return nil, false
}
return o.OutTcps, true
}
// HasOutTcps returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasOutTcps() bool {
if o != nil && o.OutTcps != nil {
return true
}
return false
}
// SetOutTcps gets a reference to the given SandboxBeamCounts and assigns it to the OutTcps field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetOutTcps(v SandboxBeamCounts) {
o.OutTcps = &v
}
// GetOutUdp returns the OutUdp field value if set, zero value otherwise.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutUdp() SandboxBeamCounts {
if o == nil || o.OutUdp == nil {
var ret SandboxBeamCounts
return ret
}
return *o.OutUdp
}
// GetOutUdpOk returns a tuple with the OutUdp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) GetOutUdpOk() (*SandboxBeamCounts, bool) {
if o == nil || o.OutUdp == nil {
return nil, false
}
return o.OutUdp, true
}
// HasOutUdp returns a boolean if a field has been set.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) HasOutUdp() bool {
if o != nil && o.OutUdp != nil {
return true
}
return false
}
// SetOutUdp gets a reference to the given SandboxBeamCounts and assigns it to the OutUdp field.
func (o *SandboxInsertBeamStatsRequestBeamStatsMap) SetOutUdp(v SandboxBeamCounts) {
o.OutUdp = &v
}
func (o SandboxInsertBeamStatsRequestBeamStatsMap) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.InHttp != nil {
toSerialize["inHttp"] = o.InHttp
}
if o.InMqtt != nil {
toSerialize["inMqtt"] = o.InMqtt
}
if o.InTcp != nil {
toSerialize["inTcp"] = o.InTcp
}
if o.InUdp != nil {
toSerialize["inUdp"] = o.InUdp
}
if o.OutHttp != nil {
toSerialize["outHttp"] = o.OutHttp
}
if o.OutHttps != nil {
toSerialize["outHttps"] = o.OutHttps
}
if o.OutMqtt != nil {
toSerialize["outMqtt"] = o.OutMqtt
}
if o.OutMqtts != nil {
toSerialize["outMqtts"] = o.OutMqtts
}
if o.OutTcp != nil {
toSerialize["outTcp"] = o.OutTcp
}
if o.OutTcps != nil {
toSerialize["outTcps"] = o.OutTcps
}
if o.OutUdp != nil {
toSerialize["outUdp"] = o.OutUdp
}
return json.Marshal(toSerialize)
}
type NullableSandboxInsertBeamStatsRequestBeamStatsMap struct {
value *SandboxInsertBeamStatsRequestBeamStatsMap
isSet bool
}
func (v NullableSandboxInsertBeamStatsRequestBeamStatsMap) Get() *SandboxInsertBeamStatsRequestBeamStatsMap {
return v.value
}
func (v *NullableSandboxInsertBeamStatsRequestBeamStatsMap) Set(val *SandboxInsertBeamStatsRequestBeamStatsMap) {
v.value = val
v.isSet = true
}
func (v NullableSandboxInsertBeamStatsRequestBeamStatsMap) IsSet() bool {
return v.isSet
}
func (v *NullableSandboxInsertBeamStatsRequestBeamStatsMap) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSandboxInsertBeamStatsRequestBeamStatsMap(val *SandboxInsertBeamStatsRequestBeamStatsMap) *NullableSandboxInsertBeamStatsRequestBeamStatsMap {
return &NullableSandboxInsertBeamStatsRequestBeamStatsMap{value: val, isSet: true}
}
func (v NullableSandboxInsertBeamStatsRequestBeamStatsMap) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSandboxInsertBeamStatsRequestBeamStatsMap) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}