{-# 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.Chime.Types.ChannelModeratedByAppInstanceUserSummary where
import Amazonka.Chime.Types.ChannelSummary
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ChannelModeratedByAppInstanceUserSummary = ChannelModeratedByAppInstanceUserSummary'
{
ChannelModeratedByAppInstanceUserSummary -> Maybe ChannelSummary
channelSummary :: Prelude.Maybe ChannelSummary
}
deriving (ChannelModeratedByAppInstanceUserSummary
-> ChannelModeratedByAppInstanceUserSummary -> Bool
(ChannelModeratedByAppInstanceUserSummary
-> ChannelModeratedByAppInstanceUserSummary -> Bool)
-> (ChannelModeratedByAppInstanceUserSummary
-> ChannelModeratedByAppInstanceUserSummary -> Bool)
-> Eq ChannelModeratedByAppInstanceUserSummary
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
(Int -> ChannelModeratedByAppInstanceUserSummary -> ShowS)
-> (ChannelModeratedByAppInstanceUserSummary -> String)
-> ([ChannelModeratedByAppInstanceUserSummary] -> ShowS)
-> Show ChannelModeratedByAppInstanceUserSummary
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.
ChannelModeratedByAppInstanceUserSummary
-> Rep ChannelModeratedByAppInstanceUserSummary x)
-> (forall x.
Rep ChannelModeratedByAppInstanceUserSummary x
-> ChannelModeratedByAppInstanceUserSummary)
-> Generic ChannelModeratedByAppInstanceUserSummary
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' :: Maybe ChannelSummary -> ChannelModeratedByAppInstanceUserSummary
ChannelModeratedByAppInstanceUserSummary'
{ $sel:channelSummary:ChannelModeratedByAppInstanceUserSummary' :: Maybe ChannelSummary
channelSummary =
Maybe ChannelSummary
forall a. Maybe a
Prelude.Nothing
}
channelModeratedByAppInstanceUserSummary_channelSummary :: Lens.Lens' ChannelModeratedByAppInstanceUserSummary (Prelude.Maybe ChannelSummary)
channelModeratedByAppInstanceUserSummary_channelSummary :: (Maybe ChannelSummary -> f (Maybe ChannelSummary))
-> ChannelModeratedByAppInstanceUserSummary
-> f ChannelModeratedByAppInstanceUserSummary
channelModeratedByAppInstanceUserSummary_channelSummary = (ChannelModeratedByAppInstanceUserSummary -> Maybe ChannelSummary)
-> (ChannelModeratedByAppInstanceUserSummary
-> Maybe ChannelSummary
-> ChannelModeratedByAppInstanceUserSummary)
-> Lens
ChannelModeratedByAppInstanceUserSummary
ChannelModeratedByAppInstanceUserSummary
(Maybe ChannelSummary)
(Maybe 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
Core.FromJSON
ChannelModeratedByAppInstanceUserSummary
where
parseJSON :: Value -> Parser ChannelModeratedByAppInstanceUserSummary
parseJSON =
String
-> (Object -> Parser ChannelModeratedByAppInstanceUserSummary)
-> Value
-> Parser ChannelModeratedByAppInstanceUserSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ChannelModeratedByAppInstanceUserSummary"
( \Object
x ->
Maybe ChannelSummary -> ChannelModeratedByAppInstanceUserSummary
ChannelModeratedByAppInstanceUserSummary'
(Maybe ChannelSummary -> ChannelModeratedByAppInstanceUserSummary)
-> Parser (Maybe ChannelSummary)
-> Parser ChannelModeratedByAppInstanceUserSummary
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ChannelSummary)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ChannelSummary")
)
instance
Prelude.Hashable
ChannelModeratedByAppInstanceUserSummary
instance
Prelude.NFData
ChannelModeratedByAppInstanceUserSummary