« blib/lib/Paws/MTurk/UpdateNotificationSettingsResponse.pm
↑ Summary
blib/lib/Paws/MTurk/UpdateQualificationTypeResponse.pm »
| 1 | |||
| 2 | package Paws::MTurk::UpdateQualificationType; | ||
| 3 | use Moose; | ||
| 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 | use MooseX::ClassAttribute; | ||
| 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 L<Paws::MTurk> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method UpdateQualificationType on the | ||
| 30 | L<Amazon Mechanical Turk|Paws::MTurk> 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 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $mturk-requester = Paws->service('MTurk'); | ||
| 38 | my $UpdateQualificationTypeResponse = | ||
| 39 | $mturk -requester->UpdateQualificationType( | ||
| 40 | QualificationTypeId => 'MyEntityId', | ||
| 41 | AnswerKey => 'MyString', # OPTIONAL | ||
| 42 | AutoGranted => 1, # OPTIONAL | ||
| 43 | AutoGrantedValue => 1, # OPTIONAL | ||
| 44 | Description => 'MyString', # OPTIONAL | ||
| 45 | QualificationTypeStatus => 'Active', # OPTIONAL | ||
| 46 | RetryDelayInSeconds => 1, # OPTIONAL | ||
| 47 | Test => 'MyString', # OPTIONAL | ||
| 48 | TestDurationInSeconds => 1, # OPTIONAL | ||
| 49 | ); | ||
| 50 | |||
| 51 | # Results: | ||
| 52 | my $QualificationType = $UpdateQualificationTypeResponse->QualificationType; | ||
| 53 | |||
| 54 | # Returns a L<Paws::MTurk::UpdateQualificationTypeResponse> object. | ||
| 55 | |||
| 56 | 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. | ||
| 57 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/mturk-requester/UpdateQualificationType> | ||
| 58 | |||
| 59 | =head1 ATTRIBUTES | ||
| 60 | |||
| 61 | |||
| 62 | =head2 AnswerKey => Str | ||
| 63 | |||
| 64 | The answers to the Qualification test specified in the Test parameter, | ||
| 65 | in the form of an AnswerKey data structure. | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | =head2 AutoGranted => Bool | ||
| 70 | |||
| 71 | Specifies whether requests for the Qualification type are granted | ||
| 72 | immediately, without prompting the Worker with a Qualification test. | ||
| 73 | |||
| 74 | Constraints: If the Test parameter is specified, this parameter cannot | ||
| 75 | be true. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 AutoGrantedValue => Int | ||
| 80 | |||
| 81 | The Qualification value to use for automatically granted | ||
| 82 | Qualifications. This parameter is used only if the AutoGranted | ||
| 83 | parameter is true. | ||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | =head2 Description => Str | ||
| 88 | |||
| 89 | The new description of the Qualification type. | ||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head2 B<REQUIRED> QualificationTypeId => Str | ||
| 94 | |||
| 95 | The ID of the Qualification type to update. | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | =head2 QualificationTypeStatus => Str | ||
| 100 | |||
| 101 | The new status of the Qualification type - Active | Inactive | ||
| 102 | |||
| 103 | Valid values are: C<"Active">, C<"Inactive"> | ||
| 104 | |||
| 105 | =head2 RetryDelayInSeconds => Int | ||
| 106 | |||
| 107 | The amount of time, in seconds, that Workers must wait after requesting | ||
| 108 | a Qualification of the specified Qualification type before they can | ||
| 109 | retry the Qualification request. It is not possible to disable retries | ||
| 110 | for a Qualification type after it has been created with retries | ||
| 111 | enabled. If you want to disable retries, you must dispose of the | ||
| 112 | existing retry-enabled Qualification type using | ||
| 113 | DisposeQualificationType and then create a new Qualification type with | ||
| 114 | retries disabled using CreateQualificationType. | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | =head2 Test => Str | ||
| 119 | |||
| 120 | The questions for the Qualification test a Worker must answer correctly | ||
| 121 | to obtain a Qualification of this type. If this parameter is specified, | ||
| 122 | C<TestDurationInSeconds> must also be specified. | ||
| 123 | |||
| 124 | Constraints: Must not be longer than 65535 bytes. Must be a | ||
| 125 | QuestionForm data structure. This parameter cannot be specified if | ||
| 126 | AutoGranted is true. | ||
| 127 | |||
| 128 | Constraints: None. If not specified, the Worker may request the | ||
| 129 | Qualification without answering any questions. | ||
| 130 | |||
| 131 | |||
| 132 | |||
| 133 | =head2 TestDurationInSeconds => Int | ||
| 134 | |||
| 135 | The number of seconds the Worker has to complete the Qualification | ||
| 136 | test, starting from the time the Worker requests the Qualification. | ||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | |||
| 141 | =head1 SEE ALSO | ||
| 142 | |||
| 143 | This class forms part of L<Paws>, documenting arguments for method UpdateQualificationType in L<Paws::MTurk> | ||
| 144 | |||
| 145 | =head1 BUGS and CONTRIBUTIONS | ||
| 146 | |||
| 147 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 148 | |||
| 149 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 150 | |||
| 151 | =cut | ||
| 152 |