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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes the work to be performed by human workers.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct HumanLoopConfig {
    /// <p>Amazon Resource Name (ARN) of a team of workers. To learn more about the types of workforces and work teams you can create and use with Amazon A2I, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-management.html">Create and Manage Workforces</a>.</p>
    pub workteam_arn: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the human task user interface.</p>
    /// <p>You can use standard HTML and Crowd HTML Elements to create a custom worker task template. You use this template to create a human task UI.</p>
    /// <p>To learn how to create a custom HTML template, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-custom-templates.html">Create Custom Worker Task Template</a>.</p>
    /// <p>To learn how to create a human task UI, which is a worker task template that can be used in a flow definition, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-worker-template-console.html">Create and Delete a Worker Task Templates</a>.</p>
    pub human_task_ui_arn: ::std::option::Option<::std::string::String>,
    /// <p>A title for the human worker task.</p>
    pub task_title: ::std::option::Option<::std::string::String>,
    /// <p>A description for the human worker task.</p>
    pub task_description: ::std::option::Option<::std::string::String>,
    /// <p>The number of distinct workers who will perform the same task on each object. For example, if <code>TaskCount</code> is set to <code>3</code> for an image classification labeling job, three workers will classify each input image. Increasing <code>TaskCount</code> can improve label accuracy.</p>
    pub task_count: ::std::option::Option<i32>,
    /// <p>The length of time that a task remains available for review by human workers.</p>
    pub task_availability_lifetime_in_seconds: ::std::option::Option<i32>,
    /// <p>The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour).</p>
    pub task_time_limit_in_seconds: ::std::option::Option<i32>,
    /// <p>Keywords used to describe the task so that workers can discover the task.</p>
    pub task_keywords: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. </p>
    /// <p>Use one of the following prices for bounding box tasks. Prices are in US dollars and should be based on the complexity of the task; the longer it takes in your initial testing, the more you should offer.</p>
    /// <ul>
    /// <li> <p>0.036</p> </li>
    /// <li> <p>0.048</p> </li>
    /// <li> <p>0.060</p> </li>
    /// <li> <p>0.072</p> </li>
    /// <li> <p>0.120</p> </li>
    /// <li> <p>0.240</p> </li>
    /// <li> <p>0.360</p> </li>
    /// <li> <p>0.480</p> </li>
    /// <li> <p>0.600</p> </li>
    /// <li> <p>0.720</p> </li>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for image classification, text classification, and custom tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>0.012</p> </li>
    /// <li> <p>0.024</p> </li>
    /// <li> <p>0.036</p> </li>
    /// <li> <p>0.048</p> </li>
    /// <li> <p>0.060</p> </li>
    /// <li> <p>0.072</p> </li>
    /// <li> <p>0.120</p> </li>
    /// <li> <p>0.240</p> </li>
    /// <li> <p>0.360</p> </li>
    /// <li> <p>0.480</p> </li>
    /// <li> <p>0.600</p> </li>
    /// <li> <p>0.720</p> </li>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for semantic segmentation tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Textract AnalyzeDocument Important Form Key Amazon Augmented AI review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>2.400 </p> </li>
    /// <li> <p>2.280 </p> </li>
    /// <li> <p>2.160 </p> </li>
    /// <li> <p>2.040 </p> </li>
    /// <li> <p>1.920 </p> </li>
    /// <li> <p>1.800 </p> </li>
    /// <li> <p>1.680 </p> </li>
    /// <li> <p>1.560 </p> </li>
    /// <li> <p>1.440 </p> </li>
    /// <li> <p>1.320 </p> </li>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Rekognition DetectModerationLabels Amazon Augmented AI review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Amazon Augmented AI custom human review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    pub public_workforce_task_price: ::std::option::Option<crate::types::PublicWorkforceTaskPrice>,
}
impl HumanLoopConfig {
    /// <p>Amazon Resource Name (ARN) of a team of workers. To learn more about the types of workforces and work teams you can create and use with Amazon A2I, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-management.html">Create and Manage Workforces</a>.</p>
    pub fn workteam_arn(&self) -> ::std::option::Option<&str> {
        self.workteam_arn.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the human task user interface.</p>
    /// <p>You can use standard HTML and Crowd HTML Elements to create a custom worker task template. You use this template to create a human task UI.</p>
    /// <p>To learn how to create a custom HTML template, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-custom-templates.html">Create Custom Worker Task Template</a>.</p>
    /// <p>To learn how to create a human task UI, which is a worker task template that can be used in a flow definition, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-worker-template-console.html">Create and Delete a Worker Task Templates</a>.</p>
    pub fn human_task_ui_arn(&self) -> ::std::option::Option<&str> {
        self.human_task_ui_arn.as_deref()
    }
    /// <p>A title for the human worker task.</p>
    pub fn task_title(&self) -> ::std::option::Option<&str> {
        self.task_title.as_deref()
    }
    /// <p>A description for the human worker task.</p>
    pub fn task_description(&self) -> ::std::option::Option<&str> {
        self.task_description.as_deref()
    }
    /// <p>The number of distinct workers who will perform the same task on each object. For example, if <code>TaskCount</code> is set to <code>3</code> for an image classification labeling job, three workers will classify each input image. Increasing <code>TaskCount</code> can improve label accuracy.</p>
    pub fn task_count(&self) -> ::std::option::Option<i32> {
        self.task_count
    }
    /// <p>The length of time that a task remains available for review by human workers.</p>
    pub fn task_availability_lifetime_in_seconds(&self) -> ::std::option::Option<i32> {
        self.task_availability_lifetime_in_seconds
    }
    /// <p>The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour).</p>
    pub fn task_time_limit_in_seconds(&self) -> ::std::option::Option<i32> {
        self.task_time_limit_in_seconds
    }
    /// <p>Keywords used to describe the task so that workers can discover the task.</p>
    pub fn task_keywords(&self) -> ::std::option::Option<&[::std::string::String]> {
        self.task_keywords.as_deref()
    }
    /// <p>Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. </p>
    /// <p>Use one of the following prices for bounding box tasks. Prices are in US dollars and should be based on the complexity of the task; the longer it takes in your initial testing, the more you should offer.</p>
    /// <ul>
    /// <li> <p>0.036</p> </li>
    /// <li> <p>0.048</p> </li>
    /// <li> <p>0.060</p> </li>
    /// <li> <p>0.072</p> </li>
    /// <li> <p>0.120</p> </li>
    /// <li> <p>0.240</p> </li>
    /// <li> <p>0.360</p> </li>
    /// <li> <p>0.480</p> </li>
    /// <li> <p>0.600</p> </li>
    /// <li> <p>0.720</p> </li>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for image classification, text classification, and custom tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>0.012</p> </li>
    /// <li> <p>0.024</p> </li>
    /// <li> <p>0.036</p> </li>
    /// <li> <p>0.048</p> </li>
    /// <li> <p>0.060</p> </li>
    /// <li> <p>0.072</p> </li>
    /// <li> <p>0.120</p> </li>
    /// <li> <p>0.240</p> </li>
    /// <li> <p>0.360</p> </li>
    /// <li> <p>0.480</p> </li>
    /// <li> <p>0.600</p> </li>
    /// <li> <p>0.720</p> </li>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for semantic segmentation tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Textract AnalyzeDocument Important Form Key Amazon Augmented AI review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>2.400 </p> </li>
    /// <li> <p>2.280 </p> </li>
    /// <li> <p>2.160 </p> </li>
    /// <li> <p>2.040 </p> </li>
    /// <li> <p>1.920 </p> </li>
    /// <li> <p>1.800 </p> </li>
    /// <li> <p>1.680 </p> </li>
    /// <li> <p>1.560 </p> </li>
    /// <li> <p>1.440 </p> </li>
    /// <li> <p>1.320 </p> </li>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Rekognition DetectModerationLabels Amazon Augmented AI review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Amazon Augmented AI custom human review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    pub fn public_workforce_task_price(&self) -> ::std::option::Option<&crate::types::PublicWorkforceTaskPrice> {
        self.public_workforce_task_price.as_ref()
    }
}
impl HumanLoopConfig {
    /// Creates a new builder-style object to manufacture [`HumanLoopConfig`](crate::types::HumanLoopConfig).
    pub fn builder() -> crate::types::builders::HumanLoopConfigBuilder {
        crate::types::builders::HumanLoopConfigBuilder::default()
    }
}

/// A builder for [`HumanLoopConfig`](crate::types::HumanLoopConfig).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct HumanLoopConfigBuilder {
    pub(crate) workteam_arn: ::std::option::Option<::std::string::String>,
    pub(crate) human_task_ui_arn: ::std::option::Option<::std::string::String>,
    pub(crate) task_title: ::std::option::Option<::std::string::String>,
    pub(crate) task_description: ::std::option::Option<::std::string::String>,
    pub(crate) task_count: ::std::option::Option<i32>,
    pub(crate) task_availability_lifetime_in_seconds: ::std::option::Option<i32>,
    pub(crate) task_time_limit_in_seconds: ::std::option::Option<i32>,
    pub(crate) task_keywords: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) public_workforce_task_price: ::std::option::Option<crate::types::PublicWorkforceTaskPrice>,
}
impl HumanLoopConfigBuilder {
    /// <p>Amazon Resource Name (ARN) of a team of workers. To learn more about the types of workforces and work teams you can create and use with Amazon A2I, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-management.html">Create and Manage Workforces</a>.</p>
    pub fn workteam_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.workteam_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Amazon Resource Name (ARN) of a team of workers. To learn more about the types of workforces and work teams you can create and use with Amazon A2I, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-management.html">Create and Manage Workforces</a>.</p>
    pub fn set_workteam_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.workteam_arn = input;
        self
    }
    /// <p>Amazon Resource Name (ARN) of a team of workers. To learn more about the types of workforces and work teams you can create and use with Amazon A2I, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sms-workforce-management.html">Create and Manage Workforces</a>.</p>
    pub fn get_workteam_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.workteam_arn
    }
    /// <p>The Amazon Resource Name (ARN) of the human task user interface.</p>
    /// <p>You can use standard HTML and Crowd HTML Elements to create a custom worker task template. You use this template to create a human task UI.</p>
    /// <p>To learn how to create a custom HTML template, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-custom-templates.html">Create Custom Worker Task Template</a>.</p>
    /// <p>To learn how to create a human task UI, which is a worker task template that can be used in a flow definition, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-worker-template-console.html">Create and Delete a Worker Task Templates</a>.</p>
    pub fn human_task_ui_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.human_task_ui_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the human task user interface.</p>
    /// <p>You can use standard HTML and Crowd HTML Elements to create a custom worker task template. You use this template to create a human task UI.</p>
    /// <p>To learn how to create a custom HTML template, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-custom-templates.html">Create Custom Worker Task Template</a>.</p>
    /// <p>To learn how to create a human task UI, which is a worker task template that can be used in a flow definition, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-worker-template-console.html">Create and Delete a Worker Task Templates</a>.</p>
    pub fn set_human_task_ui_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.human_task_ui_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the human task user interface.</p>
    /// <p>You can use standard HTML and Crowd HTML Elements to create a custom worker task template. You use this template to create a human task UI.</p>
    /// <p>To learn how to create a custom HTML template, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-custom-templates.html">Create Custom Worker Task Template</a>.</p>
    /// <p>To learn how to create a human task UI, which is a worker task template that can be used in a flow definition, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/a2i-worker-template-console.html">Create and Delete a Worker Task Templates</a>.</p>
    pub fn get_human_task_ui_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.human_task_ui_arn
    }
    /// <p>A title for the human worker task.</p>
    pub fn task_title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.task_title = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A title for the human worker task.</p>
    pub fn set_task_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.task_title = input;
        self
    }
    /// <p>A title for the human worker task.</p>
    pub fn get_task_title(&self) -> &::std::option::Option<::std::string::String> {
        &self.task_title
    }
    /// <p>A description for the human worker task.</p>
    pub fn task_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.task_description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A description for the human worker task.</p>
    pub fn set_task_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.task_description = input;
        self
    }
    /// <p>A description for the human worker task.</p>
    pub fn get_task_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.task_description
    }
    /// <p>The number of distinct workers who will perform the same task on each object. For example, if <code>TaskCount</code> is set to <code>3</code> for an image classification labeling job, three workers will classify each input image. Increasing <code>TaskCount</code> can improve label accuracy.</p>
    pub fn task_count(mut self, input: i32) -> Self {
        self.task_count = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of distinct workers who will perform the same task on each object. For example, if <code>TaskCount</code> is set to <code>3</code> for an image classification labeling job, three workers will classify each input image. Increasing <code>TaskCount</code> can improve label accuracy.</p>
    pub fn set_task_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.task_count = input;
        self
    }
    /// <p>The number of distinct workers who will perform the same task on each object. For example, if <code>TaskCount</code> is set to <code>3</code> for an image classification labeling job, three workers will classify each input image. Increasing <code>TaskCount</code> can improve label accuracy.</p>
    pub fn get_task_count(&self) -> &::std::option::Option<i32> {
        &self.task_count
    }
    /// <p>The length of time that a task remains available for review by human workers.</p>
    pub fn task_availability_lifetime_in_seconds(mut self, input: i32) -> Self {
        self.task_availability_lifetime_in_seconds = ::std::option::Option::Some(input);
        self
    }
    /// <p>The length of time that a task remains available for review by human workers.</p>
    pub fn set_task_availability_lifetime_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
        self.task_availability_lifetime_in_seconds = input;
        self
    }
    /// <p>The length of time that a task remains available for review by human workers.</p>
    pub fn get_task_availability_lifetime_in_seconds(&self) -> &::std::option::Option<i32> {
        &self.task_availability_lifetime_in_seconds
    }
    /// <p>The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour).</p>
    pub fn task_time_limit_in_seconds(mut self, input: i32) -> Self {
        self.task_time_limit_in_seconds = ::std::option::Option::Some(input);
        self
    }
    /// <p>The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour).</p>
    pub fn set_task_time_limit_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
        self.task_time_limit_in_seconds = input;
        self
    }
    /// <p>The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour).</p>
    pub fn get_task_time_limit_in_seconds(&self) -> &::std::option::Option<i32> {
        &self.task_time_limit_in_seconds
    }
    /// Appends an item to `task_keywords`.
    ///
    /// To override the contents of this collection use [`set_task_keywords`](Self::set_task_keywords).
    ///
    /// <p>Keywords used to describe the task so that workers can discover the task.</p>
    pub fn task_keywords(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.task_keywords.unwrap_or_default();
        v.push(input.into());
        self.task_keywords = ::std::option::Option::Some(v);
        self
    }
    /// <p>Keywords used to describe the task so that workers can discover the task.</p>
    pub fn set_task_keywords(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.task_keywords = input;
        self
    }
    /// <p>Keywords used to describe the task so that workers can discover the task.</p>
    pub fn get_task_keywords(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.task_keywords
    }
    /// <p>Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. </p>
    /// <p>Use one of the following prices for bounding box tasks. Prices are in US dollars and should be based on the complexity of the task; the longer it takes in your initial testing, the more you should offer.</p>
    /// <ul>
    /// <li> <p>0.036</p> </li>
    /// <li> <p>0.048</p> </li>
    /// <li> <p>0.060</p> </li>
    /// <li> <p>0.072</p> </li>
    /// <li> <p>0.120</p> </li>
    /// <li> <p>0.240</p> </li>
    /// <li> <p>0.360</p> </li>
    /// <li> <p>0.480</p> </li>
    /// <li> <p>0.600</p> </li>
    /// <li> <p>0.720</p> </li>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for image classification, text classification, and custom tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>0.012</p> </li>
    /// <li> <p>0.024</p> </li>
    /// <li> <p>0.036</p> </li>
    /// <li> <p>0.048</p> </li>
    /// <li> <p>0.060</p> </li>
    /// <li> <p>0.072</p> </li>
    /// <li> <p>0.120</p> </li>
    /// <li> <p>0.240</p> </li>
    /// <li> <p>0.360</p> </li>
    /// <li> <p>0.480</p> </li>
    /// <li> <p>0.600</p> </li>
    /// <li> <p>0.720</p> </li>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for semantic segmentation tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Textract AnalyzeDocument Important Form Key Amazon Augmented AI review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>2.400 </p> </li>
    /// <li> <p>2.280 </p> </li>
    /// <li> <p>2.160 </p> </li>
    /// <li> <p>2.040 </p> </li>
    /// <li> <p>1.920 </p> </li>
    /// <li> <p>1.800 </p> </li>
    /// <li> <p>1.680 </p> </li>
    /// <li> <p>1.560 </p> </li>
    /// <li> <p>1.440 </p> </li>
    /// <li> <p>1.320 </p> </li>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Rekognition DetectModerationLabels Amazon Augmented AI review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Amazon Augmented AI custom human review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    pub fn public_workforce_task_price(mut self, input: crate::types::PublicWorkforceTaskPrice) -> Self {
        self.public_workforce_task_price = ::std::option::Option::Some(input);
        self
    }
    /// <p>Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. </p>
    /// <p>Use one of the following prices for bounding box tasks. Prices are in US dollars and should be based on the complexity of the task; the longer it takes in your initial testing, the more you should offer.</p>
    /// <ul>
    /// <li> <p>0.036</p> </li>
    /// <li> <p>0.048</p> </li>
    /// <li> <p>0.060</p> </li>
    /// <li> <p>0.072</p> </li>
    /// <li> <p>0.120</p> </li>
    /// <li> <p>0.240</p> </li>
    /// <li> <p>0.360</p> </li>
    /// <li> <p>0.480</p> </li>
    /// <li> <p>0.600</p> </li>
    /// <li> <p>0.720</p> </li>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for image classification, text classification, and custom tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>0.012</p> </li>
    /// <li> <p>0.024</p> </li>
    /// <li> <p>0.036</p> </li>
    /// <li> <p>0.048</p> </li>
    /// <li> <p>0.060</p> </li>
    /// <li> <p>0.072</p> </li>
    /// <li> <p>0.120</p> </li>
    /// <li> <p>0.240</p> </li>
    /// <li> <p>0.360</p> </li>
    /// <li> <p>0.480</p> </li>
    /// <li> <p>0.600</p> </li>
    /// <li> <p>0.720</p> </li>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for semantic segmentation tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Textract AnalyzeDocument Important Form Key Amazon Augmented AI review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>2.400 </p> </li>
    /// <li> <p>2.280 </p> </li>
    /// <li> <p>2.160 </p> </li>
    /// <li> <p>2.040 </p> </li>
    /// <li> <p>1.920 </p> </li>
    /// <li> <p>1.800 </p> </li>
    /// <li> <p>1.680 </p> </li>
    /// <li> <p>1.560 </p> </li>
    /// <li> <p>1.440 </p> </li>
    /// <li> <p>1.320 </p> </li>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Rekognition DetectModerationLabels Amazon Augmented AI review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Amazon Augmented AI custom human review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    pub fn set_public_workforce_task_price(mut self, input: ::std::option::Option<crate::types::PublicWorkforceTaskPrice>) -> Self {
        self.public_workforce_task_price = input;
        self
    }
    /// <p>Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. </p>
    /// <p>Use one of the following prices for bounding box tasks. Prices are in US dollars and should be based on the complexity of the task; the longer it takes in your initial testing, the more you should offer.</p>
    /// <ul>
    /// <li> <p>0.036</p> </li>
    /// <li> <p>0.048</p> </li>
    /// <li> <p>0.060</p> </li>
    /// <li> <p>0.072</p> </li>
    /// <li> <p>0.120</p> </li>
    /// <li> <p>0.240</p> </li>
    /// <li> <p>0.360</p> </li>
    /// <li> <p>0.480</p> </li>
    /// <li> <p>0.600</p> </li>
    /// <li> <p>0.720</p> </li>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for image classification, text classification, and custom tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>0.012</p> </li>
    /// <li> <p>0.024</p> </li>
    /// <li> <p>0.036</p> </li>
    /// <li> <p>0.048</p> </li>
    /// <li> <p>0.060</p> </li>
    /// <li> <p>0.072</p> </li>
    /// <li> <p>0.120</p> </li>
    /// <li> <p>0.240</p> </li>
    /// <li> <p>0.360</p> </li>
    /// <li> <p>0.480</p> </li>
    /// <li> <p>0.600</p> </li>
    /// <li> <p>0.720</p> </li>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for semantic segmentation tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>0.840</p> </li>
    /// <li> <p>0.960</p> </li>
    /// <li> <p>1.080</p> </li>
    /// <li> <p>1.200</p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Textract AnalyzeDocument Important Form Key Amazon Augmented AI review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>2.400 </p> </li>
    /// <li> <p>2.280 </p> </li>
    /// <li> <p>2.160 </p> </li>
    /// <li> <p>2.040 </p> </li>
    /// <li> <p>1.920 </p> </li>
    /// <li> <p>1.800 </p> </li>
    /// <li> <p>1.680 </p> </li>
    /// <li> <p>1.560 </p> </li>
    /// <li> <p>1.440 </p> </li>
    /// <li> <p>1.320 </p> </li>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Rekognition DetectModerationLabels Amazon Augmented AI review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    /// <p>Use one of the following prices for Amazon Augmented AI custom human review tasks. Prices are in US dollars.</p>
    /// <ul>
    /// <li> <p>1.200 </p> </li>
    /// <li> <p>1.080 </p> </li>
    /// <li> <p>0.960 </p> </li>
    /// <li> <p>0.840 </p> </li>
    /// <li> <p>0.720 </p> </li>
    /// <li> <p>0.600 </p> </li>
    /// <li> <p>0.480 </p> </li>
    /// <li> <p>0.360 </p> </li>
    /// <li> <p>0.240 </p> </li>
    /// <li> <p>0.120 </p> </li>
    /// <li> <p>0.072 </p> </li>
    /// <li> <p>0.060 </p> </li>
    /// <li> <p>0.048 </p> </li>
    /// <li> <p>0.036 </p> </li>
    /// <li> <p>0.024 </p> </li>
    /// <li> <p>0.012 </p> </li>
    /// </ul>
    pub fn get_public_workforce_task_price(&self) -> &::std::option::Option<crate::types::PublicWorkforceTaskPrice> {
        &self.public_workforce_task_price
    }
    /// Consumes the builder and constructs a [`HumanLoopConfig`](crate::types::HumanLoopConfig).
    pub fn build(self) -> crate::types::HumanLoopConfig {
        crate::types::HumanLoopConfig {
            workteam_arn: self.workteam_arn,
            human_task_ui_arn: self.human_task_ui_arn,
            task_title: self.task_title,
            task_description: self.task_description,
            task_count: self.task_count,
            task_availability_lifetime_in_seconds: self.task_availability_lifetime_in_seconds,
            task_time_limit_in_seconds: self.task_time_limit_in_seconds,
            task_keywords: self.task_keywords,
            public_workforce_task_price: self.public_workforce_task_price,
        }
    }
}