/
model_processor_config_dto.go
905 lines (774 loc) · 29.9 KB
/
model_processor_config_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
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
/*
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 ProcessorConfigDTO type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ProcessorConfigDTO{}
// ProcessorConfigDTO struct for ProcessorConfigDTO
type ProcessorConfigDTO struct {
// The properties for the processor. Properties whose value is not set will only contain the property name.
Properties *map[string]*string `json:"properties,omitempty"`
// Descriptors for the processor's properties.
Descriptors *map[string]PropertyDescriptorDTO `json:"descriptors,omitempty"`
// Set of sensitive dynamic property names
SensitiveDynamicPropertyNames []string `json:"sensitiveDynamicPropertyNames,omitempty"`
// The frequency with which to schedule the processor. The format of the value will depend on th value of schedulingStrategy.
SchedulingPeriod *string `json:"schedulingPeriod,omitempty"`
// Indcates whether the prcessor should be scheduled to run in event or timer driven mode.
SchedulingStrategy *string `json:"schedulingStrategy,omitempty"`
// Indicates the node where the process will execute.
ExecutionNode *string `json:"executionNode,omitempty"`
// The amount of time that is used when the process penalizes a flowfile.
PenaltyDuration *string `json:"penaltyDuration,omitempty"`
// The amount of time that must elapse before this processor is scheduled again after yielding.
YieldDuration *string `json:"yieldDuration,omitempty"`
// The level at which the processor will report bulletins.
BulletinLevel *string `json:"bulletinLevel,omitempty"`
// The run duration for the processor in milliseconds.
RunDurationMillis *int64 `json:"runDurationMillis,omitempty"`
// The number of tasks that should be concurrently schedule for the processor. If the processor doesn't allow parallol processing then any positive input will be ignored.
ConcurrentlySchedulableTaskCount *int32 `json:"concurrentlySchedulableTaskCount,omitempty"`
// The names of all relationships that cause a flow file to be terminated if the relationship is not connected elsewhere. This property differs from the 'isAutoTerminate' property of the RelationshipDTO in that the RelationshipDTO is meant to depict the current configuration, whereas this property can be set in a DTO when updating a Processor in order to change which Relationships should be auto-terminated.
AutoTerminatedRelationships []string `json:"autoTerminatedRelationships,omitempty"`
// The comments for the processor.
Comments *string `json:"comments,omitempty"`
// The URL for the processor's custom configuration UI if applicable.
CustomUiUrl *string `json:"customUiUrl,omitempty"`
// Whether the processor is loss tolerant.
LossTolerant *bool `json:"lossTolerant,omitempty"`
// The annotation data for the processor used to relay configuration between a custom UI and the procesosr.
AnnotationData *string `json:"annotationData,omitempty"`
// Maps default values for concurrent tasks for each applicable scheduling strategy.
DefaultConcurrentTasks *map[string]string `json:"defaultConcurrentTasks,omitempty"`
// Maps default values for scheduling period for each applicable scheduling strategy.
DefaultSchedulingPeriod *map[string]string `json:"defaultSchedulingPeriod,omitempty"`
// Overall number of retries.
RetryCount *int32 `json:"retryCount,omitempty"`
// All the relationships should be retried.
RetriedRelationships []string `json:"retriedRelationships,omitempty"`
// Determines whether the FlowFile should be penalized or the processor should be yielded between retries.
BackoffMechanism *string `json:"backoffMechanism,omitempty"`
// Maximum amount of time to be waited during a retry period.
MaxBackoffPeriod *string `json:"maxBackoffPeriod,omitempty"`
}
// NewProcessorConfigDTO instantiates a new ProcessorConfigDTO 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 NewProcessorConfigDTO() *ProcessorConfigDTO {
this := ProcessorConfigDTO{}
return &this
}
// NewProcessorConfigDTOWithDefaults instantiates a new ProcessorConfigDTO 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 NewProcessorConfigDTOWithDefaults() *ProcessorConfigDTO {
this := ProcessorConfigDTO{}
return &this
}
// GetProperties returns the Properties field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetProperties() map[string]*string {
if o == nil || IsNil(o.Properties) {
var ret map[string]*string
return ret
}
return *o.Properties
}
// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetPropertiesOk() (*map[string]*string, bool) {
if o == nil || IsNil(o.Properties) {
return nil, false
}
return o.Properties, true
}
// HasProperties returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasProperties() bool {
if o != nil && !IsNil(o.Properties) {
return true
}
return false
}
// SetProperties gets a reference to the given map[string]string and assigns it to the Properties field.
func (o *ProcessorConfigDTO) SetProperties(v map[string]*string) {
o.Properties = &v
}
// GetDescriptors returns the Descriptors field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetDescriptors() map[string]PropertyDescriptorDTO {
if o == nil || IsNil(o.Descriptors) {
var ret map[string]PropertyDescriptorDTO
return ret
}
return *o.Descriptors
}
// GetDescriptorsOk returns a tuple with the Descriptors field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetDescriptorsOk() (*map[string]PropertyDescriptorDTO, bool) {
if o == nil || IsNil(o.Descriptors) {
return nil, false
}
return o.Descriptors, true
}
// HasDescriptors returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasDescriptors() bool {
if o != nil && !IsNil(o.Descriptors) {
return true
}
return false
}
// SetDescriptors gets a reference to the given map[string]PropertyDescriptorDTO and assigns it to the Descriptors field.
func (o *ProcessorConfigDTO) SetDescriptors(v map[string]PropertyDescriptorDTO) {
o.Descriptors = &v
}
// GetSensitiveDynamicPropertyNames returns the SensitiveDynamicPropertyNames field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetSensitiveDynamicPropertyNames() []string {
if o == nil || IsNil(o.SensitiveDynamicPropertyNames) {
var ret []string
return ret
}
return o.SensitiveDynamicPropertyNames
}
// GetSensitiveDynamicPropertyNamesOk returns a tuple with the SensitiveDynamicPropertyNames field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetSensitiveDynamicPropertyNamesOk() ([]string, bool) {
if o == nil || IsNil(o.SensitiveDynamicPropertyNames) {
return nil, false
}
return o.SensitiveDynamicPropertyNames, true
}
// HasSensitiveDynamicPropertyNames returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasSensitiveDynamicPropertyNames() bool {
if o != nil && !IsNil(o.SensitiveDynamicPropertyNames) {
return true
}
return false
}
// SetSensitiveDynamicPropertyNames gets a reference to the given []string and assigns it to the SensitiveDynamicPropertyNames field.
func (o *ProcessorConfigDTO) SetSensitiveDynamicPropertyNames(v []string) {
o.SensitiveDynamicPropertyNames = v
}
// GetSchedulingPeriod returns the SchedulingPeriod field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetSchedulingPeriod() string {
if o == nil || IsNil(o.SchedulingPeriod) {
var ret string
return ret
}
return *o.SchedulingPeriod
}
// GetSchedulingPeriodOk returns a tuple with the SchedulingPeriod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetSchedulingPeriodOk() (*string, bool) {
if o == nil || IsNil(o.SchedulingPeriod) {
return nil, false
}
return o.SchedulingPeriod, true
}
// HasSchedulingPeriod returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasSchedulingPeriod() bool {
if o != nil && !IsNil(o.SchedulingPeriod) {
return true
}
return false
}
// SetSchedulingPeriod gets a reference to the given string and assigns it to the SchedulingPeriod field.
func (o *ProcessorConfigDTO) SetSchedulingPeriod(v string) {
o.SchedulingPeriod = &v
}
// GetSchedulingStrategy returns the SchedulingStrategy field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetSchedulingStrategy() string {
if o == nil || IsNil(o.SchedulingStrategy) {
var ret string
return ret
}
return *o.SchedulingStrategy
}
// GetSchedulingStrategyOk returns a tuple with the SchedulingStrategy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetSchedulingStrategyOk() (*string, bool) {
if o == nil || IsNil(o.SchedulingStrategy) {
return nil, false
}
return o.SchedulingStrategy, true
}
// HasSchedulingStrategy returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasSchedulingStrategy() bool {
if o != nil && !IsNil(o.SchedulingStrategy) {
return true
}
return false
}
// SetSchedulingStrategy gets a reference to the given string and assigns it to the SchedulingStrategy field.
func (o *ProcessorConfigDTO) SetSchedulingStrategy(v string) {
o.SchedulingStrategy = &v
}
// GetExecutionNode returns the ExecutionNode field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetExecutionNode() string {
if o == nil || IsNil(o.ExecutionNode) {
var ret string
return ret
}
return *o.ExecutionNode
}
// GetExecutionNodeOk returns a tuple with the ExecutionNode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetExecutionNodeOk() (*string, bool) {
if o == nil || IsNil(o.ExecutionNode) {
return nil, false
}
return o.ExecutionNode, true
}
// HasExecutionNode returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasExecutionNode() bool {
if o != nil && !IsNil(o.ExecutionNode) {
return true
}
return false
}
// SetExecutionNode gets a reference to the given string and assigns it to the ExecutionNode field.
func (o *ProcessorConfigDTO) SetExecutionNode(v string) {
o.ExecutionNode = &v
}
// GetPenaltyDuration returns the PenaltyDuration field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetPenaltyDuration() string {
if o == nil || IsNil(o.PenaltyDuration) {
var ret string
return ret
}
return *o.PenaltyDuration
}
// GetPenaltyDurationOk returns a tuple with the PenaltyDuration field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetPenaltyDurationOk() (*string, bool) {
if o == nil || IsNil(o.PenaltyDuration) {
return nil, false
}
return o.PenaltyDuration, true
}
// HasPenaltyDuration returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasPenaltyDuration() bool {
if o != nil && !IsNil(o.PenaltyDuration) {
return true
}
return false
}
// SetPenaltyDuration gets a reference to the given string and assigns it to the PenaltyDuration field.
func (o *ProcessorConfigDTO) SetPenaltyDuration(v string) {
o.PenaltyDuration = &v
}
// GetYieldDuration returns the YieldDuration field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetYieldDuration() string {
if o == nil || IsNil(o.YieldDuration) {
var ret string
return ret
}
return *o.YieldDuration
}
// GetYieldDurationOk returns a tuple with the YieldDuration field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetYieldDurationOk() (*string, bool) {
if o == nil || IsNil(o.YieldDuration) {
return nil, false
}
return o.YieldDuration, true
}
// HasYieldDuration returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasYieldDuration() bool {
if o != nil && !IsNil(o.YieldDuration) {
return true
}
return false
}
// SetYieldDuration gets a reference to the given string and assigns it to the YieldDuration field.
func (o *ProcessorConfigDTO) SetYieldDuration(v string) {
o.YieldDuration = &v
}
// GetBulletinLevel returns the BulletinLevel field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetBulletinLevel() string {
if o == nil || IsNil(o.BulletinLevel) {
var ret string
return ret
}
return *o.BulletinLevel
}
// GetBulletinLevelOk returns a tuple with the BulletinLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetBulletinLevelOk() (*string, bool) {
if o == nil || IsNil(o.BulletinLevel) {
return nil, false
}
return o.BulletinLevel, true
}
// HasBulletinLevel returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasBulletinLevel() bool {
if o != nil && !IsNil(o.BulletinLevel) {
return true
}
return false
}
// SetBulletinLevel gets a reference to the given string and assigns it to the BulletinLevel field.
func (o *ProcessorConfigDTO) SetBulletinLevel(v string) {
o.BulletinLevel = &v
}
// GetRunDurationMillis returns the RunDurationMillis field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetRunDurationMillis() int64 {
if o == nil || IsNil(o.RunDurationMillis) {
var ret int64
return ret
}
return *o.RunDurationMillis
}
// GetRunDurationMillisOk returns a tuple with the RunDurationMillis field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetRunDurationMillisOk() (*int64, bool) {
if o == nil || IsNil(o.RunDurationMillis) {
return nil, false
}
return o.RunDurationMillis, true
}
// HasRunDurationMillis returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasRunDurationMillis() bool {
if o != nil && !IsNil(o.RunDurationMillis) {
return true
}
return false
}
// SetRunDurationMillis gets a reference to the given int64 and assigns it to the RunDurationMillis field.
func (o *ProcessorConfigDTO) SetRunDurationMillis(v int64) {
o.RunDurationMillis = &v
}
// GetConcurrentlySchedulableTaskCount returns the ConcurrentlySchedulableTaskCount field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetConcurrentlySchedulableTaskCount() int32 {
if o == nil || IsNil(o.ConcurrentlySchedulableTaskCount) {
var ret int32
return ret
}
return *o.ConcurrentlySchedulableTaskCount
}
// GetConcurrentlySchedulableTaskCountOk returns a tuple with the ConcurrentlySchedulableTaskCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetConcurrentlySchedulableTaskCountOk() (*int32, bool) {
if o == nil || IsNil(o.ConcurrentlySchedulableTaskCount) {
return nil, false
}
return o.ConcurrentlySchedulableTaskCount, true
}
// HasConcurrentlySchedulableTaskCount returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasConcurrentlySchedulableTaskCount() bool {
if o != nil && !IsNil(o.ConcurrentlySchedulableTaskCount) {
return true
}
return false
}
// SetConcurrentlySchedulableTaskCount gets a reference to the given int32 and assigns it to the ConcurrentlySchedulableTaskCount field.
func (o *ProcessorConfigDTO) SetConcurrentlySchedulableTaskCount(v int32) {
o.ConcurrentlySchedulableTaskCount = &v
}
// GetAutoTerminatedRelationships returns the AutoTerminatedRelationships field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetAutoTerminatedRelationships() []string {
if o == nil || IsNil(o.AutoTerminatedRelationships) {
var ret []string
return ret
}
return o.AutoTerminatedRelationships
}
// GetAutoTerminatedRelationshipsOk returns a tuple with the AutoTerminatedRelationships field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetAutoTerminatedRelationshipsOk() ([]string, bool) {
if o == nil || IsNil(o.AutoTerminatedRelationships) {
return nil, false
}
return o.AutoTerminatedRelationships, true
}
// HasAutoTerminatedRelationships returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasAutoTerminatedRelationships() bool {
if o != nil && !IsNil(o.AutoTerminatedRelationships) {
return true
}
return false
}
// SetAutoTerminatedRelationships gets a reference to the given []string and assigns it to the AutoTerminatedRelationships field.
func (o *ProcessorConfigDTO) SetAutoTerminatedRelationships(v []string) {
o.AutoTerminatedRelationships = v
}
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
}
return *o.Comments
}
// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
return o.Comments, true
}
// HasComments returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
return false
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
func (o *ProcessorConfigDTO) SetComments(v string) {
o.Comments = &v
}
// GetCustomUiUrl returns the CustomUiUrl field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetCustomUiUrl() string {
if o == nil || IsNil(o.CustomUiUrl) {
var ret string
return ret
}
return *o.CustomUiUrl
}
// GetCustomUiUrlOk returns a tuple with the CustomUiUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetCustomUiUrlOk() (*string, bool) {
if o == nil || IsNil(o.CustomUiUrl) {
return nil, false
}
return o.CustomUiUrl, true
}
// HasCustomUiUrl returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasCustomUiUrl() bool {
if o != nil && !IsNil(o.CustomUiUrl) {
return true
}
return false
}
// SetCustomUiUrl gets a reference to the given string and assigns it to the CustomUiUrl field.
func (o *ProcessorConfigDTO) SetCustomUiUrl(v string) {
o.CustomUiUrl = &v
}
// GetLossTolerant returns the LossTolerant field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetLossTolerant() bool {
if o == nil || IsNil(o.LossTolerant) {
var ret bool
return ret
}
return *o.LossTolerant
}
// GetLossTolerantOk returns a tuple with the LossTolerant field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetLossTolerantOk() (*bool, bool) {
if o == nil || IsNil(o.LossTolerant) {
return nil, false
}
return o.LossTolerant, true
}
// HasLossTolerant returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasLossTolerant() bool {
if o != nil && !IsNil(o.LossTolerant) {
return true
}
return false
}
// SetLossTolerant gets a reference to the given bool and assigns it to the LossTolerant field.
func (o *ProcessorConfigDTO) SetLossTolerant(v bool) {
o.LossTolerant = &v
}
// GetAnnotationData returns the AnnotationData field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetAnnotationData() string {
if o == nil || IsNil(o.AnnotationData) {
var ret string
return ret
}
return *o.AnnotationData
}
// GetAnnotationDataOk returns a tuple with the AnnotationData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetAnnotationDataOk() (*string, bool) {
if o == nil || IsNil(o.AnnotationData) {
return nil, false
}
return o.AnnotationData, true
}
// HasAnnotationData returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasAnnotationData() bool {
if o != nil && !IsNil(o.AnnotationData) {
return true
}
return false
}
// SetAnnotationData gets a reference to the given string and assigns it to the AnnotationData field.
func (o *ProcessorConfigDTO) SetAnnotationData(v string) {
o.AnnotationData = &v
}
// GetDefaultConcurrentTasks returns the DefaultConcurrentTasks field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetDefaultConcurrentTasks() map[string]string {
if o == nil || IsNil(o.DefaultConcurrentTasks) {
var ret map[string]string
return ret
}
return *o.DefaultConcurrentTasks
}
// GetDefaultConcurrentTasksOk returns a tuple with the DefaultConcurrentTasks field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetDefaultConcurrentTasksOk() (*map[string]string, bool) {
if o == nil || IsNil(o.DefaultConcurrentTasks) {
return nil, false
}
return o.DefaultConcurrentTasks, true
}
// HasDefaultConcurrentTasks returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasDefaultConcurrentTasks() bool {
if o != nil && !IsNil(o.DefaultConcurrentTasks) {
return true
}
return false
}
// SetDefaultConcurrentTasks gets a reference to the given map[string]string and assigns it to the DefaultConcurrentTasks field.
func (o *ProcessorConfigDTO) SetDefaultConcurrentTasks(v map[string]string) {
o.DefaultConcurrentTasks = &v
}
// GetDefaultSchedulingPeriod returns the DefaultSchedulingPeriod field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetDefaultSchedulingPeriod() map[string]string {
if o == nil || IsNil(o.DefaultSchedulingPeriod) {
var ret map[string]string
return ret
}
return *o.DefaultSchedulingPeriod
}
// GetDefaultSchedulingPeriodOk returns a tuple with the DefaultSchedulingPeriod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetDefaultSchedulingPeriodOk() (*map[string]string, bool) {
if o == nil || IsNil(o.DefaultSchedulingPeriod) {
return nil, false
}
return o.DefaultSchedulingPeriod, true
}
// HasDefaultSchedulingPeriod returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasDefaultSchedulingPeriod() bool {
if o != nil && !IsNil(o.DefaultSchedulingPeriod) {
return true
}
return false
}
// SetDefaultSchedulingPeriod gets a reference to the given map[string]string and assigns it to the DefaultSchedulingPeriod field.
func (o *ProcessorConfigDTO) SetDefaultSchedulingPeriod(v map[string]string) {
o.DefaultSchedulingPeriod = &v
}
// GetRetryCount returns the RetryCount field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetRetryCount() int32 {
if o == nil || IsNil(o.RetryCount) {
var ret int32
return ret
}
return *o.RetryCount
}
// GetRetryCountOk returns a tuple with the RetryCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetRetryCountOk() (*int32, bool) {
if o == nil || IsNil(o.RetryCount) {
return nil, false
}
return o.RetryCount, true
}
// HasRetryCount returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasRetryCount() bool {
if o != nil && !IsNil(o.RetryCount) {
return true
}
return false
}
// SetRetryCount gets a reference to the given int32 and assigns it to the RetryCount field.
func (o *ProcessorConfigDTO) SetRetryCount(v int32) {
o.RetryCount = &v
}
// GetRetriedRelationships returns the RetriedRelationships field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetRetriedRelationships() []string {
if o == nil || IsNil(o.RetriedRelationships) {
var ret []string
return ret
}
return o.RetriedRelationships
}
// GetRetriedRelationshipsOk returns a tuple with the RetriedRelationships field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetRetriedRelationshipsOk() ([]string, bool) {
if o == nil || IsNil(o.RetriedRelationships) {
return nil, false
}
return o.RetriedRelationships, true
}
// HasRetriedRelationships returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasRetriedRelationships() bool {
if o != nil && !IsNil(o.RetriedRelationships) {
return true
}
return false
}
// SetRetriedRelationships gets a reference to the given []string and assigns it to the RetriedRelationships field.
func (o *ProcessorConfigDTO) SetRetriedRelationships(v []string) {
o.RetriedRelationships = v
}
// GetBackoffMechanism returns the BackoffMechanism field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetBackoffMechanism() string {
if o == nil || IsNil(o.BackoffMechanism) {
var ret string
return ret
}
return *o.BackoffMechanism
}
// GetBackoffMechanismOk returns a tuple with the BackoffMechanism field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetBackoffMechanismOk() (*string, bool) {
if o == nil || IsNil(o.BackoffMechanism) {
return nil, false
}
return o.BackoffMechanism, true
}
// HasBackoffMechanism returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasBackoffMechanism() bool {
if o != nil && !IsNil(o.BackoffMechanism) {
return true
}
return false
}
// SetBackoffMechanism gets a reference to the given string and assigns it to the BackoffMechanism field.
func (o *ProcessorConfigDTO) SetBackoffMechanism(v string) {
o.BackoffMechanism = &v
}
// GetMaxBackoffPeriod returns the MaxBackoffPeriod field value if set, zero value otherwise.
func (o *ProcessorConfigDTO) GetMaxBackoffPeriod() string {
if o == nil || IsNil(o.MaxBackoffPeriod) {
var ret string
return ret
}
return *o.MaxBackoffPeriod
}
// GetMaxBackoffPeriodOk returns a tuple with the MaxBackoffPeriod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProcessorConfigDTO) GetMaxBackoffPeriodOk() (*string, bool) {
if o == nil || IsNil(o.MaxBackoffPeriod) {
return nil, false
}
return o.MaxBackoffPeriod, true
}
// HasMaxBackoffPeriod returns a boolean if a field has been set.
func (o *ProcessorConfigDTO) HasMaxBackoffPeriod() bool {
if o != nil && !IsNil(o.MaxBackoffPeriod) {
return true
}
return false
}
// SetMaxBackoffPeriod gets a reference to the given string and assigns it to the MaxBackoffPeriod field.
func (o *ProcessorConfigDTO) SetMaxBackoffPeriod(v string) {
o.MaxBackoffPeriod = &v
}
func (o ProcessorConfigDTO) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ProcessorConfigDTO) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Properties) {
toSerialize["properties"] = o.Properties
}
if !IsNil(o.Descriptors) {
toSerialize["descriptors"] = o.Descriptors
}
if !IsNil(o.SensitiveDynamicPropertyNames) {
toSerialize["sensitiveDynamicPropertyNames"] = o.SensitiveDynamicPropertyNames
}
if !IsNil(o.SchedulingPeriod) {
toSerialize["schedulingPeriod"] = o.SchedulingPeriod
}
if !IsNil(o.SchedulingStrategy) {
toSerialize["schedulingStrategy"] = o.SchedulingStrategy
}
if !IsNil(o.ExecutionNode) {
toSerialize["executionNode"] = o.ExecutionNode
}
if !IsNil(o.PenaltyDuration) {
toSerialize["penaltyDuration"] = o.PenaltyDuration
}
if !IsNil(o.YieldDuration) {
toSerialize["yieldDuration"] = o.YieldDuration
}
if !IsNil(o.BulletinLevel) {
toSerialize["bulletinLevel"] = o.BulletinLevel
}
if !IsNil(o.RunDurationMillis) {
toSerialize["runDurationMillis"] = o.RunDurationMillis
}
if !IsNil(o.ConcurrentlySchedulableTaskCount) {
toSerialize["concurrentlySchedulableTaskCount"] = o.ConcurrentlySchedulableTaskCount
}
if !IsNil(o.AutoTerminatedRelationships) {
toSerialize["autoTerminatedRelationships"] = o.AutoTerminatedRelationships
}
if !IsNil(o.Comments) {
toSerialize["comments"] = o.Comments
}
if !IsNil(o.CustomUiUrl) {
toSerialize["customUiUrl"] = o.CustomUiUrl
}
if !IsNil(o.LossTolerant) {
toSerialize["lossTolerant"] = o.LossTolerant
}
if !IsNil(o.AnnotationData) {
toSerialize["annotationData"] = o.AnnotationData
}
if !IsNil(o.DefaultConcurrentTasks) {
toSerialize["defaultConcurrentTasks"] = o.DefaultConcurrentTasks
}
if !IsNil(o.DefaultSchedulingPeriod) {
toSerialize["defaultSchedulingPeriod"] = o.DefaultSchedulingPeriod
}
if !IsNil(o.RetryCount) {
toSerialize["retryCount"] = o.RetryCount
}
if !IsNil(o.RetriedRelationships) {
toSerialize["retriedRelationships"] = o.RetriedRelationships
}
if !IsNil(o.BackoffMechanism) {
toSerialize["backoffMechanism"] = o.BackoffMechanism
}
if !IsNil(o.MaxBackoffPeriod) {
toSerialize["maxBackoffPeriod"] = o.MaxBackoffPeriod
}
return toSerialize, nil
}
type NullableProcessorConfigDTO struct {
value *ProcessorConfigDTO
isSet bool
}
func (v NullableProcessorConfigDTO) Get() *ProcessorConfigDTO {
return v.value
}
func (v *NullableProcessorConfigDTO) Set(val *ProcessorConfigDTO) {
v.value = val
v.isSet = true
}
func (v NullableProcessorConfigDTO) IsSet() bool {
return v.isSet
}
func (v *NullableProcessorConfigDTO) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableProcessorConfigDTO(val *ProcessorConfigDTO) *NullableProcessorConfigDTO {
return &NullableProcessorConfigDTO{value: val, isSet: true}
}
func (v NullableProcessorConfigDTO) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableProcessorConfigDTO) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}