GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( 383fd3...bda9dc )
by
unknown
08:00
created

CreateJob::withContactInfo()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 9
rs 10
cc 2
nc 2
nop 1
1
<?php
2
3
namespace AlibabaCloud\Schedulerx2\V20190430;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateAppGroup createAppGroup(array $options = [])
9
 * @method CreateJob createJob(array $options = [])
10
 * @method DeleteJob deleteJob(array $options = [])
11
 * @method DeleteWorkflow deleteWorkflow(array $options = [])
12
 * @method DisableJob disableJob(array $options = [])
13
 * @method DisableWorkflow disableWorkflow(array $options = [])
14
 * @method EnableJob enableJob(array $options = [])
15
 * @method EnableWorkflow enableWorkflow(array $options = [])
16
 * @method ExecuteJob executeJob(array $options = [])
17
 * @method ExecuteWorkflow executeWorkflow(array $options = [])
18
 * @method GetJobInfo getJobInfo(array $options = [])
19
 * @method GetJobInstance getJobInstance(array $options = [])
20
 * @method GetJobInstanceList getJobInstanceList(array $options = [])
21
 * @method StopInstance stopInstance(array $options = [])
22
 * @method UpdateJob updateJob(array $options = [])
23
 */
24
class Schedulerx2ApiResolver extends ApiResolver
25
{
26
}
27
28
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
29
{
30
    /** @var string */
31
    public $product = 'schedulerx2';
32
33
    /** @var string */
34
    public $version = '2019-04-30';
35
36
    /** @var string */
37
    protected $scheme = 'https';
38
39
    /** @var string */
40
    public $serviceCode = 'schedulerx2';
41
}
42
43
/**
44
 * @method string getMaxJobs()
45
 * @method $this withMaxJobs($value)
46
 * @method string getNamespaceName()
47
 * @method $this withNamespaceName($value)
48
 * @method string getNamespaceSource()
49
 * @method $this withNamespaceSource($value)
50
 * @method string getMetricsThresholdJson()
51
 * @method $this withMetricsThresholdJson($value)
52
 * @method string getGroupId()
53
 * @method $this withGroupId($value)
54
 * @method string getDescription()
55
 * @method $this withDescription($value)
56
 * @method string getAppName()
57
 * @method $this withAppName($value)
58
 * @method string getNamespace()
59
 * @method $this withNamespace($value)
60
 * @method string getAlarmJson()
61
 * @method $this withAlarmJson($value)
62
 */
63
class CreateAppGroup extends Rpc
64
{
65
}
66
67
/**
68
 * @method string getNamespaceSource()
69
 * @method string getDescription()
70
 * @method string getAttemptInterval()
71
 * @method string getContent()
72
 * @method string getTimeout()
73
 * @method string getTimeoutKillEnable()
74
 * @method string getPageSize()
75
 * @method string getConsumerSize()
76
 * @method string getJarUrl()
77
 * @method string getCalendar()
78
 * @method string getFailEnable()
79
 * @method string getSendChannel()
80
 * @method string getDataOffset()
81
 * @method string getGroupId()
82
 * @method string getTaskMaxAttempt()
83
 * @method string getMaxAttempt()
84
 * @method string getDispatcherSize()
85
 * @method string getJobType()
86
 * @method string getTaskAttemptInterval()
87
 * @method string getExecuteMode()
88
 * @method string getQueueSize()
89
 * @method string getTimeExpression()
90
 * @method string getClassName()
91
 * @method string getTimeoutEnable()
92
 * @method array getContactInfo()
93
 * @method string getName()
94
 * @method string getNamespace()
95
 * @method string getMaxConcurrency()
96
 * @method string getTimeType()
97
 * @method string getParameters()
98
 */
99
class CreateJob extends Rpc
100
{
101
102
    /** @var string */
103
    public $method = 'POST';
104
105
    /**
106
     * @param string $value
107
     *
108
     * @return $this
109
     */
110
    public function withNamespaceSource($value)
111
    {
112
        $this->data['NamespaceSource'] = $value;
113
        $this->options['form_params']['NamespaceSource'] = $value;
114
115
        return $this;
116
    }
117
118
    /**
119
     * @param string $value
120
     *
121
     * @return $this
122
     */
123
    public function withDescription($value)
124
    {
125
        $this->data['Description'] = $value;
126
        $this->options['form_params']['Description'] = $value;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @param string $value
133
     *
134
     * @return $this
135
     */
136
    public function withAttemptInterval($value)
137
    {
138
        $this->data['AttemptInterval'] = $value;
139
        $this->options['form_params']['AttemptInterval'] = $value;
140
141
        return $this;
142
    }
143
144
    /**
145
     * @param string $value
146
     *
147
     * @return $this
148
     */
149
    public function withContent($value)
150
    {
151
        $this->data['Content'] = $value;
152
        $this->options['form_params']['Content'] = $value;
153
154
        return $this;
155
    }
156
157
    /**
158
     * @param string $value
159
     *
160
     * @return $this
161
     */
162
    public function withTimeout($value)
163
    {
164
        $this->data['Timeout'] = $value;
165
        $this->options['form_params']['Timeout'] = $value;
166
167
        return $this;
168
    }
169
170
    /**
171
     * @param string $value
172
     *
173
     * @return $this
174
     */
175
    public function withTimeoutKillEnable($value)
176
    {
177
        $this->data['TimeoutKillEnable'] = $value;
178
        $this->options['form_params']['TimeoutKillEnable'] = $value;
179
180
        return $this;
181
    }
182
183
    /**
184
     * @param string $value
185
     *
186
     * @return $this
187
     */
188
    public function withPageSize($value)
189
    {
190
        $this->data['PageSize'] = $value;
191
        $this->options['form_params']['PageSize'] = $value;
192
193
        return $this;
194
    }
195
196
    /**
197
     * @param string $value
198
     *
199
     * @return $this
200
     */
201
    public function withConsumerSize($value)
202
    {
203
        $this->data['ConsumerSize'] = $value;
204
        $this->options['form_params']['ConsumerSize'] = $value;
205
206
        return $this;
207
    }
208
209
    /**
210
     * @param string $value
211
     *
212
     * @return $this
213
     */
214
    public function withJarUrl($value)
215
    {
216
        $this->data['JarUrl'] = $value;
217
        $this->options['form_params']['JarUrl'] = $value;
218
219
        return $this;
220
    }
221
222
    /**
223
     * @param string $value
224
     *
225
     * @return $this
226
     */
227
    public function withCalendar($value)
228
    {
229
        $this->data['Calendar'] = $value;
230
        $this->options['form_params']['Calendar'] = $value;
231
232
        return $this;
233
    }
234
235
    /**
236
     * @param string $value
237
     *
238
     * @return $this
239
     */
240
    public function withFailEnable($value)
241
    {
242
        $this->data['FailEnable'] = $value;
243
        $this->options['form_params']['FailEnable'] = $value;
244
245
        return $this;
246
    }
247
248
    /**
249
     * @param string $value
250
     *
251
     * @return $this
252
     */
253
    public function withSendChannel($value)
254
    {
255
        $this->data['SendChannel'] = $value;
256
        $this->options['form_params']['SendChannel'] = $value;
257
258
        return $this;
259
    }
260
261
    /**
262
     * @param string $value
263
     *
264
     * @return $this
265
     */
266
    public function withDataOffset($value)
267
    {
268
        $this->data['DataOffset'] = $value;
269
        $this->options['form_params']['DataOffset'] = $value;
270
271
        return $this;
272
    }
273
274
    /**
275
     * @param string $value
276
     *
277
     * @return $this
278
     */
279
    public function withGroupId($value)
280
    {
281
        $this->data['GroupId'] = $value;
282
        $this->options['form_params']['GroupId'] = $value;
283
284
        return $this;
285
    }
286
287
    /**
288
     * @param string $value
289
     *
290
     * @return $this
291
     */
292
    public function withTaskMaxAttempt($value)
293
    {
294
        $this->data['TaskMaxAttempt'] = $value;
295
        $this->options['form_params']['TaskMaxAttempt'] = $value;
296
297
        return $this;
298
    }
299
300
    /**
301
     * @param string $value
302
     *
303
     * @return $this
304
     */
305
    public function withMaxAttempt($value)
306
    {
307
        $this->data['MaxAttempt'] = $value;
308
        $this->options['form_params']['MaxAttempt'] = $value;
309
310
        return $this;
311
    }
312
313
    /**
314
     * @param string $value
315
     *
316
     * @return $this
317
     */
318
    public function withDispatcherSize($value)
319
    {
320
        $this->data['DispatcherSize'] = $value;
321
        $this->options['form_params']['DispatcherSize'] = $value;
322
323
        return $this;
324
    }
325
326
    /**
327
     * @param string $value
328
     *
329
     * @return $this
330
     */
331
    public function withJobType($value)
332
    {
333
        $this->data['JobType'] = $value;
334
        $this->options['form_params']['JobType'] = $value;
335
336
        return $this;
337
    }
338
339
    /**
340
     * @param string $value
341
     *
342
     * @return $this
343
     */
344
    public function withTaskAttemptInterval($value)
345
    {
346
        $this->data['TaskAttemptInterval'] = $value;
347
        $this->options['form_params']['TaskAttemptInterval'] = $value;
348
349
        return $this;
350
    }
351
352
    /**
353
     * @param string $value
354
     *
355
     * @return $this
356
     */
357
    public function withExecuteMode($value)
358
    {
359
        $this->data['ExecuteMode'] = $value;
360
        $this->options['form_params']['ExecuteMode'] = $value;
361
362
        return $this;
363
    }
364
365
    /**
366
     * @param string $value
367
     *
368
     * @return $this
369
     */
370
    public function withQueueSize($value)
371
    {
372
        $this->data['QueueSize'] = $value;
373
        $this->options['form_params']['QueueSize'] = $value;
374
375
        return $this;
376
    }
377
378
    /**
379
     * @param string $value
380
     *
381
     * @return $this
382
     */
383
    public function withTimeExpression($value)
384
    {
385
        $this->data['TimeExpression'] = $value;
386
        $this->options['form_params']['TimeExpression'] = $value;
387
388
        return $this;
389
    }
390
391
    /**
392
     * @param string $value
393
     *
394
     * @return $this
395
     */
396
    public function withClassName($value)
397
    {
398
        $this->data['ClassName'] = $value;
399
        $this->options['form_params']['ClassName'] = $value;
400
401
        return $this;
402
    }
403
404
    /**
405
     * @param string $value
406
     *
407
     * @return $this
408
     */
409
    public function withTimeoutEnable($value)
410
    {
411
        $this->data['TimeoutEnable'] = $value;
412
        $this->options['form_params']['TimeoutEnable'] = $value;
413
414
        return $this;
415
    }
416
417
    /**
418
     * @param array $contactInfo
419
     *
420
     * @return $this
421
     */
422
	public function withContactInfo(array $contactInfo)
423
	{
424
	    $this->data['ContactInfo'] = $contactInfo;
425
		foreach ($contactInfo as $depth1 => $depth1Value) {
426
			$this->options['form_params']['ContactInfo.' . ($depth1 + 1) . '.UserPhone'] = $depth1Value['UserPhone'];
427
			$this->options['form_params']['ContactInfo.' . ($depth1 + 1) . '.UserName'] = $depth1Value['UserName'];
428
		}
429
430
		return $this;
431
    }
432
433
    /**
434
     * @param string $value
435
     *
436
     * @return $this
437
     */
438
    public function withName($value)
439
    {
440
        $this->data['Name'] = $value;
441
        $this->options['form_params']['Name'] = $value;
442
443
        return $this;
444
    }
445
446
    /**
447
     * @param string $value
448
     *
449
     * @return $this
450
     */
451
    public function withNamespace($value)
452
    {
453
        $this->data['Namespace'] = $value;
454
        $this->options['form_params']['Namespace'] = $value;
455
456
        return $this;
457
    }
458
459
    /**
460
     * @param string $value
461
     *
462
     * @return $this
463
     */
464
    public function withMaxConcurrency($value)
465
    {
466
        $this->data['MaxConcurrency'] = $value;
467
        $this->options['form_params']['MaxConcurrency'] = $value;
468
469
        return $this;
470
    }
471
472
    /**
473
     * @param string $value
474
     *
475
     * @return $this
476
     */
477
    public function withTimeType($value)
478
    {
479
        $this->data['TimeType'] = $value;
480
        $this->options['form_params']['TimeType'] = $value;
481
482
        return $this;
483
    }
484
485
    /**
486
     * @param string $value
487
     *
488
     * @return $this
489
     */
490
    public function withParameters($value)
491
    {
492
        $this->data['Parameters'] = $value;
493
        $this->options['form_params']['Parameters'] = $value;
494
495
        return $this;
496
    }
497
}
498
499
/**
500
 * @method string getNamespaceSource()
501
 * @method $this withNamespaceSource($value)
502
 * @method string getGroupId()
503
 * @method $this withGroupId($value)
504
 * @method string getJobId()
505
 * @method $this withJobId($value)
506
 * @method string getNamespace()
507
 * @method $this withNamespace($value)
508
 */
509
class DeleteJob extends Rpc
510
{
511
}
512
513
/**
514
 * @method string getNamespaceSource()
515
 * @method $this withNamespaceSource($value)
516
 * @method string getGroupId()
517
 * @method $this withGroupId($value)
518
 * @method string getNamespace()
519
 * @method $this withNamespace($value)
520
 * @method string getWorkflowId()
521
 * @method $this withWorkflowId($value)
522
 */
523
class DeleteWorkflow extends Rpc
524
{
525
}
526
527
/**
528
 * @method string getJobId()
529
 * @method $this withJobId($value)
530
 * @method string getNamespaceSource()
531
 * @method $this withNamespaceSource($value)
532
 * @method string getGroupId()
533
 * @method $this withGroupId($value)
534
 * @method string getNamespace()
535
 * @method $this withNamespace($value)
536
 */
537
class DisableJob extends Rpc
538
{
539
}
540
541
/**
542
 * @method string getNamespaceSource()
543
 * @method $this withNamespaceSource($value)
544
 * @method string getGroupId()
545
 * @method $this withGroupId($value)
546
 * @method string getNamespace()
547
 * @method $this withNamespace($value)
548
 * @method string getWorkflowId()
549
 * @method $this withWorkflowId($value)
550
 */
551
class DisableWorkflow extends Rpc
552
{
553
}
554
555
/**
556
 * @method string getJobId()
557
 * @method $this withJobId($value)
558
 * @method string getNamespaceSource()
559
 * @method $this withNamespaceSource($value)
560
 * @method string getGroupId()
561
 * @method $this withGroupId($value)
562
 * @method string getNamespace()
563
 * @method $this withNamespace($value)
564
 */
565
class EnableJob extends Rpc
566
{
567
}
568
569
/**
570
 * @method string getNamespaceSource()
571
 * @method $this withNamespaceSource($value)
572
 * @method string getGroupId()
573
 * @method $this withGroupId($value)
574
 * @method string getNamespace()
575
 * @method $this withNamespace($value)
576
 * @method string getWorkflowId()
577
 * @method $this withWorkflowId($value)
578
 */
579
class EnableWorkflow extends Rpc
580
{
581
}
582
583
/**
584
 * @method string getJobId()
585
 * @method $this withJobId($value)
586
 * @method string getNamespaceSource()
587
 * @method $this withNamespaceSource($value)
588
 * @method string getGroupId()
589
 * @method $this withGroupId($value)
590
 * @method string getNamespace()
591
 * @method $this withNamespace($value)
592
 * @method string getInstanceParameters()
593
 * @method $this withInstanceParameters($value)
594
 */
595
class ExecuteJob extends Rpc
596
{
597
}
598
599
/**
600
 * @method string getNamespaceSource()
601
 * @method $this withNamespaceSource($value)
602
 * @method string getGroupId()
603
 * @method $this withGroupId($value)
604
 * @method string getNamespace()
605
 * @method $this withNamespace($value)
606
 * @method string getWorkflowId()
607
 * @method $this withWorkflowId($value)
608
 * @method string getInstanceParameters()
609
 * @method $this withInstanceParameters($value)
610
 */
611
class ExecuteWorkflow extends Rpc
612
{
613
}
614
615
/**
616
 * @method string getJobId()
617
 * @method $this withJobId($value)
618
 * @method string getNamespaceSource()
619
 * @method $this withNamespaceSource($value)
620
 * @method string getGroupId()
621
 * @method $this withGroupId($value)
622
 * @method string getNamespace()
623
 * @method $this withNamespace($value)
624
 */
625
class GetJobInfo extends Rpc
626
{
627
}
628
629
/**
630
 * @method string getJobId()
631
 * @method $this withJobId($value)
632
 * @method string getNamespaceSource()
633
 * @method $this withNamespaceSource($value)
634
 * @method string getGroupId()
635
 * @method $this withGroupId($value)
636
 * @method string getNamespace()
637
 * @method $this withNamespace($value)
638
 * @method string getJobInstanceId()
639
 * @method $this withJobInstanceId($value)
640
 */
641
class GetJobInstance extends Rpc
642
{
643
}
644
645
/**
646
 * @method string getJobId()
647
 * @method $this withJobId($value)
648
 * @method string getNamespaceSource()
649
 * @method $this withNamespaceSource($value)
650
 * @method string getGroupId()
651
 * @method $this withGroupId($value)
652
 * @method string getNamespace()
653
 * @method $this withNamespace($value)
654
 */
655
class GetJobInstanceList extends Rpc
656
{
657
}
658
659
/**
660
 * @method string getJobId()
661
 * @method $this withJobId($value)
662
 * @method string getNamespaceSource()
663
 * @method $this withNamespaceSource($value)
664
 * @method string getInstanceId()
665
 * @method $this withInstanceId($value)
666
 * @method string getGroupId()
667
 * @method $this withGroupId($value)
668
 * @method string getNamespace()
669
 * @method $this withNamespace($value)
670
 */
671
class StopInstance extends Rpc
672
{
673
}
674
675
/**
676
 * @method string getNamespaceSource()
677
 * @method string getDescription()
678
 * @method string getAttemptInterval()
679
 * @method string getContent()
680
 * @method string getTimeout()
681
 * @method string getTimeoutKillEnable()
682
 * @method string getJobId()
683
 * @method string getPageSize()
684
 * @method string getConsumerSize()
685
 * @method string getJarUrl()
686
 * @method string getCalendar()
687
 * @method string getFailEnable()
688
 * @method string getSendChannel()
689
 * @method string getDataOffset()
690
 * @method string getGroupId()
691
 * @method string getTaskMaxAttempt()
692
 * @method string getMaxAttempt()
693
 * @method string getDispatcherSize()
694
 * @method string getTaskAttemptInterval()
695
 * @method string getExecuteMode()
696
 * @method string getQueueSize()
697
 * @method string getTimeExpression()
698
 * @method string getClassName()
699
 * @method string getTimeoutEnable()
700
 * @method array getContactInfo()
701
 * @method string getName()
702
 * @method string getNamespace()
703
 * @method string getMaxConcurrency()
704
 * @method string getTimeType()
705
 * @method string getParameters()
706
 */
707
class UpdateJob extends Rpc
708
{
709
710
    /** @var string */
711
    public $method = 'POST';
712
713
    /**
714
     * @param string $value
715
     *
716
     * @return $this
717
     */
718
    public function withNamespaceSource($value)
719
    {
720
        $this->data['NamespaceSource'] = $value;
721
        $this->options['form_params']['NamespaceSource'] = $value;
722
723
        return $this;
724
    }
725
726
    /**
727
     * @param string $value
728
     *
729
     * @return $this
730
     */
731
    public function withDescription($value)
732
    {
733
        $this->data['Description'] = $value;
734
        $this->options['form_params']['Description'] = $value;
735
736
        return $this;
737
    }
738
739
    /**
740
     * @param string $value
741
     *
742
     * @return $this
743
     */
744
    public function withAttemptInterval($value)
745
    {
746
        $this->data['AttemptInterval'] = $value;
747
        $this->options['form_params']['AttemptInterval'] = $value;
748
749
        return $this;
750
    }
751
752
    /**
753
     * @param string $value
754
     *
755
     * @return $this
756
     */
757
    public function withContent($value)
758
    {
759
        $this->data['Content'] = $value;
760
        $this->options['form_params']['Content'] = $value;
761
762
        return $this;
763
    }
764
765
    /**
766
     * @param string $value
767
     *
768
     * @return $this
769
     */
770
    public function withTimeout($value)
771
    {
772
        $this->data['Timeout'] = $value;
773
        $this->options['form_params']['Timeout'] = $value;
774
775
        return $this;
776
    }
777
778
    /**
779
     * @param string $value
780
     *
781
     * @return $this
782
     */
783
    public function withTimeoutKillEnable($value)
784
    {
785
        $this->data['TimeoutKillEnable'] = $value;
786
        $this->options['form_params']['TimeoutKillEnable'] = $value;
787
788
        return $this;
789
    }
790
791
    /**
792
     * @param string $value
793
     *
794
     * @return $this
795
     */
796
    public function withJobId($value)
797
    {
798
        $this->data['JobId'] = $value;
799
        $this->options['form_params']['JobId'] = $value;
800
801
        return $this;
802
    }
803
804
    /**
805
     * @param string $value
806
     *
807
     * @return $this
808
     */
809
    public function withPageSize($value)
810
    {
811
        $this->data['PageSize'] = $value;
812
        $this->options['form_params']['PageSize'] = $value;
813
814
        return $this;
815
    }
816
817
    /**
818
     * @param string $value
819
     *
820
     * @return $this
821
     */
822
    public function withConsumerSize($value)
823
    {
824
        $this->data['ConsumerSize'] = $value;
825
        $this->options['form_params']['ConsumerSize'] = $value;
826
827
        return $this;
828
    }
829
830
    /**
831
     * @param string $value
832
     *
833
     * @return $this
834
     */
835
    public function withJarUrl($value)
836
    {
837
        $this->data['JarUrl'] = $value;
838
        $this->options['form_params']['JarUrl'] = $value;
839
840
        return $this;
841
    }
842
843
    /**
844
     * @param string $value
845
     *
846
     * @return $this
847
     */
848
    public function withCalendar($value)
849
    {
850
        $this->data['Calendar'] = $value;
851
        $this->options['form_params']['Calendar'] = $value;
852
853
        return $this;
854
    }
855
856
    /**
857
     * @param string $value
858
     *
859
     * @return $this
860
     */
861
    public function withFailEnable($value)
862
    {
863
        $this->data['FailEnable'] = $value;
864
        $this->options['form_params']['FailEnable'] = $value;
865
866
        return $this;
867
    }
868
869
    /**
870
     * @param string $value
871
     *
872
     * @return $this
873
     */
874
    public function withSendChannel($value)
875
    {
876
        $this->data['SendChannel'] = $value;
877
        $this->options['form_params']['SendChannel'] = $value;
878
879
        return $this;
880
    }
881
882
    /**
883
     * @param string $value
884
     *
885
     * @return $this
886
     */
887
    public function withDataOffset($value)
888
    {
889
        $this->data['DataOffset'] = $value;
890
        $this->options['form_params']['DataOffset'] = $value;
891
892
        return $this;
893
    }
894
895
    /**
896
     * @param string $value
897
     *
898
     * @return $this
899
     */
900
    public function withGroupId($value)
901
    {
902
        $this->data['GroupId'] = $value;
903
        $this->options['form_params']['GroupId'] = $value;
904
905
        return $this;
906
    }
907
908
    /**
909
     * @param string $value
910
     *
911
     * @return $this
912
     */
913
    public function withTaskMaxAttempt($value)
914
    {
915
        $this->data['TaskMaxAttempt'] = $value;
916
        $this->options['form_params']['TaskMaxAttempt'] = $value;
917
918
        return $this;
919
    }
920
921
    /**
922
     * @param string $value
923
     *
924
     * @return $this
925
     */
926
    public function withMaxAttempt($value)
927
    {
928
        $this->data['MaxAttempt'] = $value;
929
        $this->options['form_params']['MaxAttempt'] = $value;
930
931
        return $this;
932
    }
933
934
    /**
935
     * @param string $value
936
     *
937
     * @return $this
938
     */
939
    public function withDispatcherSize($value)
940
    {
941
        $this->data['DispatcherSize'] = $value;
942
        $this->options['form_params']['DispatcherSize'] = $value;
943
944
        return $this;
945
    }
946
947
    /**
948
     * @param string $value
949
     *
950
     * @return $this
951
     */
952
    public function withTaskAttemptInterval($value)
953
    {
954
        $this->data['TaskAttemptInterval'] = $value;
955
        $this->options['form_params']['TaskAttemptInterval'] = $value;
956
957
        return $this;
958
    }
959
960
    /**
961
     * @param string $value
962
     *
963
     * @return $this
964
     */
965
    public function withExecuteMode($value)
966
    {
967
        $this->data['ExecuteMode'] = $value;
968
        $this->options['form_params']['ExecuteMode'] = $value;
969
970
        return $this;
971
    }
972
973
    /**
974
     * @param string $value
975
     *
976
     * @return $this
977
     */
978
    public function withQueueSize($value)
979
    {
980
        $this->data['QueueSize'] = $value;
981
        $this->options['form_params']['QueueSize'] = $value;
982
983
        return $this;
984
    }
985
986
    /**
987
     * @param string $value
988
     *
989
     * @return $this
990
     */
991
    public function withTimeExpression($value)
992
    {
993
        $this->data['TimeExpression'] = $value;
994
        $this->options['form_params']['TimeExpression'] = $value;
995
996
        return $this;
997
    }
998
999
    /**
1000
     * @param string $value
1001
     *
1002
     * @return $this
1003
     */
1004
    public function withClassName($value)
1005
    {
1006
        $this->data['ClassName'] = $value;
1007
        $this->options['form_params']['ClassName'] = $value;
1008
1009
        return $this;
1010
    }
1011
1012
    /**
1013
     * @param string $value
1014
     *
1015
     * @return $this
1016
     */
1017
    public function withTimeoutEnable($value)
1018
    {
1019
        $this->data['TimeoutEnable'] = $value;
1020
        $this->options['form_params']['TimeoutEnable'] = $value;
1021
1022
        return $this;
1023
    }
1024
1025
    /**
1026
     * @param array $contactInfo
1027
     *
1028
     * @return $this
1029
     */
1030
	public function withContactInfo(array $contactInfo)
1031
	{
1032
	    $this->data['ContactInfo'] = $contactInfo;
1033
		foreach ($contactInfo as $depth1 => $depth1Value) {
1034
			$this->options['form_params']['ContactInfo.' . ($depth1 + 1) . '.UserPhone'] = $depth1Value['UserPhone'];
1035
			$this->options['form_params']['ContactInfo.' . ($depth1 + 1) . '.UserName'] = $depth1Value['UserName'];
1036
		}
1037
1038
		return $this;
1039
    }
1040
1041
    /**
1042
     * @param string $value
1043
     *
1044
     * @return $this
1045
     */
1046
    public function withName($value)
1047
    {
1048
        $this->data['Name'] = $value;
1049
        $this->options['form_params']['Name'] = $value;
1050
1051
        return $this;
1052
    }
1053
1054
    /**
1055
     * @param string $value
1056
     *
1057
     * @return $this
1058
     */
1059
    public function withNamespace($value)
1060
    {
1061
        $this->data['Namespace'] = $value;
1062
        $this->options['form_params']['Namespace'] = $value;
1063
1064
        return $this;
1065
    }
1066
1067
    /**
1068
     * @param string $value
1069
     *
1070
     * @return $this
1071
     */
1072
    public function withMaxConcurrency($value)
1073
    {
1074
        $this->data['MaxConcurrency'] = $value;
1075
        $this->options['form_params']['MaxConcurrency'] = $value;
1076
1077
        return $this;
1078
    }
1079
1080
    /**
1081
     * @param string $value
1082
     *
1083
     * @return $this
1084
     */
1085
    public function withTimeType($value)
1086
    {
1087
        $this->data['TimeType'] = $value;
1088
        $this->options['form_params']['TimeType'] = $value;
1089
1090
        return $this;
1091
    }
1092
1093
    /**
1094
     * @param string $value
1095
     *
1096
     * @return $this
1097
     */
1098
    public function withParameters($value)
1099
    {
1100
        $this->data['Parameters'] = $value;
1101
        $this->options['form_params']['Parameters'] = $value;
1102
1103
        return $this;
1104
    }
1105
}
1106