{-# 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 #-}
module Amazonka.ChimeSDKMessaging.Types.ChannelModeratedByAppInstanceUserSummary where
import Amazonka.ChimeSDKMessaging.Types.ChannelSummary
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
data ChannelModeratedByAppInstanceUserSummary = ChannelModeratedByAppInstanceUserSummary'
{
ChannelModeratedByAppInstanceUserSummary -> Maybe ChannelSummary
channelSummary :: Prelude.Maybe ChannelSummary
}
deriving (ChannelModeratedByAppInstanceUserSummary
-> ChannelModeratedByAppInstanceUserSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChannelModeratedByAppInstanceUserSummary
-> ChannelModeratedByAppInstanceUserSummary -> Bool
$c/= :: ChannelModeratedByAppInstanceUserSummary
-> ChannelModeratedByAppInstanceUserSummary -> Bool
== :: ChannelModeratedByAppInstanceUserSummary
-> ChannelModeratedByAppInstanceUserSummary -> Bool
$c== :: ChannelModeratedByAppInstanceUserSummary
-> ChannelModeratedByAppInstanceUserSummary -> Bool
Prelude.Eq, Int -> ChannelModeratedByAppInstanceUserSummary -> ShowS
[ChannelModeratedByAppInstanceUserSummary] -> ShowS
ChannelModeratedByAppInstanceUserSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChannelModeratedByAppInstanceUserSummary] -> ShowS
$cshowList :: [ChannelModeratedByAppInstanceUserSummary] -> ShowS
show :: ChannelModeratedByAppInstanceUserSummary -> String
$cshow :: ChannelModeratedByAppInstanceUserSummary -> String
showsPrec :: Int -> ChannelModeratedByAppInstanceUserSummary -> ShowS
$cshowsPrec :: Int -> ChannelModeratedByAppInstanceUserSummary -> ShowS
Prelude.Show, forall x.
Rep ChannelModeratedByAppInstanceUserSummary x
-> ChannelModeratedByAppInstanceUserSummary
forall x.
ChannelModeratedByAppInstanceUserSummary
-> Rep ChannelModeratedByAppInstanceUserSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ChannelModeratedByAppInstanceUserSummary x
-> ChannelModeratedByAppInstanceUserSummary
$cfrom :: forall x.
ChannelModeratedByAppInstanceUserSummary
-> Rep ChannelModeratedByAppInstanceUserSummary x
Prelude.Generic)
newChannelModeratedByAppInstanceUserSummary ::
ChannelModeratedByAppInstanceUserSummary
newChannelModeratedByAppInstanceUserSummary :: ChannelModeratedByAppInstanceUserSummary
newChannelModeratedByAppInstanceUserSummary =
ChannelModeratedByAppInstanceUserSummary'
{ $sel:channelSummary:ChannelModeratedByAppInstanceUserSummary' :: Maybe ChannelSummary
channelSummary =
forall a. Maybe a
Prelude.Nothing
}
channelModeratedByAppInstanceUserSummary_channelSummary :: Lens.Lens' ChannelModeratedByAppInstanceUserSummary (Prelude.Maybe ChannelSummary)
channelModeratedByAppInstanceUserSummary_channelSummary :: Lens'
ChannelModeratedByAppInstanceUserSummary (Maybe ChannelSummary)
channelModeratedByAppInstanceUserSummary_channelSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelModeratedByAppInstanceUserSummary' {Maybe ChannelSummary
channelSummary :: Maybe ChannelSummary
$sel:channelSummary:ChannelModeratedByAppInstanceUserSummary' :: ChannelModeratedByAppInstanceUserSummary -> Maybe ChannelSummary
channelSummary} -> Maybe ChannelSummary
channelSummary) (\s :: ChannelModeratedByAppInstanceUserSummary
s@ChannelModeratedByAppInstanceUserSummary' {} Maybe ChannelSummary
a -> ChannelModeratedByAppInstanceUserSummary
s {$sel:channelSummary:ChannelModeratedByAppInstanceUserSummary' :: Maybe ChannelSummary
channelSummary = Maybe ChannelSummary
a} :: ChannelModeratedByAppInstanceUserSummary)
instance
Data.FromJSON
ChannelModeratedByAppInstanceUserSummary
where
parseJSON :: Value -> Parser ChannelModeratedByAppInstanceUserSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ChannelModeratedByAppInstanceUserSummary"
( \Object
x ->
Maybe ChannelSummary -> ChannelModeratedByAppInstanceUserSummary
ChannelModeratedByAppInstanceUserSummary'
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
"ChannelSummary")
)
instance
Prelude.Hashable
ChannelModeratedByAppInstanceUserSummary
where
hashWithSalt :: Int -> ChannelModeratedByAppInstanceUserSummary -> Int
hashWithSalt
Int
_salt
ChannelModeratedByAppInstanceUserSummary' {Maybe ChannelSummary
channelSummary :: Maybe ChannelSummary
$sel:channelSummary:ChannelModeratedByAppInstanceUserSummary' :: ChannelModeratedByAppInstanceUserSummary -> Maybe ChannelSummary
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ChannelSummary
channelSummary
instance
Prelude.NFData
ChannelModeratedByAppInstanceUserSummary
where
rnf :: ChannelModeratedByAppInstanceUserSummary -> ()
rnf ChannelModeratedByAppInstanceUserSummary' {Maybe ChannelSummary
channelSummary :: Maybe ChannelSummary
$sel:channelSummary:ChannelModeratedByAppInstanceUserSummary' :: ChannelModeratedByAppInstanceUserSummary -> Maybe ChannelSummary
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ChannelSummary
channelSummary