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 |
Replaces the contents of a comment.
Synopsis
- data UpdateComment = UpdateComment' {}
- newUpdateComment :: Text -> Text -> UpdateComment
- updateComment_commentId :: Lens' UpdateComment Text
- updateComment_content :: Lens' UpdateComment Text
- data UpdateCommentResponse = UpdateCommentResponse' {
- comment :: Maybe Comment
- httpStatus :: Int
- newUpdateCommentResponse :: Int -> UpdateCommentResponse
- updateCommentResponse_comment :: Lens' UpdateCommentResponse (Maybe Comment)
- updateCommentResponse_httpStatus :: Lens' UpdateCommentResponse Int
Creating a Request
data UpdateComment Source #
See: newUpdateComment
smart constructor.
Instances
Create a value of UpdateComment
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:commentId:UpdateComment'
, updateComment_commentId
- The system-generated ID of the comment you want to update. To get this
ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
$sel:content:UpdateComment'
, updateComment_content
- The updated content to replace the existing content of the comment.
Request Lenses
updateComment_commentId :: Lens' UpdateComment Text Source #
The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
updateComment_content :: Lens' UpdateComment Text Source #
The updated content to replace the existing content of the comment.
Destructuring the Response
data UpdateCommentResponse Source #
See: newUpdateCommentResponse
smart constructor.
UpdateCommentResponse' | |
|
Instances
newUpdateCommentResponse Source #
Create a value of UpdateCommentResponse
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:comment:UpdateCommentResponse'
, updateCommentResponse_comment
- Information about the updated comment.
$sel:httpStatus:UpdateCommentResponse'
, updateCommentResponse_httpStatus
- The response's http status code.
Response Lenses
updateCommentResponse_comment :: Lens' UpdateCommentResponse (Maybe Comment) Source #
Information about the updated comment.
updateCommentResponse_httpStatus :: Lens' UpdateCommentResponse Int Source #
The response's http status code.