blib/lib/Paws/MTurk/CreateHITType.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::MTurk::CreateHITType;
3 use Moose;
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 use MooseX::ClassAttribute;
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 L<Paws::MTurk>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateHITType on the
28 L<Amazon Mechanical Turk|Paws::MTurk> 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 =head1 SYNOPSIS
34  
35 my $mturk-requester = Paws->service('MTurk');
36 my $CreateHITTypeResponse = $mturk -requester->CreateHITType(
37 AssignmentDurationInSeconds => 1,
38 Description => 'MyString',
39 Reward => 'MyCurrencyAmount',
40 Title => 'MyString',
41 AutoApprovalDelayInSeconds => 1, # OPTIONAL
42 Keywords => 'MyString', # OPTIONAL
43 QualificationRequirements => [
44 {
45 Comparator => 'LessThan'
46 , # values: LessThan, LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, EqualTo, NotEqualTo, Exists, DoesNotExist, In, NotIn
47 QualificationTypeId => 'MyString',
48 ActionsGuarded => 'Accept'
49 , # values: Accept, PreviewAndAccept, DiscoverPreviewAndAccept; OPTIONAL
50 IntegerValues => [ 1, ... ], # OPTIONAL
51 LocaleValues => [
52 {
53 Country => 'MyCountryParameters', # min: 2, max: 2
54 Subdivision => 'MyCountryParameters', # min: 2, max: 2
55 },
56 ...
57 ], # OPTIONAL
58 RequiredToPreview => 1, # OPTIONAL
59 },
60 ...
61 ], # OPTIONAL
62 );
63  
64 # Results:
65 my $HITTypeId = $CreateHITTypeResponse->HITTypeId;
66  
67 # Returns a L<Paws::MTurk::CreateHITTypeResponse> object.
68  
69 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.
70 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/mturk-requester/CreateHITType>
71  
72 =head1 ATTRIBUTES
73  
74  
75 =head2 B<REQUIRED> AssignmentDurationInSeconds => Int
76  
77 The amount of time, in seconds, that a Worker has to complete the HIT
78 after accepting it. If a Worker does not complete the assignment within
79 the specified duration, the assignment is considered abandoned. If the
80 HIT is still active (that is, its lifetime has not elapsed), the
81 assignment becomes available for other users to find and accept.
82  
83  
84  
85 =head2 AutoApprovalDelayInSeconds => Int
86  
87 The number of seconds after an assignment for the HIT has been
88 submitted, after which the assignment is considered Approved
89 automatically unless the Requester explicitly rejects it.
90  
91  
92  
93 =head2 B<REQUIRED> Description => Str
94  
95 A general description of the HIT. A description includes detailed
96 information about the kind of task the HIT contains. On the Amazon
97 Mechanical Turk web site, the HIT description appears in the expanded
98 view of search results, and in the HIT and assignment screens. A good
99 description gives the user enough information to evaluate the HIT
100 before accepting it.
101  
102  
103  
104 =head2 Keywords => Str
105  
106 One or more words or phrases that describe the HIT, separated by
107 commas. These words are used in searches to find HITs.
108  
109  
110  
111 =head2 QualificationRequirements => ArrayRef[L<Paws::MTurk::QualificationRequirement>]
112  
113 Conditions that a Worker's Qualifications must meet in order to accept
114 the HIT. A HIT can have between zero and ten Qualification
115 requirements. All requirements must be met in order for a Worker to
116 accept the HIT. Additionally, other actions can be restricted using the
117 C<ActionsGuarded> field on each C<QualificationRequirement> structure.
118  
119  
120  
121 =head2 B<REQUIRED> Reward => Str
122  
123 The amount of money the Requester will pay a Worker for successfully
124 completing the HIT.
125  
126  
127  
128 =head2 B<REQUIRED> Title => Str
129  
130 The title of the HIT. A title should be short and descriptive about the
131 kind of task the HIT contains. On the Amazon Mechanical Turk web site,
132 the HIT title appears in search results, and everywhere the HIT is
133 mentioned.
134  
135  
136  
137  
138 =head1 SEE ALSO
139  
140 This class forms part of L<Paws>, documenting arguments for method CreateHITType in L<Paws::MTurk>
141  
142 =head1 BUGS and CONTRIBUTIONS
143  
144 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
145  
146 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
147  
148 =cut
149