{-# 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.Connect.Types.RoutingProfile
-- 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.Connect.Types.RoutingProfile where

import Amazonka.Connect.Types.MediaConcurrency
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Contains information about a routing profile.
--
-- /See:/ 'newRoutingProfile' smart constructor.
data RoutingProfile = RoutingProfile'
  { -- | The identifier of the Amazon Connect instance. You can find the
    -- instanceId in the ARN of the instance.
    RoutingProfile -> Maybe Text
instanceId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the routing profile.
    RoutingProfile -> Maybe Text
routingProfileArn :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the routing profile.
    RoutingProfile -> Maybe Text
routingProfileId :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the default outbound queue for this routing profile.
    RoutingProfile -> Maybe Text
defaultOutboundQueueId :: Prelude.Maybe Prelude.Text,
    -- | The name of the routing profile.
    RoutingProfile -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The channels agents can handle in the Contact Control Panel (CCP) for
    -- this routing profile.
    RoutingProfile -> Maybe [MediaConcurrency]
mediaConcurrencies :: Prelude.Maybe [MediaConcurrency],
    -- | The description of the routing profile.
    RoutingProfile -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | One or more tags.
    RoutingProfile -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (RoutingProfile -> RoutingProfile -> Bool
(RoutingProfile -> RoutingProfile -> Bool)
-> (RoutingProfile -> RoutingProfile -> Bool) -> Eq RoutingProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RoutingProfile -> RoutingProfile -> Bool
$c/= :: RoutingProfile -> RoutingProfile -> Bool
== :: RoutingProfile -> RoutingProfile -> Bool
$c== :: RoutingProfile -> RoutingProfile -> Bool
Prelude.Eq, ReadPrec [RoutingProfile]
ReadPrec RoutingProfile
Int -> ReadS RoutingProfile
ReadS [RoutingProfile]
(Int -> ReadS RoutingProfile)
-> ReadS [RoutingProfile]
-> ReadPrec RoutingProfile
-> ReadPrec [RoutingProfile]
-> Read RoutingProfile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RoutingProfile]
$creadListPrec :: ReadPrec [RoutingProfile]
readPrec :: ReadPrec RoutingProfile
$creadPrec :: ReadPrec RoutingProfile
readList :: ReadS [RoutingProfile]
$creadList :: ReadS [RoutingProfile]
readsPrec :: Int -> ReadS RoutingProfile
$creadsPrec :: Int -> ReadS RoutingProfile
Prelude.Read, Int -> RoutingProfile -> ShowS
[RoutingProfile] -> ShowS
RoutingProfile -> String
(Int -> RoutingProfile -> ShowS)
-> (RoutingProfile -> String)
-> ([RoutingProfile] -> ShowS)
-> Show RoutingProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RoutingProfile] -> ShowS
$cshowList :: [RoutingProfile] -> ShowS
show :: RoutingProfile -> String
$cshow :: RoutingProfile -> String
showsPrec :: Int -> RoutingProfile -> ShowS
$cshowsPrec :: Int -> RoutingProfile -> ShowS
Prelude.Show, (forall x. RoutingProfile -> Rep RoutingProfile x)
-> (forall x. Rep RoutingProfile x -> RoutingProfile)
-> Generic RoutingProfile
forall x. Rep RoutingProfile x -> RoutingProfile
forall x. RoutingProfile -> Rep RoutingProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RoutingProfile x -> RoutingProfile
$cfrom :: forall x. RoutingProfile -> Rep RoutingProfile x
Prelude.Generic)

-- |
-- Create a value of 'RoutingProfile' 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:
--
-- 'instanceId', 'routingProfile_instanceId' - The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
--
-- 'routingProfileArn', 'routingProfile_routingProfileArn' - The Amazon Resource Name (ARN) of the routing profile.
--
-- 'routingProfileId', 'routingProfile_routingProfileId' - The identifier of the routing profile.
--
-- 'defaultOutboundQueueId', 'routingProfile_defaultOutboundQueueId' - The identifier of the default outbound queue for this routing profile.
--
-- 'name', 'routingProfile_name' - The name of the routing profile.
--
-- 'mediaConcurrencies', 'routingProfile_mediaConcurrencies' - The channels agents can handle in the Contact Control Panel (CCP) for
-- this routing profile.
--
-- 'description', 'routingProfile_description' - The description of the routing profile.
--
-- 'tags', 'routingProfile_tags' - One or more tags.
newRoutingProfile ::
  RoutingProfile
newRoutingProfile :: RoutingProfile
newRoutingProfile =
  RoutingProfile' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [MediaConcurrency]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> RoutingProfile
RoutingProfile'
    { $sel:instanceId:RoutingProfile' :: Maybe Text
instanceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:routingProfileArn:RoutingProfile' :: Maybe Text
routingProfileArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:routingProfileId:RoutingProfile' :: Maybe Text
routingProfileId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:defaultOutboundQueueId:RoutingProfile' :: Maybe Text
defaultOutboundQueueId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:RoutingProfile' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:mediaConcurrencies:RoutingProfile' :: Maybe [MediaConcurrency]
mediaConcurrencies = Maybe [MediaConcurrency]
forall a. Maybe a
Prelude.Nothing,
      $sel:description:RoutingProfile' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:RoutingProfile' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
    }

-- | The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
routingProfile_instanceId :: Lens.Lens' RoutingProfile (Prelude.Maybe Prelude.Text)
routingProfile_instanceId :: (Maybe Text -> f (Maybe Text))
-> RoutingProfile -> f RoutingProfile
routingProfile_instanceId = (RoutingProfile -> Maybe Text)
-> (RoutingProfile -> Maybe Text -> RoutingProfile)
-> Lens RoutingProfile RoutingProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RoutingProfile' {Maybe Text
instanceId :: Maybe Text
$sel:instanceId:RoutingProfile' :: RoutingProfile -> Maybe Text
instanceId} -> Maybe Text
instanceId) (\s :: RoutingProfile
s@RoutingProfile' {} Maybe Text
a -> RoutingProfile
s {$sel:instanceId:RoutingProfile' :: Maybe Text
instanceId = Maybe Text
a} :: RoutingProfile)

-- | The Amazon Resource Name (ARN) of the routing profile.
routingProfile_routingProfileArn :: Lens.Lens' RoutingProfile (Prelude.Maybe Prelude.Text)
routingProfile_routingProfileArn :: (Maybe Text -> f (Maybe Text))
-> RoutingProfile -> f RoutingProfile
routingProfile_routingProfileArn = (RoutingProfile -> Maybe Text)
-> (RoutingProfile -> Maybe Text -> RoutingProfile)
-> Lens RoutingProfile RoutingProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RoutingProfile' {Maybe Text
routingProfileArn :: Maybe Text
$sel:routingProfileArn:RoutingProfile' :: RoutingProfile -> Maybe Text
routingProfileArn} -> Maybe Text
routingProfileArn) (\s :: RoutingProfile
s@RoutingProfile' {} Maybe Text
a -> RoutingProfile
s {$sel:routingProfileArn:RoutingProfile' :: Maybe Text
routingProfileArn = Maybe Text
a} :: RoutingProfile)

-- | The identifier of the routing profile.
routingProfile_routingProfileId :: Lens.Lens' RoutingProfile (Prelude.Maybe Prelude.Text)
routingProfile_routingProfileId :: (Maybe Text -> f (Maybe Text))
-> RoutingProfile -> f RoutingProfile
routingProfile_routingProfileId = (RoutingProfile -> Maybe Text)
-> (RoutingProfile -> Maybe Text -> RoutingProfile)
-> Lens RoutingProfile RoutingProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RoutingProfile' {Maybe Text
routingProfileId :: Maybe Text
$sel:routingProfileId:RoutingProfile' :: RoutingProfile -> Maybe Text
routingProfileId} -> Maybe Text
routingProfileId) (\s :: RoutingProfile
s@RoutingProfile' {} Maybe Text
a -> RoutingProfile
s {$sel:routingProfileId:RoutingProfile' :: Maybe Text
routingProfileId = Maybe Text
a} :: RoutingProfile)

-- | The identifier of the default outbound queue for this routing profile.
routingProfile_defaultOutboundQueueId :: Lens.Lens' RoutingProfile (Prelude.Maybe Prelude.Text)
routingProfile_defaultOutboundQueueId :: (Maybe Text -> f (Maybe Text))
-> RoutingProfile -> f RoutingProfile
routingProfile_defaultOutboundQueueId = (RoutingProfile -> Maybe Text)
-> (RoutingProfile -> Maybe Text -> RoutingProfile)
-> Lens RoutingProfile RoutingProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RoutingProfile' {Maybe Text
defaultOutboundQueueId :: Maybe Text
$sel:defaultOutboundQueueId:RoutingProfile' :: RoutingProfile -> Maybe Text
defaultOutboundQueueId} -> Maybe Text
defaultOutboundQueueId) (\s :: RoutingProfile
s@RoutingProfile' {} Maybe Text
a -> RoutingProfile
s {$sel:defaultOutboundQueueId:RoutingProfile' :: Maybe Text
defaultOutboundQueueId = Maybe Text
a} :: RoutingProfile)

-- | The name of the routing profile.
routingProfile_name :: Lens.Lens' RoutingProfile (Prelude.Maybe Prelude.Text)
routingProfile_name :: (Maybe Text -> f (Maybe Text))
-> RoutingProfile -> f RoutingProfile
routingProfile_name = (RoutingProfile -> Maybe Text)
-> (RoutingProfile -> Maybe Text -> RoutingProfile)
-> Lens RoutingProfile RoutingProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RoutingProfile' {Maybe Text
name :: Maybe Text
$sel:name:RoutingProfile' :: RoutingProfile -> Maybe Text
name} -> Maybe Text
name) (\s :: RoutingProfile
s@RoutingProfile' {} Maybe Text
a -> RoutingProfile
s {$sel:name:RoutingProfile' :: Maybe Text
name = Maybe Text
a} :: RoutingProfile)

-- | The channels agents can handle in the Contact Control Panel (CCP) for
-- this routing profile.
routingProfile_mediaConcurrencies :: Lens.Lens' RoutingProfile (Prelude.Maybe [MediaConcurrency])
routingProfile_mediaConcurrencies :: (Maybe [MediaConcurrency] -> f (Maybe [MediaConcurrency]))
-> RoutingProfile -> f RoutingProfile
routingProfile_mediaConcurrencies = (RoutingProfile -> Maybe [MediaConcurrency])
-> (RoutingProfile -> Maybe [MediaConcurrency] -> RoutingProfile)
-> Lens
     RoutingProfile
     RoutingProfile
     (Maybe [MediaConcurrency])
     (Maybe [MediaConcurrency])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RoutingProfile' {Maybe [MediaConcurrency]
mediaConcurrencies :: Maybe [MediaConcurrency]
$sel:mediaConcurrencies:RoutingProfile' :: RoutingProfile -> Maybe [MediaConcurrency]
mediaConcurrencies} -> Maybe [MediaConcurrency]
mediaConcurrencies) (\s :: RoutingProfile
s@RoutingProfile' {} Maybe [MediaConcurrency]
a -> RoutingProfile
s {$sel:mediaConcurrencies:RoutingProfile' :: Maybe [MediaConcurrency]
mediaConcurrencies = Maybe [MediaConcurrency]
a} :: RoutingProfile) ((Maybe [MediaConcurrency] -> f (Maybe [MediaConcurrency]))
 -> RoutingProfile -> f RoutingProfile)
-> ((Maybe [MediaConcurrency] -> f (Maybe [MediaConcurrency]))
    -> Maybe [MediaConcurrency] -> f (Maybe [MediaConcurrency]))
-> (Maybe [MediaConcurrency] -> f (Maybe [MediaConcurrency]))
-> RoutingProfile
-> f RoutingProfile
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [MediaConcurrency]
  [MediaConcurrency]
  [MediaConcurrency]
  [MediaConcurrency]
-> Iso
     (Maybe [MediaConcurrency])
     (Maybe [MediaConcurrency])
     (Maybe [MediaConcurrency])
     (Maybe [MediaConcurrency])
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
  [MediaConcurrency]
  [MediaConcurrency]
  [MediaConcurrency]
  [MediaConcurrency]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The description of the routing profile.
routingProfile_description :: Lens.Lens' RoutingProfile (Prelude.Maybe Prelude.Text)
routingProfile_description :: (Maybe Text -> f (Maybe Text))
-> RoutingProfile -> f RoutingProfile
routingProfile_description = (RoutingProfile -> Maybe Text)
-> (RoutingProfile -> Maybe Text -> RoutingProfile)
-> Lens RoutingProfile RoutingProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RoutingProfile' {Maybe Text
description :: Maybe Text
$sel:description:RoutingProfile' :: RoutingProfile -> Maybe Text
description} -> Maybe Text
description) (\s :: RoutingProfile
s@RoutingProfile' {} Maybe Text
a -> RoutingProfile
s {$sel:description:RoutingProfile' :: Maybe Text
description = Maybe Text
a} :: RoutingProfile)

-- | One or more tags.
routingProfile_tags :: Lens.Lens' RoutingProfile (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
routingProfile_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> RoutingProfile -> f RoutingProfile
routingProfile_tags = (RoutingProfile -> Maybe (HashMap Text Text))
-> (RoutingProfile -> Maybe (HashMap Text Text) -> RoutingProfile)
-> Lens
     RoutingProfile
     RoutingProfile
     (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 (\RoutingProfile' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:RoutingProfile' :: RoutingProfile -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: RoutingProfile
s@RoutingProfile' {} Maybe (HashMap Text Text)
a -> RoutingProfile
s {$sel:tags:RoutingProfile' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: RoutingProfile) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> RoutingProfile -> f RoutingProfile)
-> ((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)))
-> RoutingProfile
-> f RoutingProfile
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 RoutingProfile where
  parseJSON :: Value -> Parser RoutingProfile
parseJSON =
    String
-> (Object -> Parser RoutingProfile)
-> Value
-> Parser RoutingProfile
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"RoutingProfile"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [MediaConcurrency]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> RoutingProfile
RoutingProfile'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe [MediaConcurrency]
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> RoutingProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [MediaConcurrency]
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> RoutingProfile)
forall (f :: * -> *) a b. Functor 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
"InstanceId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [MediaConcurrency]
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> RoutingProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [MediaConcurrency]
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> RoutingProfile)
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
"RoutingProfileArn")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [MediaConcurrency]
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> RoutingProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe [MediaConcurrency]
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> RoutingProfile)
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
"RoutingProfileId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe [MediaConcurrency]
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> RoutingProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe [MediaConcurrency]
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> RoutingProfile)
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
"DefaultOutboundQueueId")
            Parser
  (Maybe Text
   -> Maybe [MediaConcurrency]
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> RoutingProfile)
-> Parser (Maybe Text)
-> Parser
     (Maybe [MediaConcurrency]
      -> Maybe Text -> Maybe (HashMap Text Text) -> RoutingProfile)
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 [MediaConcurrency]
   -> Maybe Text -> Maybe (HashMap Text Text) -> RoutingProfile)
-> Parser (Maybe [MediaConcurrency])
-> Parser
     (Maybe Text -> Maybe (HashMap Text Text) -> RoutingProfile)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [MediaConcurrency]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MediaConcurrencies"
                            Parser (Maybe (Maybe [MediaConcurrency]))
-> Maybe [MediaConcurrency] -> Parser (Maybe [MediaConcurrency])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [MediaConcurrency]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser (Maybe Text -> Maybe (HashMap Text Text) -> RoutingProfile)
-> Parser (Maybe Text)
-> Parser (Maybe (HashMap Text Text) -> RoutingProfile)
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
"Description")
            Parser (Maybe (HashMap Text Text) -> RoutingProfile)
-> Parser (Maybe (HashMap Text Text)) -> Parser RoutingProfile
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 RoutingProfile

instance Prelude.NFData RoutingProfile