{-# 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.ChannelAssociatedWithFlowSummary where
import Amazonka.ChimeSDKMessaging.Types.ChannelMode
import Amazonka.ChimeSDKMessaging.Types.ChannelPrivacy
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 ChannelAssociatedWithFlowSummary = ChannelAssociatedWithFlowSummary'
{
ChannelAssociatedWithFlowSummary -> Maybe Text
channelArn :: Prelude.Maybe Prelude.Text,
ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text)
metadata :: Prelude.Maybe (Data.Sensitive Prelude.Text),
ChannelAssociatedWithFlowSummary -> Maybe ChannelMode
mode :: Prelude.Maybe ChannelMode,
ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Data.Sensitive Prelude.Text),
ChannelAssociatedWithFlowSummary -> Maybe ChannelPrivacy
privacy :: Prelude.Maybe ChannelPrivacy
}
deriving (ChannelAssociatedWithFlowSummary
-> ChannelAssociatedWithFlowSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChannelAssociatedWithFlowSummary
-> ChannelAssociatedWithFlowSummary -> Bool
$c/= :: ChannelAssociatedWithFlowSummary
-> ChannelAssociatedWithFlowSummary -> Bool
== :: ChannelAssociatedWithFlowSummary
-> ChannelAssociatedWithFlowSummary -> Bool
$c== :: ChannelAssociatedWithFlowSummary
-> ChannelAssociatedWithFlowSummary -> Bool
Prelude.Eq, Int -> ChannelAssociatedWithFlowSummary -> ShowS
[ChannelAssociatedWithFlowSummary] -> ShowS
ChannelAssociatedWithFlowSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChannelAssociatedWithFlowSummary] -> ShowS
$cshowList :: [ChannelAssociatedWithFlowSummary] -> ShowS
show :: ChannelAssociatedWithFlowSummary -> String
$cshow :: ChannelAssociatedWithFlowSummary -> String
showsPrec :: Int -> ChannelAssociatedWithFlowSummary -> ShowS
$cshowsPrec :: Int -> ChannelAssociatedWithFlowSummary -> ShowS
Prelude.Show, forall x.
Rep ChannelAssociatedWithFlowSummary x
-> ChannelAssociatedWithFlowSummary
forall x.
ChannelAssociatedWithFlowSummary
-> Rep ChannelAssociatedWithFlowSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ChannelAssociatedWithFlowSummary x
-> ChannelAssociatedWithFlowSummary
$cfrom :: forall x.
ChannelAssociatedWithFlowSummary
-> Rep ChannelAssociatedWithFlowSummary x
Prelude.Generic)
newChannelAssociatedWithFlowSummary ::
ChannelAssociatedWithFlowSummary
newChannelAssociatedWithFlowSummary :: ChannelAssociatedWithFlowSummary
newChannelAssociatedWithFlowSummary =
ChannelAssociatedWithFlowSummary'
{ $sel:channelArn:ChannelAssociatedWithFlowSummary' :: Maybe Text
channelArn =
forall a. Maybe a
Prelude.Nothing,
$sel:metadata:ChannelAssociatedWithFlowSummary' :: Maybe (Sensitive Text)
metadata = forall a. Maybe a
Prelude.Nothing,
$sel:mode:ChannelAssociatedWithFlowSummary' :: Maybe ChannelMode
mode = forall a. Maybe a
Prelude.Nothing,
$sel:name:ChannelAssociatedWithFlowSummary' :: Maybe (Sensitive Text)
name = forall a. Maybe a
Prelude.Nothing,
$sel:privacy:ChannelAssociatedWithFlowSummary' :: Maybe ChannelPrivacy
privacy = forall a. Maybe a
Prelude.Nothing
}
channelAssociatedWithFlowSummary_channelArn :: Lens.Lens' ChannelAssociatedWithFlowSummary (Prelude.Maybe Prelude.Text)
channelAssociatedWithFlowSummary_channelArn :: Lens' ChannelAssociatedWithFlowSummary (Maybe Text)
channelAssociatedWithFlowSummary_channelArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelAssociatedWithFlowSummary' {Maybe Text
channelArn :: Maybe Text
$sel:channelArn:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe Text
channelArn} -> Maybe Text
channelArn) (\s :: ChannelAssociatedWithFlowSummary
s@ChannelAssociatedWithFlowSummary' {} Maybe Text
a -> ChannelAssociatedWithFlowSummary
s {$sel:channelArn:ChannelAssociatedWithFlowSummary' :: Maybe Text
channelArn = Maybe Text
a} :: ChannelAssociatedWithFlowSummary)
channelAssociatedWithFlowSummary_metadata :: Lens.Lens' ChannelAssociatedWithFlowSummary (Prelude.Maybe Prelude.Text)
channelAssociatedWithFlowSummary_metadata :: Lens' ChannelAssociatedWithFlowSummary (Maybe Text)
channelAssociatedWithFlowSummary_metadata = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelAssociatedWithFlowSummary' {Maybe (Sensitive Text)
metadata :: Maybe (Sensitive Text)
$sel:metadata:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text)
metadata} -> Maybe (Sensitive Text)
metadata) (\s :: ChannelAssociatedWithFlowSummary
s@ChannelAssociatedWithFlowSummary' {} Maybe (Sensitive Text)
a -> ChannelAssociatedWithFlowSummary
s {$sel:metadata:ChannelAssociatedWithFlowSummary' :: Maybe (Sensitive Text)
metadata = Maybe (Sensitive Text)
a} :: ChannelAssociatedWithFlowSummary) 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. Iso' (Sensitive a) a
Data._Sensitive
channelAssociatedWithFlowSummary_mode :: Lens.Lens' ChannelAssociatedWithFlowSummary (Prelude.Maybe ChannelMode)
channelAssociatedWithFlowSummary_mode :: Lens' ChannelAssociatedWithFlowSummary (Maybe ChannelMode)
channelAssociatedWithFlowSummary_mode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelAssociatedWithFlowSummary' {Maybe ChannelMode
mode :: Maybe ChannelMode
$sel:mode:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe ChannelMode
mode} -> Maybe ChannelMode
mode) (\s :: ChannelAssociatedWithFlowSummary
s@ChannelAssociatedWithFlowSummary' {} Maybe ChannelMode
a -> ChannelAssociatedWithFlowSummary
s {$sel:mode:ChannelAssociatedWithFlowSummary' :: Maybe ChannelMode
mode = Maybe ChannelMode
a} :: ChannelAssociatedWithFlowSummary)
channelAssociatedWithFlowSummary_name :: Lens.Lens' ChannelAssociatedWithFlowSummary (Prelude.Maybe Prelude.Text)
channelAssociatedWithFlowSummary_name :: Lens' ChannelAssociatedWithFlowSummary (Maybe Text)
channelAssociatedWithFlowSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelAssociatedWithFlowSummary' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: ChannelAssociatedWithFlowSummary
s@ChannelAssociatedWithFlowSummary' {} Maybe (Sensitive Text)
a -> ChannelAssociatedWithFlowSummary
s {$sel:name:ChannelAssociatedWithFlowSummary' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: ChannelAssociatedWithFlowSummary) 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. Iso' (Sensitive a) a
Data._Sensitive
channelAssociatedWithFlowSummary_privacy :: Lens.Lens' ChannelAssociatedWithFlowSummary (Prelude.Maybe ChannelPrivacy)
channelAssociatedWithFlowSummary_privacy :: Lens' ChannelAssociatedWithFlowSummary (Maybe ChannelPrivacy)
channelAssociatedWithFlowSummary_privacy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ChannelAssociatedWithFlowSummary' {Maybe ChannelPrivacy
privacy :: Maybe ChannelPrivacy
$sel:privacy:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe ChannelPrivacy
privacy} -> Maybe ChannelPrivacy
privacy) (\s :: ChannelAssociatedWithFlowSummary
s@ChannelAssociatedWithFlowSummary' {} Maybe ChannelPrivacy
a -> ChannelAssociatedWithFlowSummary
s {$sel:privacy:ChannelAssociatedWithFlowSummary' :: Maybe ChannelPrivacy
privacy = Maybe ChannelPrivacy
a} :: ChannelAssociatedWithFlowSummary)
instance
Data.FromJSON
ChannelAssociatedWithFlowSummary
where
parseJSON :: Value -> Parser ChannelAssociatedWithFlowSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ChannelAssociatedWithFlowSummary"
( \Object
x ->
Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ChannelMode
-> Maybe (Sensitive Text)
-> Maybe ChannelPrivacy
-> ChannelAssociatedWithFlowSummary
ChannelAssociatedWithFlowSummary'
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
"ChannelArn")
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
"Metadata")
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
"Mode")
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
"Name")
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
"Privacy")
)
instance
Prelude.Hashable
ChannelAssociatedWithFlowSummary
where
hashWithSalt :: Int -> ChannelAssociatedWithFlowSummary -> Int
hashWithSalt
Int
_salt
ChannelAssociatedWithFlowSummary' {Maybe Text
Maybe (Sensitive Text)
Maybe ChannelMode
Maybe ChannelPrivacy
privacy :: Maybe ChannelPrivacy
name :: Maybe (Sensitive Text)
mode :: Maybe ChannelMode
metadata :: Maybe (Sensitive Text)
channelArn :: Maybe Text
$sel:privacy:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe ChannelPrivacy
$sel:name:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text)
$sel:mode:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe ChannelMode
$sel:metadata:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text)
$sel:channelArn:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
channelArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
metadata
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ChannelMode
mode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ChannelPrivacy
privacy
instance
Prelude.NFData
ChannelAssociatedWithFlowSummary
where
rnf :: ChannelAssociatedWithFlowSummary -> ()
rnf ChannelAssociatedWithFlowSummary' {Maybe Text
Maybe (Sensitive Text)
Maybe ChannelMode
Maybe ChannelPrivacy
privacy :: Maybe ChannelPrivacy
name :: Maybe (Sensitive Text)
mode :: Maybe ChannelMode
metadata :: Maybe (Sensitive Text)
channelArn :: Maybe Text
$sel:privacy:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe ChannelPrivacy
$sel:name:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text)
$sel:mode:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe ChannelMode
$sel:metadata:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text)
$sel:channelArn:ChannelAssociatedWithFlowSummary' :: ChannelAssociatedWithFlowSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
channelArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
metadata
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ChannelMode
mode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ChannelPrivacy
privacy