Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
The AcceptQualificationRequest
operation approves a Worker's request
for a Qualification.
Only the owner of the Qualification type can grant a Qualification request for that type.
A successful request for the AcceptQualificationRequest
operation
returns with no errors and an empty body.
Synopsis
- data AcceptQualificationRequest = AcceptQualificationRequest' {}
- newAcceptQualificationRequest :: Text -> AcceptQualificationRequest
- acceptQualificationRequest_integerValue :: Lens' AcceptQualificationRequest (Maybe Int)
- acceptQualificationRequest_qualificationRequestId :: Lens' AcceptQualificationRequest Text
- data AcceptQualificationRequestResponse = AcceptQualificationRequestResponse' {
- httpStatus :: Int
- newAcceptQualificationRequestResponse :: Int -> AcceptQualificationRequestResponse
- acceptQualificationRequestResponse_httpStatus :: Lens' AcceptQualificationRequestResponse Int
Creating a Request
data AcceptQualificationRequest Source #
See: newAcceptQualificationRequest
smart constructor.
AcceptQualificationRequest' | |
|
Instances
newAcceptQualificationRequest Source #
Create a value of AcceptQualificationRequest
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:integerValue:AcceptQualificationRequest'
, acceptQualificationRequest_integerValue
- The value of the Qualification. You can omit this value if you are using
the presence or absence of the Qualification as the basis for a HIT
requirement.
$sel:qualificationRequestId:AcceptQualificationRequest'
, acceptQualificationRequest_qualificationRequestId
- The ID of the Qualification request, as returned by the
GetQualificationRequests
operation.
Request Lenses
acceptQualificationRequest_integerValue :: Lens' AcceptQualificationRequest (Maybe Int) Source #
The value of the Qualification. You can omit this value if you are using the presence or absence of the Qualification as the basis for a HIT requirement.
acceptQualificationRequest_qualificationRequestId :: Lens' AcceptQualificationRequest Text Source #
The ID of the Qualification request, as returned by the
GetQualificationRequests
operation.
Destructuring the Response
data AcceptQualificationRequestResponse Source #
See: newAcceptQualificationRequestResponse
smart constructor.
AcceptQualificationRequestResponse' | |
|
Instances
Eq AcceptQualificationRequestResponse Source # | |
Read AcceptQualificationRequestResponse Source # | |
Show AcceptQualificationRequestResponse Source # | |
Generic AcceptQualificationRequestResponse Source # | |
NFData AcceptQualificationRequestResponse Source # | |
Defined in Amazonka.MechanicalTurk.AcceptQualificationRequest rnf :: AcceptQualificationRequestResponse -> () # | |
type Rep AcceptQualificationRequestResponse Source # | |
Defined in Amazonka.MechanicalTurk.AcceptQualificationRequest type Rep AcceptQualificationRequestResponse = D1 ('MetaData "AcceptQualificationRequestResponse" "Amazonka.MechanicalTurk.AcceptQualificationRequest" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "AcceptQualificationRequestResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAcceptQualificationRequestResponse Source #
Create a value of AcceptQualificationRequestResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:AcceptQualificationRequestResponse'
, acceptQualificationRequestResponse_httpStatus
- The response's http status code.
Response Lenses
acceptQualificationRequestResponse_httpStatus :: Lens' AcceptQualificationRequestResponse Int Source #
The response's http status code.