/
model_controller_status_dto.go
683 lines (582 loc) · 21.3 KB
/
model_controller_status_dto.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
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
/*
NiFi Rest API
The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
API version: 2.0.0
Contact: dev@nifi.apache.org
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package nifiapi
import (
"encoding/json"
)
// checks if the ControllerStatusDTO type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ControllerStatusDTO{}
// ControllerStatusDTO struct for ControllerStatusDTO
type ControllerStatusDTO struct {
// The number of active threads in the NiFi.
ActiveThreadCount *int32 `json:"activeThreadCount,omitempty"`
// The number of terminated threads in the NiFi.
TerminatedThreadCount *int32 `json:"terminatedThreadCount,omitempty"`
// The number of flowfiles queued in the NiFi.
Queued *string `json:"queued,omitempty"`
// The number of FlowFiles queued across the entire flow
FlowFilesQueued *int32 `json:"flowFilesQueued,omitempty"`
// The size of the FlowFiles queued across the entire flow
BytesQueued *int64 `json:"bytesQueued,omitempty"`
// The number of running components in the NiFi.
RunningCount *int32 `json:"runningCount,omitempty"`
// The number of stopped components in the NiFi.
StoppedCount *int32 `json:"stoppedCount,omitempty"`
// The number of invalid components in the NiFi.
InvalidCount *int32 `json:"invalidCount,omitempty"`
// The number of disabled components in the NiFi.
DisabledCount *int32 `json:"disabledCount,omitempty"`
// The number of active remote ports in the NiFi.
ActiveRemotePortCount *int32 `json:"activeRemotePortCount,omitempty"`
// The number of inactive remote ports in the NiFi.
InactiveRemotePortCount *int32 `json:"inactiveRemotePortCount,omitempty"`
// The number of up to date versioned process groups in the NiFi.
UpToDateCount *int32 `json:"upToDateCount,omitempty"`
// The number of locally modified versioned process groups in the NiFi.
LocallyModifiedCount *int32 `json:"locallyModifiedCount,omitempty"`
// The number of stale versioned process groups in the NiFi.
StaleCount *int32 `json:"staleCount,omitempty"`
// The number of locally modified and stale versioned process groups in the NiFi.
LocallyModifiedAndStaleCount *int32 `json:"locallyModifiedAndStaleCount,omitempty"`
// The number of versioned process groups in the NiFi that are unable to sync to a registry.
SyncFailureCount *int32 `json:"syncFailureCount,omitempty"`
}
// NewControllerStatusDTO instantiates a new ControllerStatusDTO 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 NewControllerStatusDTO() *ControllerStatusDTO {
this := ControllerStatusDTO{}
return &this
}
// NewControllerStatusDTOWithDefaults instantiates a new ControllerStatusDTO 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 NewControllerStatusDTOWithDefaults() *ControllerStatusDTO {
this := ControllerStatusDTO{}
return &this
}
// GetActiveThreadCount returns the ActiveThreadCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetActiveThreadCount() int32 {
if o == nil || IsNil(o.ActiveThreadCount) {
var ret int32
return ret
}
return *o.ActiveThreadCount
}
// GetActiveThreadCountOk returns a tuple with the ActiveThreadCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetActiveThreadCountOk() (*int32, bool) {
if o == nil || IsNil(o.ActiveThreadCount) {
return nil, false
}
return o.ActiveThreadCount, true
}
// HasActiveThreadCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasActiveThreadCount() bool {
if o != nil && !IsNil(o.ActiveThreadCount) {
return true
}
return false
}
// SetActiveThreadCount gets a reference to the given int32 and assigns it to the ActiveThreadCount field.
func (o *ControllerStatusDTO) SetActiveThreadCount(v int32) {
o.ActiveThreadCount = &v
}
// GetTerminatedThreadCount returns the TerminatedThreadCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetTerminatedThreadCount() int32 {
if o == nil || IsNil(o.TerminatedThreadCount) {
var ret int32
return ret
}
return *o.TerminatedThreadCount
}
// GetTerminatedThreadCountOk returns a tuple with the TerminatedThreadCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetTerminatedThreadCountOk() (*int32, bool) {
if o == nil || IsNil(o.TerminatedThreadCount) {
return nil, false
}
return o.TerminatedThreadCount, true
}
// HasTerminatedThreadCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasTerminatedThreadCount() bool {
if o != nil && !IsNil(o.TerminatedThreadCount) {
return true
}
return false
}
// SetTerminatedThreadCount gets a reference to the given int32 and assigns it to the TerminatedThreadCount field.
func (o *ControllerStatusDTO) SetTerminatedThreadCount(v int32) {
o.TerminatedThreadCount = &v
}
// GetQueued returns the Queued field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetQueued() string {
if o == nil || IsNil(o.Queued) {
var ret string
return ret
}
return *o.Queued
}
// GetQueuedOk returns a tuple with the Queued field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetQueuedOk() (*string, bool) {
if o == nil || IsNil(o.Queued) {
return nil, false
}
return o.Queued, true
}
// HasQueued returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasQueued() bool {
if o != nil && !IsNil(o.Queued) {
return true
}
return false
}
// SetQueued gets a reference to the given string and assigns it to the Queued field.
func (o *ControllerStatusDTO) SetQueued(v string) {
o.Queued = &v
}
// GetFlowFilesQueued returns the FlowFilesQueued field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetFlowFilesQueued() int32 {
if o == nil || IsNil(o.FlowFilesQueued) {
var ret int32
return ret
}
return *o.FlowFilesQueued
}
// GetFlowFilesQueuedOk returns a tuple with the FlowFilesQueued field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetFlowFilesQueuedOk() (*int32, bool) {
if o == nil || IsNil(o.FlowFilesQueued) {
return nil, false
}
return o.FlowFilesQueued, true
}
// HasFlowFilesQueued returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasFlowFilesQueued() bool {
if o != nil && !IsNil(o.FlowFilesQueued) {
return true
}
return false
}
// SetFlowFilesQueued gets a reference to the given int32 and assigns it to the FlowFilesQueued field.
func (o *ControllerStatusDTO) SetFlowFilesQueued(v int32) {
o.FlowFilesQueued = &v
}
// GetBytesQueued returns the BytesQueued field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetBytesQueued() int64 {
if o == nil || IsNil(o.BytesQueued) {
var ret int64
return ret
}
return *o.BytesQueued
}
// GetBytesQueuedOk returns a tuple with the BytesQueued field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetBytesQueuedOk() (*int64, bool) {
if o == nil || IsNil(o.BytesQueued) {
return nil, false
}
return o.BytesQueued, true
}
// HasBytesQueued returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasBytesQueued() bool {
if o != nil && !IsNil(o.BytesQueued) {
return true
}
return false
}
// SetBytesQueued gets a reference to the given int64 and assigns it to the BytesQueued field.
func (o *ControllerStatusDTO) SetBytesQueued(v int64) {
o.BytesQueued = &v
}
// GetRunningCount returns the RunningCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetRunningCount() int32 {
if o == nil || IsNil(o.RunningCount) {
var ret int32
return ret
}
return *o.RunningCount
}
// GetRunningCountOk returns a tuple with the RunningCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetRunningCountOk() (*int32, bool) {
if o == nil || IsNil(o.RunningCount) {
return nil, false
}
return o.RunningCount, true
}
// HasRunningCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasRunningCount() bool {
if o != nil && !IsNil(o.RunningCount) {
return true
}
return false
}
// SetRunningCount gets a reference to the given int32 and assigns it to the RunningCount field.
func (o *ControllerStatusDTO) SetRunningCount(v int32) {
o.RunningCount = &v
}
// GetStoppedCount returns the StoppedCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetStoppedCount() int32 {
if o == nil || IsNil(o.StoppedCount) {
var ret int32
return ret
}
return *o.StoppedCount
}
// GetStoppedCountOk returns a tuple with the StoppedCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetStoppedCountOk() (*int32, bool) {
if o == nil || IsNil(o.StoppedCount) {
return nil, false
}
return o.StoppedCount, true
}
// HasStoppedCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasStoppedCount() bool {
if o != nil && !IsNil(o.StoppedCount) {
return true
}
return false
}
// SetStoppedCount gets a reference to the given int32 and assigns it to the StoppedCount field.
func (o *ControllerStatusDTO) SetStoppedCount(v int32) {
o.StoppedCount = &v
}
// GetInvalidCount returns the InvalidCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetInvalidCount() int32 {
if o == nil || IsNil(o.InvalidCount) {
var ret int32
return ret
}
return *o.InvalidCount
}
// GetInvalidCountOk returns a tuple with the InvalidCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetInvalidCountOk() (*int32, bool) {
if o == nil || IsNil(o.InvalidCount) {
return nil, false
}
return o.InvalidCount, true
}
// HasInvalidCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasInvalidCount() bool {
if o != nil && !IsNil(o.InvalidCount) {
return true
}
return false
}
// SetInvalidCount gets a reference to the given int32 and assigns it to the InvalidCount field.
func (o *ControllerStatusDTO) SetInvalidCount(v int32) {
o.InvalidCount = &v
}
// GetDisabledCount returns the DisabledCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetDisabledCount() int32 {
if o == nil || IsNil(o.DisabledCount) {
var ret int32
return ret
}
return *o.DisabledCount
}
// GetDisabledCountOk returns a tuple with the DisabledCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetDisabledCountOk() (*int32, bool) {
if o == nil || IsNil(o.DisabledCount) {
return nil, false
}
return o.DisabledCount, true
}
// HasDisabledCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasDisabledCount() bool {
if o != nil && !IsNil(o.DisabledCount) {
return true
}
return false
}
// SetDisabledCount gets a reference to the given int32 and assigns it to the DisabledCount field.
func (o *ControllerStatusDTO) SetDisabledCount(v int32) {
o.DisabledCount = &v
}
// GetActiveRemotePortCount returns the ActiveRemotePortCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetActiveRemotePortCount() int32 {
if o == nil || IsNil(o.ActiveRemotePortCount) {
var ret int32
return ret
}
return *o.ActiveRemotePortCount
}
// GetActiveRemotePortCountOk returns a tuple with the ActiveRemotePortCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetActiveRemotePortCountOk() (*int32, bool) {
if o == nil || IsNil(o.ActiveRemotePortCount) {
return nil, false
}
return o.ActiveRemotePortCount, true
}
// HasActiveRemotePortCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasActiveRemotePortCount() bool {
if o != nil && !IsNil(o.ActiveRemotePortCount) {
return true
}
return false
}
// SetActiveRemotePortCount gets a reference to the given int32 and assigns it to the ActiveRemotePortCount field.
func (o *ControllerStatusDTO) SetActiveRemotePortCount(v int32) {
o.ActiveRemotePortCount = &v
}
// GetInactiveRemotePortCount returns the InactiveRemotePortCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetInactiveRemotePortCount() int32 {
if o == nil || IsNil(o.InactiveRemotePortCount) {
var ret int32
return ret
}
return *o.InactiveRemotePortCount
}
// GetInactiveRemotePortCountOk returns a tuple with the InactiveRemotePortCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetInactiveRemotePortCountOk() (*int32, bool) {
if o == nil || IsNil(o.InactiveRemotePortCount) {
return nil, false
}
return o.InactiveRemotePortCount, true
}
// HasInactiveRemotePortCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasInactiveRemotePortCount() bool {
if o != nil && !IsNil(o.InactiveRemotePortCount) {
return true
}
return false
}
// SetInactiveRemotePortCount gets a reference to the given int32 and assigns it to the InactiveRemotePortCount field.
func (o *ControllerStatusDTO) SetInactiveRemotePortCount(v int32) {
o.InactiveRemotePortCount = &v
}
// GetUpToDateCount returns the UpToDateCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetUpToDateCount() int32 {
if o == nil || IsNil(o.UpToDateCount) {
var ret int32
return ret
}
return *o.UpToDateCount
}
// GetUpToDateCountOk returns a tuple with the UpToDateCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetUpToDateCountOk() (*int32, bool) {
if o == nil || IsNil(o.UpToDateCount) {
return nil, false
}
return o.UpToDateCount, true
}
// HasUpToDateCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasUpToDateCount() bool {
if o != nil && !IsNil(o.UpToDateCount) {
return true
}
return false
}
// SetUpToDateCount gets a reference to the given int32 and assigns it to the UpToDateCount field.
func (o *ControllerStatusDTO) SetUpToDateCount(v int32) {
o.UpToDateCount = &v
}
// GetLocallyModifiedCount returns the LocallyModifiedCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetLocallyModifiedCount() int32 {
if o == nil || IsNil(o.LocallyModifiedCount) {
var ret int32
return ret
}
return *o.LocallyModifiedCount
}
// GetLocallyModifiedCountOk returns a tuple with the LocallyModifiedCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetLocallyModifiedCountOk() (*int32, bool) {
if o == nil || IsNil(o.LocallyModifiedCount) {
return nil, false
}
return o.LocallyModifiedCount, true
}
// HasLocallyModifiedCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasLocallyModifiedCount() bool {
if o != nil && !IsNil(o.LocallyModifiedCount) {
return true
}
return false
}
// SetLocallyModifiedCount gets a reference to the given int32 and assigns it to the LocallyModifiedCount field.
func (o *ControllerStatusDTO) SetLocallyModifiedCount(v int32) {
o.LocallyModifiedCount = &v
}
// GetStaleCount returns the StaleCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetStaleCount() int32 {
if o == nil || IsNil(o.StaleCount) {
var ret int32
return ret
}
return *o.StaleCount
}
// GetStaleCountOk returns a tuple with the StaleCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetStaleCountOk() (*int32, bool) {
if o == nil || IsNil(o.StaleCount) {
return nil, false
}
return o.StaleCount, true
}
// HasStaleCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasStaleCount() bool {
if o != nil && !IsNil(o.StaleCount) {
return true
}
return false
}
// SetStaleCount gets a reference to the given int32 and assigns it to the StaleCount field.
func (o *ControllerStatusDTO) SetStaleCount(v int32) {
o.StaleCount = &v
}
// GetLocallyModifiedAndStaleCount returns the LocallyModifiedAndStaleCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetLocallyModifiedAndStaleCount() int32 {
if o == nil || IsNil(o.LocallyModifiedAndStaleCount) {
var ret int32
return ret
}
return *o.LocallyModifiedAndStaleCount
}
// GetLocallyModifiedAndStaleCountOk returns a tuple with the LocallyModifiedAndStaleCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetLocallyModifiedAndStaleCountOk() (*int32, bool) {
if o == nil || IsNil(o.LocallyModifiedAndStaleCount) {
return nil, false
}
return o.LocallyModifiedAndStaleCount, true
}
// HasLocallyModifiedAndStaleCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasLocallyModifiedAndStaleCount() bool {
if o != nil && !IsNil(o.LocallyModifiedAndStaleCount) {
return true
}
return false
}
// SetLocallyModifiedAndStaleCount gets a reference to the given int32 and assigns it to the LocallyModifiedAndStaleCount field.
func (o *ControllerStatusDTO) SetLocallyModifiedAndStaleCount(v int32) {
o.LocallyModifiedAndStaleCount = &v
}
// GetSyncFailureCount returns the SyncFailureCount field value if set, zero value otherwise.
func (o *ControllerStatusDTO) GetSyncFailureCount() int32 {
if o == nil || IsNil(o.SyncFailureCount) {
var ret int32
return ret
}
return *o.SyncFailureCount
}
// GetSyncFailureCountOk returns a tuple with the SyncFailureCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ControllerStatusDTO) GetSyncFailureCountOk() (*int32, bool) {
if o == nil || IsNil(o.SyncFailureCount) {
return nil, false
}
return o.SyncFailureCount, true
}
// HasSyncFailureCount returns a boolean if a field has been set.
func (o *ControllerStatusDTO) HasSyncFailureCount() bool {
if o != nil && !IsNil(o.SyncFailureCount) {
return true
}
return false
}
// SetSyncFailureCount gets a reference to the given int32 and assigns it to the SyncFailureCount field.
func (o *ControllerStatusDTO) SetSyncFailureCount(v int32) {
o.SyncFailureCount = &v
}
func (o ControllerStatusDTO) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ControllerStatusDTO) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ActiveThreadCount) {
toSerialize["activeThreadCount"] = o.ActiveThreadCount
}
if !IsNil(o.TerminatedThreadCount) {
toSerialize["terminatedThreadCount"] = o.TerminatedThreadCount
}
if !IsNil(o.Queued) {
toSerialize["queued"] = o.Queued
}
if !IsNil(o.FlowFilesQueued) {
toSerialize["flowFilesQueued"] = o.FlowFilesQueued
}
if !IsNil(o.BytesQueued) {
toSerialize["bytesQueued"] = o.BytesQueued
}
if !IsNil(o.RunningCount) {
toSerialize["runningCount"] = o.RunningCount
}
if !IsNil(o.StoppedCount) {
toSerialize["stoppedCount"] = o.StoppedCount
}
if !IsNil(o.InvalidCount) {
toSerialize["invalidCount"] = o.InvalidCount
}
if !IsNil(o.DisabledCount) {
toSerialize["disabledCount"] = o.DisabledCount
}
if !IsNil(o.ActiveRemotePortCount) {
toSerialize["activeRemotePortCount"] = o.ActiveRemotePortCount
}
if !IsNil(o.InactiveRemotePortCount) {
toSerialize["inactiveRemotePortCount"] = o.InactiveRemotePortCount
}
if !IsNil(o.UpToDateCount) {
toSerialize["upToDateCount"] = o.UpToDateCount
}
if !IsNil(o.LocallyModifiedCount) {
toSerialize["locallyModifiedCount"] = o.LocallyModifiedCount
}
if !IsNil(o.StaleCount) {
toSerialize["staleCount"] = o.StaleCount
}
if !IsNil(o.LocallyModifiedAndStaleCount) {
toSerialize["locallyModifiedAndStaleCount"] = o.LocallyModifiedAndStaleCount
}
if !IsNil(o.SyncFailureCount) {
toSerialize["syncFailureCount"] = o.SyncFailureCount
}
return toSerialize, nil
}
type NullableControllerStatusDTO struct {
value *ControllerStatusDTO
isSet bool
}
func (v NullableControllerStatusDTO) Get() *ControllerStatusDTO {
return v.value
}
func (v *NullableControllerStatusDTO) Set(val *ControllerStatusDTO) {
v.value = val
v.isSet = true
}
func (v NullableControllerStatusDTO) IsSet() bool {
return v.isSet
}
func (v *NullableControllerStatusDTO) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableControllerStatusDTO(val *ControllerStatusDTO) *NullableControllerStatusDTO {
return &NullableControllerStatusDTO{value: val, isSet: true}
}
func (v NullableControllerStatusDTO) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableControllerStatusDTO) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}