{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CodeCommit.Types.Comment
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CodeCommit.Types.Comment where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Returns information about a specific comment.
--
-- /See:/ 'newComment' smart constructor.
data Comment = Comment'
  { -- | The Amazon Resource Name (ARN) of the person who posted the comment.
    Comment -> Maybe Text
authorArn :: Prelude.Maybe Prelude.Text,
    -- | The emoji reactions to a comment, if any, submitted by the user whose
    -- credentials are associated with the call to the API.
    Comment -> Maybe [Text]
callerReactions :: Prelude.Maybe [Prelude.Text],
    -- | A unique, client-generated idempotency token that, when provided in a
    -- request, ensures the request cannot be repeated with a changed
    -- parameter. If a request is received with the same parameters and a token
    -- is included, the request returns information about the initial request
    -- that used that token.
    Comment -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
    -- | The system-generated comment ID.
    Comment -> Maybe Text
commentId :: Prelude.Maybe Prelude.Text,
    -- | The content of the comment.
    Comment -> Maybe Text
content :: Prelude.Maybe Prelude.Text,
    -- | The date and time the comment was created, in timestamp format.
    Comment -> Maybe POSIX
creationDate :: Prelude.Maybe Data.POSIX,
    -- | A Boolean value indicating whether the comment has been deleted.
    Comment -> Maybe Bool
deleted :: Prelude.Maybe Prelude.Bool,
    -- | The ID of the comment for which this comment is a reply, if any.
    Comment -> Maybe Text
inReplyTo :: Prelude.Maybe Prelude.Text,
    -- | The date and time the comment was most recently modified, in timestamp
    -- format.
    Comment -> Maybe POSIX
lastModifiedDate :: Prelude.Maybe Data.POSIX,
    -- | A string to integer map that represents the number of individual users
    -- who have responded to a comment with the specified reactions.
    Comment -> Maybe (HashMap Text Int)
reactionCounts :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Int)
  }
  deriving (Comment -> Comment -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Comment -> Comment -> Bool
$c/= :: Comment -> Comment -> Bool
== :: Comment -> Comment -> Bool
$c== :: Comment -> Comment -> Bool
Prelude.Eq, ReadPrec [Comment]
ReadPrec Comment
Int -> ReadS Comment
ReadS [Comment]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Comment]
$creadListPrec :: ReadPrec [Comment]
readPrec :: ReadPrec Comment
$creadPrec :: ReadPrec Comment
readList :: ReadS [Comment]
$creadList :: ReadS [Comment]
readsPrec :: Int -> ReadS Comment
$creadsPrec :: Int -> ReadS Comment
Prelude.Read, Int -> Comment -> ShowS
[Comment] -> ShowS
Comment -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Comment] -> ShowS
$cshowList :: [Comment] -> ShowS
show :: Comment -> String
$cshow :: Comment -> String
showsPrec :: Int -> Comment -> ShowS
$cshowsPrec :: Int -> Comment -> ShowS
Prelude.Show, forall x. Rep Comment x -> Comment
forall x. Comment -> Rep Comment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Comment x -> Comment
$cfrom :: forall x. Comment -> Rep Comment x
Prelude.Generic)

-- |
-- Create a value of 'Comment' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'authorArn', 'comment_authorArn' - The Amazon Resource Name (ARN) of the person who posted the comment.
--
-- 'callerReactions', 'comment_callerReactions' - The emoji reactions to a comment, if any, submitted by the user whose
-- credentials are associated with the call to the API.
--
-- 'clientRequestToken', 'comment_clientRequestToken' - A unique, client-generated idempotency token that, when provided in a
-- request, ensures the request cannot be repeated with a changed
-- parameter. If a request is received with the same parameters and a token
-- is included, the request returns information about the initial request
-- that used that token.
--
-- 'commentId', 'comment_commentId' - The system-generated comment ID.
--
-- 'content', 'comment_content' - The content of the comment.
--
-- 'creationDate', 'comment_creationDate' - The date and time the comment was created, in timestamp format.
--
-- 'deleted', 'comment_deleted' - A Boolean value indicating whether the comment has been deleted.
--
-- 'inReplyTo', 'comment_inReplyTo' - The ID of the comment for which this comment is a reply, if any.
--
-- 'lastModifiedDate', 'comment_lastModifiedDate' - The date and time the comment was most recently modified, in timestamp
-- format.
--
-- 'reactionCounts', 'comment_reactionCounts' - A string to integer map that represents the number of individual users
-- who have responded to a comment with the specified reactions.
newComment ::
  Comment
newComment :: Comment
newComment =
  Comment'
    { $sel:authorArn:Comment' :: Maybe Text
authorArn = forall a. Maybe a
Prelude.Nothing,
      $sel:callerReactions:Comment' :: Maybe [Text]
callerReactions = forall a. Maybe a
Prelude.Nothing,
      $sel:clientRequestToken:Comment' :: Maybe Text
clientRequestToken = forall a. Maybe a
Prelude.Nothing,
      $sel:commentId:Comment' :: Maybe Text
commentId = forall a. Maybe a
Prelude.Nothing,
      $sel:content:Comment' :: Maybe Text
content = forall a. Maybe a
Prelude.Nothing,
      $sel:creationDate:Comment' :: Maybe POSIX
creationDate = forall a. Maybe a
Prelude.Nothing,
      $sel:deleted:Comment' :: Maybe Bool
deleted = forall a. Maybe a
Prelude.Nothing,
      $sel:inReplyTo:Comment' :: Maybe Text
inReplyTo = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedDate:Comment' :: Maybe POSIX
lastModifiedDate = forall a. Maybe a
Prelude.Nothing,
      $sel:reactionCounts:Comment' :: Maybe (HashMap Text Int)
reactionCounts = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the person who posted the comment.
comment_authorArn :: Lens.Lens' Comment (Prelude.Maybe Prelude.Text)
comment_authorArn :: Lens' Comment (Maybe Text)
comment_authorArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Comment' {Maybe Text
authorArn :: Maybe Text
$sel:authorArn:Comment' :: Comment -> Maybe Text
authorArn} -> Maybe Text
authorArn) (\s :: Comment
s@Comment' {} Maybe Text
a -> Comment
s {$sel:authorArn:Comment' :: Maybe Text
authorArn = Maybe Text
a} :: Comment)

-- | The emoji reactions to a comment, if any, submitted by the user whose
-- credentials are associated with the call to the API.
comment_callerReactions :: Lens.Lens' Comment (Prelude.Maybe [Prelude.Text])
comment_callerReactions :: Lens' Comment (Maybe [Text])
comment_callerReactions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Comment' {Maybe [Text]
callerReactions :: Maybe [Text]
$sel:callerReactions:Comment' :: Comment -> Maybe [Text]
callerReactions} -> Maybe [Text]
callerReactions) (\s :: Comment
s@Comment' {} Maybe [Text]
a -> Comment
s {$sel:callerReactions:Comment' :: Maybe [Text]
callerReactions = Maybe [Text]
a} :: Comment) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A unique, client-generated idempotency token that, when provided in a
-- request, ensures the request cannot be repeated with a changed
-- parameter. If a request is received with the same parameters and a token
-- is included, the request returns information about the initial request
-- that used that token.
comment_clientRequestToken :: Lens.Lens' Comment (Prelude.Maybe Prelude.Text)
comment_clientRequestToken :: Lens' Comment (Maybe Text)
comment_clientRequestToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Comment' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:Comment' :: Comment -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: Comment
s@Comment' {} Maybe Text
a -> Comment
s {$sel:clientRequestToken:Comment' :: Maybe Text
clientRequestToken = Maybe Text
a} :: Comment)

-- | The system-generated comment ID.
comment_commentId :: Lens.Lens' Comment (Prelude.Maybe Prelude.Text)
comment_commentId :: Lens' Comment (Maybe Text)
comment_commentId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Comment' {Maybe Text
commentId :: Maybe Text
$sel:commentId:Comment' :: Comment -> Maybe Text
commentId} -> Maybe Text
commentId) (\s :: Comment
s@Comment' {} Maybe Text
a -> Comment
s {$sel:commentId:Comment' :: Maybe Text
commentId = Maybe Text
a} :: Comment)

-- | The content of the comment.
comment_content :: Lens.Lens' Comment (Prelude.Maybe Prelude.Text)
comment_content :: Lens' Comment (Maybe Text)
comment_content = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Comment' {Maybe Text
content :: Maybe Text
$sel:content:Comment' :: Comment -> Maybe Text
content} -> Maybe Text
content) (\s :: Comment
s@Comment' {} Maybe Text
a -> Comment
s {$sel:content:Comment' :: Maybe Text
content = Maybe Text
a} :: Comment)

-- | The date and time the comment was created, in timestamp format.
comment_creationDate :: Lens.Lens' Comment (Prelude.Maybe Prelude.UTCTime)
comment_creationDate :: Lens' Comment (Maybe UTCTime)
comment_creationDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Comment' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:Comment' :: Comment -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: Comment
s@Comment' {} Maybe POSIX
a -> Comment
s {$sel:creationDate:Comment' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: Comment) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A Boolean value indicating whether the comment has been deleted.
comment_deleted :: Lens.Lens' Comment (Prelude.Maybe Prelude.Bool)
comment_deleted :: Lens' Comment (Maybe Bool)
comment_deleted = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Comment' {Maybe Bool
deleted :: Maybe Bool
$sel:deleted:Comment' :: Comment -> Maybe Bool
deleted} -> Maybe Bool
deleted) (\s :: Comment
s@Comment' {} Maybe Bool
a -> Comment
s {$sel:deleted:Comment' :: Maybe Bool
deleted = Maybe Bool
a} :: Comment)

-- | The ID of the comment for which this comment is a reply, if any.
comment_inReplyTo :: Lens.Lens' Comment (Prelude.Maybe Prelude.Text)
comment_inReplyTo :: Lens' Comment (Maybe Text)
comment_inReplyTo = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Comment' {Maybe Text
inReplyTo :: Maybe Text
$sel:inReplyTo:Comment' :: Comment -> Maybe Text
inReplyTo} -> Maybe Text
inReplyTo) (\s :: Comment
s@Comment' {} Maybe Text
a -> Comment
s {$sel:inReplyTo:Comment' :: Maybe Text
inReplyTo = Maybe Text
a} :: Comment)

-- | The date and time the comment was most recently modified, in timestamp
-- format.
comment_lastModifiedDate :: Lens.Lens' Comment (Prelude.Maybe Prelude.UTCTime)
comment_lastModifiedDate :: Lens' Comment (Maybe UTCTime)
comment_lastModifiedDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Comment' {Maybe POSIX
lastModifiedDate :: Maybe POSIX
$sel:lastModifiedDate:Comment' :: Comment -> Maybe POSIX
lastModifiedDate} -> Maybe POSIX
lastModifiedDate) (\s :: Comment
s@Comment' {} Maybe POSIX
a -> Comment
s {$sel:lastModifiedDate:Comment' :: Maybe POSIX
lastModifiedDate = Maybe POSIX
a} :: Comment) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A string to integer map that represents the number of individual users
-- who have responded to a comment with the specified reactions.
comment_reactionCounts :: Lens.Lens' Comment (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Int))
comment_reactionCounts :: Lens' Comment (Maybe (HashMap Text Int))
comment_reactionCounts = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Comment' {Maybe (HashMap Text Int)
reactionCounts :: Maybe (HashMap Text Int)
$sel:reactionCounts:Comment' :: Comment -> Maybe (HashMap Text Int)
reactionCounts} -> Maybe (HashMap Text Int)
reactionCounts) (\s :: Comment
s@Comment' {} Maybe (HashMap Text Int)
a -> Comment
s {$sel:reactionCounts:Comment' :: Maybe (HashMap Text Int)
reactionCounts = Maybe (HashMap Text Int)
a} :: Comment) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Data.FromJSON Comment where
  parseJSON :: Value -> Parser Comment
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Comment"
      ( \Object
x ->
          Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text Int)
-> Comment
Comment'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"authorArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"callerReactions"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"clientRequestToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"commentId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"content")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"creationDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"deleted")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"inReplyTo")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastModifiedDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"reactionCounts"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable Comment where
  hashWithSalt :: Int -> Comment -> Int
hashWithSalt Int
_salt Comment' {Maybe Bool
Maybe [Text]
Maybe Text
Maybe (HashMap Text Int)
Maybe POSIX
reactionCounts :: Maybe (HashMap Text Int)
lastModifiedDate :: Maybe POSIX
inReplyTo :: Maybe Text
deleted :: Maybe Bool
creationDate :: Maybe POSIX
content :: Maybe Text
commentId :: Maybe Text
clientRequestToken :: Maybe Text
callerReactions :: Maybe [Text]
authorArn :: Maybe Text
$sel:reactionCounts:Comment' :: Comment -> Maybe (HashMap Text Int)
$sel:lastModifiedDate:Comment' :: Comment -> Maybe POSIX
$sel:inReplyTo:Comment' :: Comment -> Maybe Text
$sel:deleted:Comment' :: Comment -> Maybe Bool
$sel:creationDate:Comment' :: Comment -> Maybe POSIX
$sel:content:Comment' :: Comment -> Maybe Text
$sel:commentId:Comment' :: Comment -> Maybe Text
$sel:clientRequestToken:Comment' :: Comment -> Maybe Text
$sel:callerReactions:Comment' :: Comment -> Maybe [Text]
$sel:authorArn:Comment' :: Comment -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
authorArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
callerReactions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
clientRequestToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
commentId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
content
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
deleted
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
inReplyTo
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Int)
reactionCounts

instance Prelude.NFData Comment where
  rnf :: Comment -> ()
rnf Comment' {Maybe Bool
Maybe [Text]
Maybe Text
Maybe (HashMap Text Int)
Maybe POSIX
reactionCounts :: Maybe (HashMap Text Int)
lastModifiedDate :: Maybe POSIX
inReplyTo :: Maybe Text
deleted :: Maybe Bool
creationDate :: Maybe POSIX
content :: Maybe Text
commentId :: Maybe Text
clientRequestToken :: Maybe Text
callerReactions :: Maybe [Text]
authorArn :: Maybe Text
$sel:reactionCounts:Comment' :: Comment -> Maybe (HashMap Text Int)
$sel:lastModifiedDate:Comment' :: Comment -> Maybe POSIX
$sel:inReplyTo:Comment' :: Comment -> Maybe Text
$sel:deleted:Comment' :: Comment -> Maybe Bool
$sel:creationDate:Comment' :: Comment -> Maybe POSIX
$sel:content:Comment' :: Comment -> Maybe Text
$sel:commentId:Comment' :: Comment -> Maybe Text
$sel:clientRequestToken:Comment' :: Comment -> Maybe Text
$sel:callerReactions:Comment' :: Comment -> Maybe [Text]
$sel:authorArn:Comment' :: Comment -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
authorArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
callerReactions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
clientRequestToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
commentId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
content
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
deleted
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
inReplyTo
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Int)
reactionCounts