line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::MTurk::CreateHITType; |
3
|
1
|
|
|
1
|
|
525
|
use Moose; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
9
|
|
4
|
|
|
|
|
|
|
has AssignmentDurationInSeconds => (is => 'ro', isa => 'Int', required => 1); |
5
|
|
|
|
|
|
|
has AutoApprovalDelayInSeconds => (is => 'ro', isa => 'Int'); |
6
|
|
|
|
|
|
|
has Description => (is => 'ro', isa => 'Str', required => 1); |
7
|
|
|
|
|
|
|
has Keywords => (is => 'ro', isa => 'Str'); |
8
|
|
|
|
|
|
|
has QualificationRequirements => (is => 'ro', isa => 'ArrayRef[Paws::MTurk::QualificationRequirement]'); |
9
|
|
|
|
|
|
|
has Reward => (is => 'ro', isa => 'Str', required => 1); |
10
|
|
|
|
|
|
|
has Title => (is => 'ro', isa => 'Str', required => 1); |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
8908
|
use MooseX::ClassAttribute; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
10
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateHITType'); |
15
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MTurk::CreateHITTypeResponse'); |
16
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
### main pod documentation begin ### |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Paws::MTurk::CreateHITType - Arguments for method CreateHITType on Paws::MTurk |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 DESCRIPTION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
This class represents the parameters used for calling the method CreateHITType on the |
28
|
|
|
|
|
|
|
Amazon Mechanical Turk service. Use the attributes of this class |
29
|
|
|
|
|
|
|
as arguments to method CreateHITType. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateHITType. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
As an example: |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
$service_obj->CreateHITType(Att1 => $value1, Att2 => $value2, ...); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head2 B<REQUIRED> AssignmentDurationInSeconds => Int |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
The amount of time, in seconds, that a Worker has to complete the HIT |
45
|
|
|
|
|
|
|
after accepting it. If a Worker does not complete the assignment within |
46
|
|
|
|
|
|
|
the specified duration, the assignment is considered abandoned. If the |
47
|
|
|
|
|
|
|
HIT is still active (that is, its lifetime has not elapsed), the |
48
|
|
|
|
|
|
|
assignment becomes available for other users to find and accept. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 AutoApprovalDelayInSeconds => Int |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
The number of seconds after an assignment for the HIT has been |
55
|
|
|
|
|
|
|
submitted, after which the assignment is considered Approved |
56
|
|
|
|
|
|
|
automatically unless the Requester explicitly rejects it. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 B<REQUIRED> Description => Str |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
A general description of the HIT. A description includes detailed |
63
|
|
|
|
|
|
|
information about the kind of task the HIT contains. On the Amazon |
64
|
|
|
|
|
|
|
Mechanical Turk web site, the HIT description appears in the expanded |
65
|
|
|
|
|
|
|
view of search results, and in the HIT and assignment screens. A good |
66
|
|
|
|
|
|
|
description gives the user enough information to evaluate the HIT |
67
|
|
|
|
|
|
|
before accepting it. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 Keywords => Str |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
One or more words or phrases that describe the HIT, separated by |
74
|
|
|
|
|
|
|
commas. These words are used in searches to find HITs. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 QualificationRequirements => ArrayRef[L<Paws::MTurk::QualificationRequirement>] |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
A condition that a Worker's Qualifications must meet before the Worker |
81
|
|
|
|
|
|
|
is allowed to accept and complete the HIT. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 B<REQUIRED> Reward => Str |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
The amount of money the Requester will pay a Worker for successfully |
88
|
|
|
|
|
|
|
completing the HIT. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 B<REQUIRED> Title => Str |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
The title of the HIT. A title should be short and descriptive about the |
95
|
|
|
|
|
|
|
kind of task the HIT contains. On the Amazon Mechanical Turk web site, |
96
|
|
|
|
|
|
|
the HIT title appears in search results, and everywhere the HIT is |
97
|
|
|
|
|
|
|
mentioned. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 SEE ALSO |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method CreateHITType in L<Paws::MTurk> |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=cut |
113
|
|
|
|
|
|
|
|