{-# 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.MediaLive.Types.MultiplexSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaLive.Types.MultiplexSettingsSummary
import Amazonka.MediaLive.Types.MultiplexState
import qualified Amazonka.Prelude as Prelude
data MultiplexSummary = MultiplexSummary'
{
MultiplexSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
MultiplexSummary -> Maybe [Text]
availabilityZones :: Prelude.Maybe [Prelude.Text],
MultiplexSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
MultiplexSummary -> Maybe MultiplexSettingsSummary
multiplexSettings :: Prelude.Maybe MultiplexSettingsSummary,
MultiplexSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
MultiplexSummary -> Maybe Int
pipelinesRunningCount :: Prelude.Maybe Prelude.Int,
MultiplexSummary -> Maybe Int
programCount :: Prelude.Maybe Prelude.Int,
MultiplexSummary -> Maybe MultiplexState
state :: Prelude.Maybe MultiplexState,
MultiplexSummary -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
}
deriving (MultiplexSummary -> MultiplexSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MultiplexSummary -> MultiplexSummary -> Bool
$c/= :: MultiplexSummary -> MultiplexSummary -> Bool
== :: MultiplexSummary -> MultiplexSummary -> Bool
$c== :: MultiplexSummary -> MultiplexSummary -> Bool
Prelude.Eq, ReadPrec [MultiplexSummary]
ReadPrec MultiplexSummary
Int -> ReadS MultiplexSummary
ReadS [MultiplexSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MultiplexSummary]
$creadListPrec :: ReadPrec [MultiplexSummary]
readPrec :: ReadPrec MultiplexSummary
$creadPrec :: ReadPrec MultiplexSummary
readList :: ReadS [MultiplexSummary]
$creadList :: ReadS [MultiplexSummary]
readsPrec :: Int -> ReadS MultiplexSummary
$creadsPrec :: Int -> ReadS MultiplexSummary
Prelude.Read, Int -> MultiplexSummary -> ShowS
[MultiplexSummary] -> ShowS
MultiplexSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MultiplexSummary] -> ShowS
$cshowList :: [MultiplexSummary] -> ShowS
show :: MultiplexSummary -> String
$cshow :: MultiplexSummary -> String
showsPrec :: Int -> MultiplexSummary -> ShowS
$cshowsPrec :: Int -> MultiplexSummary -> ShowS
Prelude.Show, forall x. Rep MultiplexSummary x -> MultiplexSummary
forall x. MultiplexSummary -> Rep MultiplexSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MultiplexSummary x -> MultiplexSummary
$cfrom :: forall x. MultiplexSummary -> Rep MultiplexSummary x
Prelude.Generic)
newMultiplexSummary ::
MultiplexSummary
newMultiplexSummary :: MultiplexSummary
newMultiplexSummary =
MultiplexSummary'
{ $sel:arn:MultiplexSummary' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZones:MultiplexSummary' :: Maybe [Text]
availabilityZones = forall a. Maybe a
Prelude.Nothing,
$sel:id:MultiplexSummary' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:multiplexSettings:MultiplexSummary' :: Maybe MultiplexSettingsSummary
multiplexSettings = forall a. Maybe a
Prelude.Nothing,
$sel:name:MultiplexSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:pipelinesRunningCount:MultiplexSummary' :: Maybe Int
pipelinesRunningCount = forall a. Maybe a
Prelude.Nothing,
$sel:programCount:MultiplexSummary' :: Maybe Int
programCount = forall a. Maybe a
Prelude.Nothing,
$sel:state:MultiplexSummary' :: Maybe MultiplexState
state = forall a. Maybe a
Prelude.Nothing,
$sel:tags:MultiplexSummary' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing
}
multiplexSummary_arn :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Text)
multiplexSummary_arn :: Lens' MultiplexSummary (Maybe Text)
multiplexSummary_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MultiplexSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:MultiplexSummary' :: MultiplexSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: MultiplexSummary
s@MultiplexSummary' {} Maybe Text
a -> MultiplexSummary
s {$sel:arn:MultiplexSummary' :: Maybe Text
arn = Maybe Text
a} :: MultiplexSummary)
multiplexSummary_availabilityZones :: Lens.Lens' MultiplexSummary (Prelude.Maybe [Prelude.Text])
multiplexSummary_availabilityZones :: Lens' MultiplexSummary (Maybe [Text])
multiplexSummary_availabilityZones = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MultiplexSummary' {Maybe [Text]
availabilityZones :: Maybe [Text]
$sel:availabilityZones:MultiplexSummary' :: MultiplexSummary -> Maybe [Text]
availabilityZones} -> Maybe [Text]
availabilityZones) (\s :: MultiplexSummary
s@MultiplexSummary' {} Maybe [Text]
a -> MultiplexSummary
s {$sel:availabilityZones:MultiplexSummary' :: Maybe [Text]
availabilityZones = Maybe [Text]
a} :: MultiplexSummary) 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
multiplexSummary_id :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Text)
multiplexSummary_id :: Lens' MultiplexSummary (Maybe Text)
multiplexSummary_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MultiplexSummary' {Maybe Text
id :: Maybe Text
$sel:id:MultiplexSummary' :: MultiplexSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: MultiplexSummary
s@MultiplexSummary' {} Maybe Text
a -> MultiplexSummary
s {$sel:id:MultiplexSummary' :: Maybe Text
id = Maybe Text
a} :: MultiplexSummary)
multiplexSummary_multiplexSettings :: Lens.Lens' MultiplexSummary (Prelude.Maybe MultiplexSettingsSummary)
multiplexSummary_multiplexSettings :: Lens' MultiplexSummary (Maybe MultiplexSettingsSummary)
multiplexSummary_multiplexSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MultiplexSummary' {Maybe MultiplexSettingsSummary
multiplexSettings :: Maybe MultiplexSettingsSummary
$sel:multiplexSettings:MultiplexSummary' :: MultiplexSummary -> Maybe MultiplexSettingsSummary
multiplexSettings} -> Maybe MultiplexSettingsSummary
multiplexSettings) (\s :: MultiplexSummary
s@MultiplexSummary' {} Maybe MultiplexSettingsSummary
a -> MultiplexSummary
s {$sel:multiplexSettings:MultiplexSummary' :: Maybe MultiplexSettingsSummary
multiplexSettings = Maybe MultiplexSettingsSummary
a} :: MultiplexSummary)
multiplexSummary_name :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Text)
multiplexSummary_name :: Lens' MultiplexSummary (Maybe Text)
multiplexSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MultiplexSummary' {Maybe Text
name :: Maybe Text
$sel:name:MultiplexSummary' :: MultiplexSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: MultiplexSummary
s@MultiplexSummary' {} Maybe Text
a -> MultiplexSummary
s {$sel:name:MultiplexSummary' :: Maybe Text
name = Maybe Text
a} :: MultiplexSummary)
multiplexSummary_pipelinesRunningCount :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Int)
multiplexSummary_pipelinesRunningCount :: Lens' MultiplexSummary (Maybe Int)
multiplexSummary_pipelinesRunningCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MultiplexSummary' {Maybe Int
pipelinesRunningCount :: Maybe Int
$sel:pipelinesRunningCount:MultiplexSummary' :: MultiplexSummary -> Maybe Int
pipelinesRunningCount} -> Maybe Int
pipelinesRunningCount) (\s :: MultiplexSummary
s@MultiplexSummary' {} Maybe Int
a -> MultiplexSummary
s {$sel:pipelinesRunningCount:MultiplexSummary' :: Maybe Int
pipelinesRunningCount = Maybe Int
a} :: MultiplexSummary)
multiplexSummary_programCount :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Int)
multiplexSummary_programCount :: Lens' MultiplexSummary (Maybe Int)
multiplexSummary_programCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MultiplexSummary' {Maybe Int
programCount :: Maybe Int
$sel:programCount:MultiplexSummary' :: MultiplexSummary -> Maybe Int
programCount} -> Maybe Int
programCount) (\s :: MultiplexSummary
s@MultiplexSummary' {} Maybe Int
a -> MultiplexSummary
s {$sel:programCount:MultiplexSummary' :: Maybe Int
programCount = Maybe Int
a} :: MultiplexSummary)
multiplexSummary_state :: Lens.Lens' MultiplexSummary (Prelude.Maybe MultiplexState)
multiplexSummary_state :: Lens' MultiplexSummary (Maybe MultiplexState)
multiplexSummary_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MultiplexSummary' {Maybe MultiplexState
state :: Maybe MultiplexState
$sel:state:MultiplexSummary' :: MultiplexSummary -> Maybe MultiplexState
state} -> Maybe MultiplexState
state) (\s :: MultiplexSummary
s@MultiplexSummary' {} Maybe MultiplexState
a -> MultiplexSummary
s {$sel:state:MultiplexSummary' :: Maybe MultiplexState
state = Maybe MultiplexState
a} :: MultiplexSummary)
multiplexSummary_tags :: Lens.Lens' MultiplexSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
multiplexSummary_tags :: Lens' MultiplexSummary (Maybe (HashMap Text Text))
multiplexSummary_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MultiplexSummary' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:MultiplexSummary' :: MultiplexSummary -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: MultiplexSummary
s@MultiplexSummary' {} Maybe (HashMap Text Text)
a -> MultiplexSummary
s {$sel:tags:MultiplexSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: MultiplexSummary) 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 MultiplexSummary where
parseJSON :: Value -> Parser MultiplexSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"MultiplexSummary"
( \Object
x ->
Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe MultiplexSettingsSummary
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe MultiplexState
-> Maybe (HashMap Text Text)
-> MultiplexSummary
MultiplexSummary'
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
"arn")
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
"availabilityZones"
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
"id")
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
"multiplexSettings")
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
"pipelinesRunningCount")
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
"programCount")
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
"state")
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
"tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable MultiplexSummary where
hashWithSalt :: Int -> MultiplexSummary -> Int
hashWithSalt Int
_salt MultiplexSummary' {Maybe Int
Maybe [Text]
Maybe Text
Maybe (HashMap Text Text)
Maybe MultiplexSettingsSummary
Maybe MultiplexState
tags :: Maybe (HashMap Text Text)
state :: Maybe MultiplexState
programCount :: Maybe Int
pipelinesRunningCount :: Maybe Int
name :: Maybe Text
multiplexSettings :: Maybe MultiplexSettingsSummary
id :: Maybe Text
availabilityZones :: Maybe [Text]
arn :: Maybe Text
$sel:tags:MultiplexSummary' :: MultiplexSummary -> Maybe (HashMap Text Text)
$sel:state:MultiplexSummary' :: MultiplexSummary -> Maybe MultiplexState
$sel:programCount:MultiplexSummary' :: MultiplexSummary -> Maybe Int
$sel:pipelinesRunningCount:MultiplexSummary' :: MultiplexSummary -> Maybe Int
$sel:name:MultiplexSummary' :: MultiplexSummary -> Maybe Text
$sel:multiplexSettings:MultiplexSummary' :: MultiplexSummary -> Maybe MultiplexSettingsSummary
$sel:id:MultiplexSummary' :: MultiplexSummary -> Maybe Text
$sel:availabilityZones:MultiplexSummary' :: MultiplexSummary -> Maybe [Text]
$sel:arn:MultiplexSummary' :: MultiplexSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
availabilityZones
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MultiplexSettingsSummary
multiplexSettings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
pipelinesRunningCount
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
programCount
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe MultiplexState
state
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
instance Prelude.NFData MultiplexSummary where
rnf :: MultiplexSummary -> ()
rnf MultiplexSummary' {Maybe Int
Maybe [Text]
Maybe Text
Maybe (HashMap Text Text)
Maybe MultiplexSettingsSummary
Maybe MultiplexState
tags :: Maybe (HashMap Text Text)
state :: Maybe MultiplexState
programCount :: Maybe Int
pipelinesRunningCount :: Maybe Int
name :: Maybe Text
multiplexSettings :: Maybe MultiplexSettingsSummary
id :: Maybe Text
availabilityZones :: Maybe [Text]
arn :: Maybe Text
$sel:tags:MultiplexSummary' :: MultiplexSummary -> Maybe (HashMap Text Text)
$sel:state:MultiplexSummary' :: MultiplexSummary -> Maybe MultiplexState
$sel:programCount:MultiplexSummary' :: MultiplexSummary -> Maybe Int
$sel:pipelinesRunningCount:MultiplexSummary' :: MultiplexSummary -> Maybe Int
$sel:name:MultiplexSummary' :: MultiplexSummary -> Maybe Text
$sel:multiplexSettings:MultiplexSummary' :: MultiplexSummary -> Maybe MultiplexSettingsSummary
$sel:id:MultiplexSummary' :: MultiplexSummary -> Maybe Text
$sel:availabilityZones:MultiplexSummary' :: MultiplexSummary -> Maybe [Text]
$sel:arn:MultiplexSummary' :: MultiplexSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
availabilityZones
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MultiplexSettingsSummary
multiplexSettings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
pipelinesRunningCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
programCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MultiplexState
state
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags