{-# 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.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ChannelAssociatedWithFlowSummary = ChannelAssociatedWithFlowSummary'
{
ChannelAssociatedWithFlowSummary -> Maybe ChannelMode
mode :: Prelude.Maybe ChannelMode,
ChannelAssociatedWithFlowSummary -> Maybe Text
channelArn :: Prelude.Maybe Prelude.Text,
ChannelAssociatedWithFlowSummary -> Maybe ChannelPrivacy
privacy :: Prelude.Maybe ChannelPrivacy,
ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text)
metadata :: Prelude.Maybe (Core.Sensitive Prelude.Text)
}
deriving (ChannelAssociatedWithFlowSummary
-> ChannelAssociatedWithFlowSummary -> Bool
(ChannelAssociatedWithFlowSummary
-> ChannelAssociatedWithFlowSummary -> Bool)
-> (ChannelAssociatedWithFlowSummary
-> ChannelAssociatedWithFlowSummary -> Bool)
-> Eq ChannelAssociatedWithFlowSummary
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
(Int -> ChannelAssociatedWithFlowSummary -> ShowS)
-> (ChannelAssociatedWithFlowSummary -> String)
-> ([ChannelAssociatedWithFlowSummary] -> ShowS)
-> Show ChannelAssociatedWithFlowSummary
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.
ChannelAssociatedWithFlowSummary
-> Rep ChannelAssociatedWithFlowSummary x)
-> (forall x.
Rep ChannelAssociatedWithFlowSummary x
-> ChannelAssociatedWithFlowSummary)
-> Generic ChannelAssociatedWithFlowSummary
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' :: Maybe ChannelMode
-> Maybe Text
-> Maybe ChannelPrivacy
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> ChannelAssociatedWithFlowSummary
ChannelAssociatedWithFlowSummary'
{ $sel:mode:ChannelAssociatedWithFlowSummary' :: Maybe ChannelMode
mode =
Maybe ChannelMode
forall a. Maybe a
Prelude.Nothing,
$sel:channelArn:ChannelAssociatedWithFlowSummary' :: Maybe Text
channelArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:privacy:ChannelAssociatedWithFlowSummary' :: Maybe ChannelPrivacy
privacy = Maybe ChannelPrivacy
forall a. Maybe a
Prelude.Nothing,
$sel:name:ChannelAssociatedWithFlowSummary' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:metadata:ChannelAssociatedWithFlowSummary' :: Maybe (Sensitive Text)
metadata = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing
}
channelAssociatedWithFlowSummary_mode :: Lens.Lens' ChannelAssociatedWithFlowSummary (Prelude.Maybe ChannelMode)
channelAssociatedWithFlowSummary_mode :: (Maybe ChannelMode -> f (Maybe ChannelMode))
-> ChannelAssociatedWithFlowSummary
-> f ChannelAssociatedWithFlowSummary
channelAssociatedWithFlowSummary_mode = (ChannelAssociatedWithFlowSummary -> Maybe ChannelMode)
-> (ChannelAssociatedWithFlowSummary
-> Maybe ChannelMode -> ChannelAssociatedWithFlowSummary)
-> Lens
ChannelAssociatedWithFlowSummary
ChannelAssociatedWithFlowSummary
(Maybe ChannelMode)
(Maybe ChannelMode)
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_channelArn :: Lens.Lens' ChannelAssociatedWithFlowSummary (Prelude.Maybe Prelude.Text)
channelAssociatedWithFlowSummary_channelArn :: (Maybe Text -> f (Maybe Text))
-> ChannelAssociatedWithFlowSummary
-> f ChannelAssociatedWithFlowSummary
channelAssociatedWithFlowSummary_channelArn = (ChannelAssociatedWithFlowSummary -> Maybe Text)
-> (ChannelAssociatedWithFlowSummary
-> Maybe Text -> ChannelAssociatedWithFlowSummary)
-> Lens
ChannelAssociatedWithFlowSummary
ChannelAssociatedWithFlowSummary
(Maybe Text)
(Maybe Text)
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_privacy :: Lens.Lens' ChannelAssociatedWithFlowSummary (Prelude.Maybe ChannelPrivacy)
channelAssociatedWithFlowSummary_privacy :: (Maybe ChannelPrivacy -> f (Maybe ChannelPrivacy))
-> ChannelAssociatedWithFlowSummary
-> f ChannelAssociatedWithFlowSummary
channelAssociatedWithFlowSummary_privacy = (ChannelAssociatedWithFlowSummary -> Maybe ChannelPrivacy)
-> (ChannelAssociatedWithFlowSummary
-> Maybe ChannelPrivacy -> ChannelAssociatedWithFlowSummary)
-> Lens
ChannelAssociatedWithFlowSummary
ChannelAssociatedWithFlowSummary
(Maybe ChannelPrivacy)
(Maybe ChannelPrivacy)
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)
channelAssociatedWithFlowSummary_name :: Lens.Lens' ChannelAssociatedWithFlowSummary (Prelude.Maybe Prelude.Text)
channelAssociatedWithFlowSummary_name :: (Maybe Text -> f (Maybe Text))
-> ChannelAssociatedWithFlowSummary
-> f ChannelAssociatedWithFlowSummary
channelAssociatedWithFlowSummary_name = (ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text))
-> (ChannelAssociatedWithFlowSummary
-> Maybe (Sensitive Text) -> ChannelAssociatedWithFlowSummary)
-> Lens
ChannelAssociatedWithFlowSummary
ChannelAssociatedWithFlowSummary
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
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) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ChannelAssociatedWithFlowSummary
-> f ChannelAssociatedWithFlowSummary)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ChannelAssociatedWithFlowSummary
-> f ChannelAssociatedWithFlowSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
channelAssociatedWithFlowSummary_metadata :: Lens.Lens' ChannelAssociatedWithFlowSummary (Prelude.Maybe Prelude.Text)
channelAssociatedWithFlowSummary_metadata :: (Maybe Text -> f (Maybe Text))
-> ChannelAssociatedWithFlowSummary
-> f ChannelAssociatedWithFlowSummary
channelAssociatedWithFlowSummary_metadata = (ChannelAssociatedWithFlowSummary -> Maybe (Sensitive Text))
-> (ChannelAssociatedWithFlowSummary
-> Maybe (Sensitive Text) -> ChannelAssociatedWithFlowSummary)
-> Lens
ChannelAssociatedWithFlowSummary
ChannelAssociatedWithFlowSummary
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
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) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ChannelAssociatedWithFlowSummary
-> f ChannelAssociatedWithFlowSummary)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ChannelAssociatedWithFlowSummary
-> f ChannelAssociatedWithFlowSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 AnIso (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
instance
Core.FromJSON
ChannelAssociatedWithFlowSummary
where
parseJSON :: Value -> Parser ChannelAssociatedWithFlowSummary
parseJSON =
String
-> (Object -> Parser ChannelAssociatedWithFlowSummary)
-> Value
-> Parser ChannelAssociatedWithFlowSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ChannelAssociatedWithFlowSummary"
( \Object
x ->
Maybe ChannelMode
-> Maybe Text
-> Maybe ChannelPrivacy
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> ChannelAssociatedWithFlowSummary
ChannelAssociatedWithFlowSummary'
(Maybe ChannelMode
-> Maybe Text
-> Maybe ChannelPrivacy
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> ChannelAssociatedWithFlowSummary)
-> Parser (Maybe ChannelMode)
-> Parser
(Maybe Text
-> Maybe ChannelPrivacy
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> ChannelAssociatedWithFlowSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ChannelMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Mode")
Parser
(Maybe Text
-> Maybe ChannelPrivacy
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> ChannelAssociatedWithFlowSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe ChannelPrivacy
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> ChannelAssociatedWithFlowSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ChannelArn")
Parser
(Maybe ChannelPrivacy
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> ChannelAssociatedWithFlowSummary)
-> Parser (Maybe ChannelPrivacy)
-> Parser
(Maybe (Sensitive Text)
-> Maybe (Sensitive Text) -> ChannelAssociatedWithFlowSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ChannelPrivacy)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Privacy")
Parser
(Maybe (Sensitive Text)
-> Maybe (Sensitive Text) -> ChannelAssociatedWithFlowSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe (Sensitive Text) -> ChannelAssociatedWithFlowSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Name")
Parser (Maybe (Sensitive Text) -> ChannelAssociatedWithFlowSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser ChannelAssociatedWithFlowSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Metadata")
)
instance
Prelude.Hashable
ChannelAssociatedWithFlowSummary
instance
Prelude.NFData
ChannelAssociatedWithFlowSummary