File Coverage

blib/lib/Paws/MTurk/CreateQualificationType.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::MTurk::CreateQualificationType;
3 1     1   700 use Moose;
  1         6  
  1         12  
4             has AnswerKey => (is => 'ro', isa => 'Str');
5             has AutoGranted => (is => 'ro', isa => 'Bool');
6             has AutoGrantedValue => (is => 'ro', isa => 'Int');
7             has Description => (is => 'ro', isa => 'Str', required => 1);
8             has Keywords => (is => 'ro', isa => 'Str');
9             has Name => (is => 'ro', isa => 'Str', required => 1);
10             has QualificationTypeStatus => (is => 'ro', isa => 'Str', required => 1);
11             has RetryDelayInSeconds => (is => 'ro', isa => 'Int');
12             has Test => (is => 'ro', isa => 'Str');
13             has TestDurationInSeconds => (is => 'ro', isa => 'Int');
14              
15 1     1   11754 use MooseX::ClassAttribute;
  1         6  
  1         12  
16              
17             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateQualificationType');
18             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MTurk::CreateQualificationTypeResponse');
19             class_has _result_key => (isa => 'Str', is => 'ro');
20             1;
21              
22             ### main pod documentation begin ###
23              
24             =head1 NAME
25              
26             Paws::MTurk::CreateQualificationType - Arguments for method CreateQualificationType on Paws::MTurk
27              
28             =head1 DESCRIPTION
29              
30             This class represents the parameters used for calling the method CreateQualificationType on the
31             Amazon Mechanical Turk service. Use the attributes of this class
32             as arguments to method CreateQualificationType.
33              
34             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateQualificationType.
35              
36             As an example:
37              
38             $service_obj->CreateQualificationType(Att1 => $value1, Att2 => $value2, ...);
39              
40             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.
41              
42             =head1 ATTRIBUTES
43              
44              
45             =head2 AnswerKey => Str
46              
47             The answers to the Qualification test specified in the Test parameter,
48             in the form of an AnswerKey data structure.
49              
50             Constraints: Must not be longer than 65535 bytes.
51              
52             Constraints: None. If not specified, you must process Qualification
53             requests manually.
54              
55              
56              
57             =head2 AutoGranted => Bool
58              
59             Specifies whether requests for the Qualification type are granted
60             immediately, without prompting the Worker with a Qualification test.
61              
62             Constraints: If the Test parameter is specified, this parameter cannot
63             be true.
64              
65              
66              
67             =head2 AutoGrantedValue => Int
68              
69             The Qualification value to use for automatically granted
70             Qualifications. This parameter is used only if the AutoGranted
71             parameter is true.
72              
73              
74              
75             =head2 B<REQUIRED> Description => Str
76              
77             A long description for the Qualification type. On the Amazon Mechanical
78             Turk website, the long description is displayed when a Worker examines
79             a Qualification type.
80              
81              
82              
83             =head2 Keywords => Str
84              
85             One or more words or phrases that describe the Qualification type,
86             separated by commas. The keywords of a type make the type easier to
87             find during a search.
88              
89              
90              
91             =head2 B<REQUIRED> Name => Str
92              
93             The name you give to the Qualification type. The type name is used to
94             represent the Qualification to Workers, and to find the type using a
95             Qualification type search. It must be unique across all of your
96             Qualification types.
97              
98              
99              
100             =head2 B<REQUIRED> QualificationTypeStatus => Str
101              
102             The initial status of the Qualification type.
103              
104             Constraints: Valid values are: Active | Inactive
105              
106             Valid values are: C<"Active">, C<"Inactive">
107              
108             =head2 RetryDelayInSeconds => Int
109              
110             The number of seconds that a Worker must wait after requesting a
111             Qualification of the Qualification type before the worker can retry the
112             Qualification request.
113              
114             Constraints: None. If not specified, retries are disabled and Workers
115             can request a Qualification of this type only once, even if the Worker
116             has not been granted the Qualification. It is not possible to disable
117             retries for a Qualification type after it has been created with retries
118             enabled. If you want to disable retries, you must delete existing
119             retry-enabled Qualification type and then create a new Qualification
120             type with retries disabled.
121              
122              
123              
124             =head2 Test => Str
125              
126             The questions for the Qualification test a Worker must answer correctly
127             to obtain a Qualification of this type. If this parameter is specified,
128             C<TestDurationInSeconds> must also be specified.
129              
130             Constraints: Must not be longer than 65535 bytes. Must be a
131             QuestionForm data structure. This parameter cannot be specified if
132             AutoGranted is true.
133              
134             Constraints: None. If not specified, the Worker may request the
135             Qualification without answering any questions.
136              
137              
138              
139             =head2 TestDurationInSeconds => Int
140              
141             The number of seconds the Worker has to complete the Qualification
142             test, starting from the time the Worker requests the Qualification.
143              
144              
145              
146              
147             =head1 SEE ALSO
148              
149             This class forms part of L<Paws>, documenting arguments for method CreateQualificationType in L<Paws::MTurk>
150              
151             =head1 BUGS and CONTRIBUTIONS
152              
153             The source code is located here: https://github.com/pplu/aws-sdk-perl
154              
155             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
156              
157             =cut
158