File Coverage

blib/lib/Paws/MTurk/UpdateQualificationType.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::UpdateQualificationType;
3 1     1   485 use Moose;
  1         2  
  1         9  
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');
8             has QualificationTypeId => (is => 'ro', isa => 'Str', required => 1);
9             has QualificationTypeStatus => (is => 'ro', isa => 'Str');
10             has RetryDelayInSeconds => (is => 'ro', isa => 'Int');
11             has Test => (is => 'ro', isa => 'Str');
12             has TestDurationInSeconds => (is => 'ro', isa => 'Int');
13              
14 1     1   6247 use MooseX::ClassAttribute;
  1         3  
  1         11  
15              
16             class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateQualificationType');
17             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MTurk::UpdateQualificationTypeResponse');
18             class_has _result_key => (isa => 'Str', is => 'ro');
19             1;
20              
21             ### main pod documentation begin ###
22              
23             =head1 NAME
24              
25             Paws::MTurk::UpdateQualificationType - Arguments for method UpdateQualificationType on Paws::MTurk
26              
27             =head1 DESCRIPTION
28              
29             This class represents the parameters used for calling the method UpdateQualificationType on the
30             Amazon Mechanical Turk service. Use the attributes of this class
31             as arguments to method UpdateQualificationType.
32              
33             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateQualificationType.
34              
35             As an example:
36              
37             $service_obj->UpdateQualificationType(Att1 => $value1, Att2 => $value2, ...);
38              
39             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.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 AnswerKey => Str
45              
46             The answers to the Qualification test specified in the Test parameter,
47             in the form of an AnswerKey data structure.
48              
49              
50              
51             =head2 AutoGranted => Bool
52              
53             Specifies whether requests for the Qualification type are granted
54             immediately, without prompting the Worker with a Qualification test.
55              
56             Constraints: If the Test parameter is specified, this parameter cannot
57             be true.
58              
59              
60              
61             =head2 AutoGrantedValue => Int
62              
63             The Qualification value to use for automatically granted
64             Qualifications. This parameter is used only if the AutoGranted
65             parameter is true.
66              
67              
68              
69             =head2 Description => Str
70              
71             The new description of the Qualification type.
72              
73              
74              
75             =head2 B<REQUIRED> QualificationTypeId => Str
76              
77             The ID of the Qualification type to update.
78              
79              
80              
81             =head2 QualificationTypeStatus => Str
82              
83             The new status of the Qualification type - Active | Inactive
84              
85             Valid values are: C<"Active">, C<"Inactive">
86              
87             =head2 RetryDelayInSeconds => Int
88              
89             The amount of time, in seconds, that Workers must wait after requesting
90             a Qualification of the specified Qualification type before they can
91             retry the Qualification request. It is not possible to disable retries
92             for a Qualification type after it has been created with retries
93             enabled. If you want to disable retries, you must dispose of the
94             existing retry-enabled Qualification type using
95             DisposeQualificationType and then create a new Qualification type with
96             retries disabled using CreateQualificationType.
97              
98              
99              
100             =head2 Test => Str
101              
102             The questions for the Qualification test a Worker must answer correctly
103             to obtain a Qualification of this type. If this parameter is specified,
104             C<TestDurationInSeconds> must also be specified.
105              
106             Constraints: Must not be longer than 65535 bytes. Must be a
107             QuestionForm data structure. This parameter cannot be specified if
108             AutoGranted is true.
109              
110             Constraints: None. If not specified, the Worker may request the
111             Qualification without answering any questions.
112              
113              
114              
115             =head2 TestDurationInSeconds => Int
116              
117             The number of seconds the Worker has to complete the Qualification
118             test, starting from the time the Worker requests the Qualification.
119              
120              
121              
122              
123             =head1 SEE ALSO
124              
125             This class forms part of L<Paws>, documenting arguments for method UpdateQualificationType in L<Paws::MTurk>
126              
127             =head1 BUGS and CONTRIBUTIONS
128              
129             The source code is located here: https://github.com/pplu/aws-sdk-perl
130              
131             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
132              
133             =cut
134