{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.MultiplexSummary
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.MultiplexSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types.MultiplexSettingsSummary
import Amazonka.MediaLive.Types.MultiplexState
import qualified Amazonka.Prelude as Prelude

-- | Placeholder documentation for MultiplexSummary
--
-- /See:/ 'newMultiplexSummary' smart constructor.
data MultiplexSummary = MultiplexSummary'
  { -- | The current state of the multiplex.
    MultiplexSummary -> Maybe MultiplexState
state :: Prelude.Maybe MultiplexState,
    -- | The unique arn of the multiplex.
    MultiplexSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The number of currently healthy pipelines.
    MultiplexSummary -> Maybe Int
pipelinesRunningCount :: Prelude.Maybe Prelude.Int,
    -- | A list of availability zones for the multiplex.
    MultiplexSummary -> Maybe [Text]
availabilityZones :: Prelude.Maybe [Prelude.Text],
    -- | The number of programs in the multiplex.
    MultiplexSummary -> Maybe Int
programCount :: Prelude.Maybe Prelude.Int,
    -- | The name of the multiplex.
    MultiplexSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The unique id of the multiplex.
    MultiplexSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | Configuration for a multiplex event.
    MultiplexSummary -> Maybe MultiplexSettingsSummary
multiplexSettings :: Prelude.Maybe MultiplexSettingsSummary,
    -- | A collection of key-value pairs.
    MultiplexSummary -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (MultiplexSummary -> MultiplexSummary -> Bool
(MultiplexSummary -> MultiplexSummary -> Bool)
-> (MultiplexSummary -> MultiplexSummary -> Bool)
-> Eq MultiplexSummary
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]
(Int -> ReadS MultiplexSummary)
-> ReadS [MultiplexSummary]
-> ReadPrec MultiplexSummary
-> ReadPrec [MultiplexSummary]
-> Read 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
(Int -> MultiplexSummary -> ShowS)
-> (MultiplexSummary -> String)
-> ([MultiplexSummary] -> ShowS)
-> Show MultiplexSummary
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. MultiplexSummary -> Rep MultiplexSummary x)
-> (forall x. Rep MultiplexSummary x -> MultiplexSummary)
-> Generic MultiplexSummary
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)

-- |
-- Create a value of 'MultiplexSummary' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'state', 'multiplexSummary_state' - The current state of the multiplex.
--
-- 'arn', 'multiplexSummary_arn' - The unique arn of the multiplex.
--
-- 'pipelinesRunningCount', 'multiplexSummary_pipelinesRunningCount' - The number of currently healthy pipelines.
--
-- 'availabilityZones', 'multiplexSummary_availabilityZones' - A list of availability zones for the multiplex.
--
-- 'programCount', 'multiplexSummary_programCount' - The number of programs in the multiplex.
--
-- 'name', 'multiplexSummary_name' - The name of the multiplex.
--
-- 'id', 'multiplexSummary_id' - The unique id of the multiplex.
--
-- 'multiplexSettings', 'multiplexSummary_multiplexSettings' - Configuration for a multiplex event.
--
-- 'tags', 'multiplexSummary_tags' - A collection of key-value pairs.
newMultiplexSummary ::
  MultiplexSummary
newMultiplexSummary :: MultiplexSummary
newMultiplexSummary =
  MultiplexSummary' :: Maybe MultiplexState
-> Maybe Text
-> Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe MultiplexSettingsSummary
-> Maybe (HashMap Text Text)
-> MultiplexSummary
MultiplexSummary'
    { $sel:state:MultiplexSummary' :: Maybe MultiplexState
state = Maybe MultiplexState
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:MultiplexSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelinesRunningCount:MultiplexSummary' :: Maybe Int
pipelinesRunningCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:availabilityZones:MultiplexSummary' :: Maybe [Text]
availabilityZones = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:programCount:MultiplexSummary' :: Maybe Int
programCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:name:MultiplexSummary' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:MultiplexSummary' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:multiplexSettings:MultiplexSummary' :: Maybe MultiplexSettingsSummary
multiplexSettings = Maybe MultiplexSettingsSummary
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:MultiplexSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
    }

-- | The current state of the multiplex.
multiplexSummary_state :: Lens.Lens' MultiplexSummary (Prelude.Maybe MultiplexState)
multiplexSummary_state :: (Maybe MultiplexState -> f (Maybe MultiplexState))
-> MultiplexSummary -> f MultiplexSummary
multiplexSummary_state = (MultiplexSummary -> Maybe MultiplexState)
-> (MultiplexSummary -> Maybe MultiplexState -> MultiplexSummary)
-> Lens
     MultiplexSummary
     MultiplexSummary
     (Maybe MultiplexState)
     (Maybe MultiplexState)
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)

-- | The unique arn of the multiplex.
multiplexSummary_arn :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Text)
multiplexSummary_arn :: (Maybe Text -> f (Maybe Text))
-> MultiplexSummary -> f MultiplexSummary
multiplexSummary_arn = (MultiplexSummary -> Maybe Text)
-> (MultiplexSummary -> Maybe Text -> MultiplexSummary)
-> Lens MultiplexSummary MultiplexSummary (Maybe Text) (Maybe Text)
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)

-- | The number of currently healthy pipelines.
multiplexSummary_pipelinesRunningCount :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Int)
multiplexSummary_pipelinesRunningCount :: (Maybe Int -> f (Maybe Int))
-> MultiplexSummary -> f MultiplexSummary
multiplexSummary_pipelinesRunningCount = (MultiplexSummary -> Maybe Int)
-> (MultiplexSummary -> Maybe Int -> MultiplexSummary)
-> Lens MultiplexSummary MultiplexSummary (Maybe Int) (Maybe Int)
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)

-- | A list of availability zones for the multiplex.
multiplexSummary_availabilityZones :: Lens.Lens' MultiplexSummary (Prelude.Maybe [Prelude.Text])
multiplexSummary_availabilityZones :: (Maybe [Text] -> f (Maybe [Text]))
-> MultiplexSummary -> f MultiplexSummary
multiplexSummary_availabilityZones = (MultiplexSummary -> Maybe [Text])
-> (MultiplexSummary -> Maybe [Text] -> MultiplexSummary)
-> Lens
     MultiplexSummary MultiplexSummary (Maybe [Text]) (Maybe [Text])
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) ((Maybe [Text] -> f (Maybe [Text]))
 -> MultiplexSummary -> f MultiplexSummary)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> MultiplexSummary
-> f MultiplexSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The number of programs in the multiplex.
multiplexSummary_programCount :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Int)
multiplexSummary_programCount :: (Maybe Int -> f (Maybe Int))
-> MultiplexSummary -> f MultiplexSummary
multiplexSummary_programCount = (MultiplexSummary -> Maybe Int)
-> (MultiplexSummary -> Maybe Int -> MultiplexSummary)
-> Lens MultiplexSummary MultiplexSummary (Maybe Int) (Maybe Int)
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)

-- | The name of the multiplex.
multiplexSummary_name :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Text)
multiplexSummary_name :: (Maybe Text -> f (Maybe Text))
-> MultiplexSummary -> f MultiplexSummary
multiplexSummary_name = (MultiplexSummary -> Maybe Text)
-> (MultiplexSummary -> Maybe Text -> MultiplexSummary)
-> Lens MultiplexSummary MultiplexSummary (Maybe Text) (Maybe Text)
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)

-- | The unique id of the multiplex.
multiplexSummary_id :: Lens.Lens' MultiplexSummary (Prelude.Maybe Prelude.Text)
multiplexSummary_id :: (Maybe Text -> f (Maybe Text))
-> MultiplexSummary -> f MultiplexSummary
multiplexSummary_id = (MultiplexSummary -> Maybe Text)
-> (MultiplexSummary -> Maybe Text -> MultiplexSummary)
-> Lens MultiplexSummary MultiplexSummary (Maybe Text) (Maybe Text)
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)

-- | Configuration for a multiplex event.
multiplexSummary_multiplexSettings :: Lens.Lens' MultiplexSummary (Prelude.Maybe MultiplexSettingsSummary)
multiplexSummary_multiplexSettings :: (Maybe MultiplexSettingsSummary
 -> f (Maybe MultiplexSettingsSummary))
-> MultiplexSummary -> f MultiplexSummary
multiplexSummary_multiplexSettings = (MultiplexSummary -> Maybe MultiplexSettingsSummary)
-> (MultiplexSummary
    -> Maybe MultiplexSettingsSummary -> MultiplexSummary)
-> Lens
     MultiplexSummary
     MultiplexSummary
     (Maybe MultiplexSettingsSummary)
     (Maybe MultiplexSettingsSummary)
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)

-- | A collection of key-value pairs.
multiplexSummary_tags :: Lens.Lens' MultiplexSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
multiplexSummary_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> MultiplexSummary -> f MultiplexSummary
multiplexSummary_tags = (MultiplexSummary -> Maybe (HashMap Text Text))
-> (MultiplexSummary
    -> Maybe (HashMap Text Text) -> MultiplexSummary)
-> Lens
     MultiplexSummary
     MultiplexSummary
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> MultiplexSummary -> f MultiplexSummary)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> MultiplexSummary
-> f MultiplexSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON MultiplexSummary where
  parseJSON :: Value -> Parser MultiplexSummary
parseJSON =
    String
-> (Object -> Parser MultiplexSummary)
-> Value
-> Parser MultiplexSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"MultiplexSummary"
      ( \Object
x ->
          Maybe MultiplexState
-> Maybe Text
-> Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe MultiplexSettingsSummary
-> Maybe (HashMap Text Text)
-> MultiplexSummary
MultiplexSummary'
            (Maybe MultiplexState
 -> Maybe Text
 -> Maybe Int
 -> Maybe [Text]
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe MultiplexSettingsSummary
 -> Maybe (HashMap Text Text)
 -> MultiplexSummary)
-> Parser (Maybe MultiplexState)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe [Text]
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe MultiplexSettingsSummary
      -> Maybe (HashMap Text Text)
      -> MultiplexSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe MultiplexState)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"state")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe [Text]
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe MultiplexSettingsSummary
   -> Maybe (HashMap Text Text)
   -> MultiplexSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe [Text]
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe MultiplexSettingsSummary
      -> Maybe (HashMap Text Text)
      -> MultiplexSummary)
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
"arn")
            Parser
  (Maybe Int
   -> Maybe [Text]
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe MultiplexSettingsSummary
   -> Maybe (HashMap Text Text)
   -> MultiplexSummary)
-> Parser (Maybe Int)
-> Parser
     (Maybe [Text]
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe MultiplexSettingsSummary
      -> Maybe (HashMap Text Text)
      -> MultiplexSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"pipelinesRunningCount")
            Parser
  (Maybe [Text]
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe MultiplexSettingsSummary
   -> Maybe (HashMap Text Text)
   -> MultiplexSummary)
-> Parser (Maybe [Text])
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe MultiplexSettingsSummary
      -> Maybe (HashMap Text Text)
      -> MultiplexSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"availabilityZones"
                            Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe MultiplexSettingsSummary
   -> Maybe (HashMap Text Text)
   -> MultiplexSummary)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe MultiplexSettingsSummary
      -> Maybe (HashMap Text Text)
      -> MultiplexSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"programCount")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe MultiplexSettingsSummary
   -> Maybe (HashMap Text Text)
   -> MultiplexSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe MultiplexSettingsSummary
      -> Maybe (HashMap Text Text)
      -> MultiplexSummary)
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
"name")
            Parser
  (Maybe Text
   -> Maybe MultiplexSettingsSummary
   -> Maybe (HashMap Text Text)
   -> MultiplexSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe MultiplexSettingsSummary
      -> Maybe (HashMap Text Text) -> MultiplexSummary)
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
"id")
            Parser
  (Maybe MultiplexSettingsSummary
   -> Maybe (HashMap Text Text) -> MultiplexSummary)
-> Parser (Maybe MultiplexSettingsSummary)
-> Parser (Maybe (HashMap Text Text) -> MultiplexSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MultiplexSettingsSummary)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"multiplexSettings")
            Parser (Maybe (HashMap Text Text) -> MultiplexSummary)
-> Parser (Maybe (HashMap Text Text)) -> Parser MultiplexSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"tags" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable MultiplexSummary

instance Prelude.NFData MultiplexSummary