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 |
Update the answer to a specific question in a workload review.
Synopsis
- data UpdateAnswer = UpdateAnswer' {
- isApplicable :: Maybe Bool
- selectedChoices :: Maybe [Text]
- reason :: Maybe AnswerReason
- notes :: Maybe Text
- choiceUpdates :: Maybe (HashMap Text ChoiceUpdate)
- workloadId :: Text
- lensAlias :: Text
- questionId :: Text
- newUpdateAnswer :: Text -> Text -> Text -> UpdateAnswer
- updateAnswer_isApplicable :: Lens' UpdateAnswer (Maybe Bool)
- updateAnswer_selectedChoices :: Lens' UpdateAnswer (Maybe [Text])
- updateAnswer_reason :: Lens' UpdateAnswer (Maybe AnswerReason)
- updateAnswer_notes :: Lens' UpdateAnswer (Maybe Text)
- updateAnswer_choiceUpdates :: Lens' UpdateAnswer (Maybe (HashMap Text ChoiceUpdate))
- updateAnswer_workloadId :: Lens' UpdateAnswer Text
- updateAnswer_lensAlias :: Lens' UpdateAnswer Text
- updateAnswer_questionId :: Lens' UpdateAnswer Text
- data UpdateAnswerResponse = UpdateAnswerResponse' {}
- newUpdateAnswerResponse :: Int -> UpdateAnswerResponse
- updateAnswerResponse_lensAlias :: Lens' UpdateAnswerResponse (Maybe Text)
- updateAnswerResponse_answer :: Lens' UpdateAnswerResponse (Maybe Answer)
- updateAnswerResponse_workloadId :: Lens' UpdateAnswerResponse (Maybe Text)
- updateAnswerResponse_httpStatus :: Lens' UpdateAnswerResponse Int
Creating a Request
data UpdateAnswer Source #
Input to update answer.
See: newUpdateAnswer
smart constructor.
UpdateAnswer' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> UpdateAnswer |
Create a value of UpdateAnswer
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:isApplicable:UpdateAnswer'
, updateAnswer_isApplicable
- Undocumented member.
$sel:selectedChoices:UpdateAnswer'
, updateAnswer_selectedChoices
- Undocumented member.
$sel:reason:UpdateAnswer'
, updateAnswer_reason
- The reason why a question is not applicable to your workload.
$sel:notes:UpdateAnswer'
, updateAnswer_notes
- Undocumented member.
$sel:choiceUpdates:UpdateAnswer'
, updateAnswer_choiceUpdates
- A list of choices to update on a question in your workload. The String
key corresponds to the choice ID to be updated.
$sel:workloadId:UpdateAnswer'
, updateAnswer_workloadId
- Undocumented member.
$sel:lensAlias:UpdateAnswer'
, updateAnswer_lensAlias
- Undocumented member.
$sel:questionId:UpdateAnswer'
, updateAnswer_questionId
- Undocumented member.
Request Lenses
updateAnswer_isApplicable :: Lens' UpdateAnswer (Maybe Bool) Source #
Undocumented member.
updateAnswer_selectedChoices :: Lens' UpdateAnswer (Maybe [Text]) Source #
Undocumented member.
updateAnswer_reason :: Lens' UpdateAnswer (Maybe AnswerReason) Source #
The reason why a question is not applicable to your workload.
updateAnswer_notes :: Lens' UpdateAnswer (Maybe Text) Source #
Undocumented member.
updateAnswer_choiceUpdates :: Lens' UpdateAnswer (Maybe (HashMap Text ChoiceUpdate)) Source #
A list of choices to update on a question in your workload. The String key corresponds to the choice ID to be updated.
updateAnswer_workloadId :: Lens' UpdateAnswer Text Source #
Undocumented member.
updateAnswer_lensAlias :: Lens' UpdateAnswer Text Source #
Undocumented member.
updateAnswer_questionId :: Lens' UpdateAnswer Text Source #
Undocumented member.
Destructuring the Response
data UpdateAnswerResponse Source #
Output of a update answer call.
See: newUpdateAnswerResponse
smart constructor.
Instances
newUpdateAnswerResponse Source #
Create a value of UpdateAnswerResponse
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:lensAlias:UpdateAnswer'
, updateAnswerResponse_lensAlias
- Undocumented member.
$sel:answer:UpdateAnswerResponse'
, updateAnswerResponse_answer
- Undocumented member.
$sel:workloadId:UpdateAnswer'
, updateAnswerResponse_workloadId
- Undocumented member.
$sel:httpStatus:UpdateAnswerResponse'
, updateAnswerResponse_httpStatus
- The response's http status code.
Response Lenses
updateAnswerResponse_lensAlias :: Lens' UpdateAnswerResponse (Maybe Text) Source #
Undocumented member.
updateAnswerResponse_answer :: Lens' UpdateAnswerResponse (Maybe Answer) Source #
Undocumented member.
updateAnswerResponse_workloadId :: Lens' UpdateAnswerResponse (Maybe Text) Source #
Undocumented member.
updateAnswerResponse_httpStatus :: Lens' UpdateAnswerResponse Int Source #
The response's http status code.