Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The UpdateHITReviewStatus
operation updates the status of a HIT. If
the status is Reviewable, this operation can update the status to
Reviewing, or it can revert a Reviewing HIT back to the Reviewable
status.
Synopsis
- data UpdateHITReviewStatus = UpdateHITReviewStatus' {}
- newUpdateHITReviewStatus :: Text -> UpdateHITReviewStatus
- updateHITReviewStatus_revert :: Lens' UpdateHITReviewStatus (Maybe Bool)
- updateHITReviewStatus_hITId :: Lens' UpdateHITReviewStatus Text
- data UpdateHITReviewStatusResponse = UpdateHITReviewStatusResponse' {
- httpStatus :: Int
- newUpdateHITReviewStatusResponse :: Int -> UpdateHITReviewStatusResponse
- updateHITReviewStatusResponse_httpStatus :: Lens' UpdateHITReviewStatusResponse Int
Creating a Request
data UpdateHITReviewStatus Source #
See: newUpdateHITReviewStatus
smart constructor.
Instances
newUpdateHITReviewStatus Source #
Create a value of UpdateHITReviewStatus
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:revert:UpdateHITReviewStatus'
, updateHITReviewStatus_revert
- Specifies how to update the HIT status. Default is False
.
- Setting this to false will only transition a HIT from
Reviewable
toReviewing
- Setting this to true will only transition a HIT from
Reviewing
toReviewable
UpdateHITReviewStatus
, updateHITReviewStatus_hITId
- The ID of the HIT to update.
Request Lenses
updateHITReviewStatus_revert :: Lens' UpdateHITReviewStatus (Maybe Bool) Source #
Specifies how to update the HIT status. Default is False
.
- Setting this to false will only transition a HIT from
Reviewable
toReviewing
- Setting this to true will only transition a HIT from
Reviewing
toReviewable
updateHITReviewStatus_hITId :: Lens' UpdateHITReviewStatus Text Source #
The ID of the HIT to update.
Destructuring the Response
data UpdateHITReviewStatusResponse Source #
See: newUpdateHITReviewStatusResponse
smart constructor.
UpdateHITReviewStatusResponse' | |
|
Instances
newUpdateHITReviewStatusResponse Source #
Create a value of UpdateHITReviewStatusResponse
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:UpdateHITReviewStatusResponse'
, updateHITReviewStatusResponse_httpStatus
- The response's http status code.
Response Lenses
updateHITReviewStatusResponse_httpStatus :: Lens' UpdateHITReviewStatusResponse Int Source #
The response's http status code.