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 |
Synopsis
- data Comment = Comment' {}
- newComment :: Text -> Comment
- comment_status :: Lens' Comment (Maybe CommentStatusType)
- comment_text :: Lens' Comment (Maybe Text)
- comment_visibility :: Lens' Comment (Maybe CommentVisibilityType)
- comment_threadId :: Lens' Comment (Maybe Text)
- comment_contributor :: Lens' Comment (Maybe User)
- comment_createdTimestamp :: Lens' Comment (Maybe UTCTime)
- comment_recipientId :: Lens' Comment (Maybe Text)
- comment_parentId :: Lens' Comment (Maybe Text)
- comment_commentId :: Lens' Comment Text
Documentation
Describes a comment.
See: newComment
smart constructor.
Comment' | |
|
Instances
Create a value of Comment
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:status:Comment'
, comment_status
- The status of the comment.
$sel:text:Comment'
, comment_text
- The text of the comment.
$sel:visibility:Comment'
, comment_visibility
- The visibility of the comment. Options are either PRIVATE, where the
comment is visible only to the comment author and document owner and
co-owners, or PUBLIC, where the comment is visible to document owners,
co-owners, and contributors.
$sel:threadId:Comment'
, comment_threadId
- The ID of the root comment in the thread.
$sel:contributor:Comment'
, comment_contributor
- The details of the user who made the comment.
$sel:createdTimestamp:Comment'
, comment_createdTimestamp
- The time that the comment was created.
$sel:recipientId:Comment'
, comment_recipientId
- If the comment is a reply to another user's comment, this field
contains the user ID of the user being replied to.
$sel:parentId:Comment'
, comment_parentId
- The ID of the parent comment.
$sel:commentId:Comment'
, comment_commentId
- The ID of the comment.
comment_status :: Lens' Comment (Maybe CommentStatusType) Source #
The status of the comment.
comment_visibility :: Lens' Comment (Maybe CommentVisibilityType) Source #
The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
comment_contributor :: Lens' Comment (Maybe User) Source #
The details of the user who made the comment.
comment_createdTimestamp :: Lens' Comment (Maybe UTCTime) Source #
The time that the comment was created.