{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.MediaLive.Types.DolbyEProgramSelection
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.DolbyEProgramSelection
  ( DolbyEProgramSelection
      ( ..,
        DolbyEProgramSelection_ALL_CHANNELS,
        DolbyEProgramSelection_PROGRAM_1,
        DolbyEProgramSelection_PROGRAM_2,
        DolbyEProgramSelection_PROGRAM_3,
        DolbyEProgramSelection_PROGRAM_4,
        DolbyEProgramSelection_PROGRAM_5,
        DolbyEProgramSelection_PROGRAM_6,
        DolbyEProgramSelection_PROGRAM_7,
        DolbyEProgramSelection_PROGRAM_8
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Dolby EProgram Selection
newtype DolbyEProgramSelection = DolbyEProgramSelection'
  { DolbyEProgramSelection -> Text
fromDolbyEProgramSelection ::
      Data.Text
  }
  deriving stock
    ( Int -> DolbyEProgramSelection -> ShowS
[DolbyEProgramSelection] -> ShowS
DolbyEProgramSelection -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DolbyEProgramSelection] -> ShowS
$cshowList :: [DolbyEProgramSelection] -> ShowS
show :: DolbyEProgramSelection -> String
$cshow :: DolbyEProgramSelection -> String
showsPrec :: Int -> DolbyEProgramSelection -> ShowS
$cshowsPrec :: Int -> DolbyEProgramSelection -> ShowS
Prelude.Show,
      ReadPrec [DolbyEProgramSelection]
ReadPrec DolbyEProgramSelection
Int -> ReadS DolbyEProgramSelection
ReadS [DolbyEProgramSelection]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DolbyEProgramSelection]
$creadListPrec :: ReadPrec [DolbyEProgramSelection]
readPrec :: ReadPrec DolbyEProgramSelection
$creadPrec :: ReadPrec DolbyEProgramSelection
readList :: ReadS [DolbyEProgramSelection]
$creadList :: ReadS [DolbyEProgramSelection]
readsPrec :: Int -> ReadS DolbyEProgramSelection
$creadsPrec :: Int -> ReadS DolbyEProgramSelection
Prelude.Read,
      DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
$c/= :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
== :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
$c== :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
Prelude.Eq,
      Eq DolbyEProgramSelection
DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
DolbyEProgramSelection -> DolbyEProgramSelection -> Ordering
DolbyEProgramSelection
-> DolbyEProgramSelection -> DolbyEProgramSelection
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: DolbyEProgramSelection
-> DolbyEProgramSelection -> DolbyEProgramSelection
$cmin :: DolbyEProgramSelection
-> DolbyEProgramSelection -> DolbyEProgramSelection
max :: DolbyEProgramSelection
-> DolbyEProgramSelection -> DolbyEProgramSelection
$cmax :: DolbyEProgramSelection
-> DolbyEProgramSelection -> DolbyEProgramSelection
>= :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
$c>= :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
> :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
$c> :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
<= :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
$c<= :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
< :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
$c< :: DolbyEProgramSelection -> DolbyEProgramSelection -> Bool
compare :: DolbyEProgramSelection -> DolbyEProgramSelection -> Ordering
$ccompare :: DolbyEProgramSelection -> DolbyEProgramSelection -> Ordering
Prelude.Ord,
      forall x. Rep DolbyEProgramSelection x -> DolbyEProgramSelection
forall x. DolbyEProgramSelection -> Rep DolbyEProgramSelection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DolbyEProgramSelection x -> DolbyEProgramSelection
$cfrom :: forall x. DolbyEProgramSelection -> Rep DolbyEProgramSelection x
Prelude.Generic
    )
  deriving newtype
    ( Eq DolbyEProgramSelection
Int -> DolbyEProgramSelection -> Int
DolbyEProgramSelection -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DolbyEProgramSelection -> Int
$chash :: DolbyEProgramSelection -> Int
hashWithSalt :: Int -> DolbyEProgramSelection -> Int
$chashWithSalt :: Int -> DolbyEProgramSelection -> Int
Prelude.Hashable,
      DolbyEProgramSelection -> ()
forall a. (a -> ()) -> NFData a
rnf :: DolbyEProgramSelection -> ()
$crnf :: DolbyEProgramSelection -> ()
Prelude.NFData,
      Text -> Either String DolbyEProgramSelection
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DolbyEProgramSelection
$cfromText :: Text -> Either String DolbyEProgramSelection
Data.FromText,
      DolbyEProgramSelection -> Text
forall a. (a -> Text) -> ToText a
toText :: DolbyEProgramSelection -> Text
$ctoText :: DolbyEProgramSelection -> Text
Data.ToText,
      DolbyEProgramSelection -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DolbyEProgramSelection -> ByteString
$ctoBS :: DolbyEProgramSelection -> ByteString
Data.ToByteString,
      DolbyEProgramSelection -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DolbyEProgramSelection -> ByteStringBuilder
$cbuild :: DolbyEProgramSelection -> ByteStringBuilder
Data.ToLog,
      HeaderName -> DolbyEProgramSelection -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DolbyEProgramSelection -> [Header]
$ctoHeader :: HeaderName -> DolbyEProgramSelection -> [Header]
Data.ToHeader,
      DolbyEProgramSelection -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DolbyEProgramSelection -> QueryString
$ctoQuery :: DolbyEProgramSelection -> QueryString
Data.ToQuery,
      Value -> Parser [DolbyEProgramSelection]
Value -> Parser DolbyEProgramSelection
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DolbyEProgramSelection]
$cparseJSONList :: Value -> Parser [DolbyEProgramSelection]
parseJSON :: Value -> Parser DolbyEProgramSelection
$cparseJSON :: Value -> Parser DolbyEProgramSelection
Data.FromJSON,
      FromJSONKeyFunction [DolbyEProgramSelection]
FromJSONKeyFunction DolbyEProgramSelection
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DolbyEProgramSelection]
$cfromJSONKeyList :: FromJSONKeyFunction [DolbyEProgramSelection]
fromJSONKey :: FromJSONKeyFunction DolbyEProgramSelection
$cfromJSONKey :: FromJSONKeyFunction DolbyEProgramSelection
Data.FromJSONKey,
      [DolbyEProgramSelection] -> Encoding
[DolbyEProgramSelection] -> Value
DolbyEProgramSelection -> Encoding
DolbyEProgramSelection -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DolbyEProgramSelection] -> Encoding
$ctoEncodingList :: [DolbyEProgramSelection] -> Encoding
toJSONList :: [DolbyEProgramSelection] -> Value
$ctoJSONList :: [DolbyEProgramSelection] -> Value
toEncoding :: DolbyEProgramSelection -> Encoding
$ctoEncoding :: DolbyEProgramSelection -> Encoding
toJSON :: DolbyEProgramSelection -> Value
$ctoJSON :: DolbyEProgramSelection -> Value
Data.ToJSON,
      ToJSONKeyFunction [DolbyEProgramSelection]
ToJSONKeyFunction DolbyEProgramSelection
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DolbyEProgramSelection]
$ctoJSONKeyList :: ToJSONKeyFunction [DolbyEProgramSelection]
toJSONKey :: ToJSONKeyFunction DolbyEProgramSelection
$ctoJSONKey :: ToJSONKeyFunction DolbyEProgramSelection
Data.ToJSONKey,
      [Node] -> Either String DolbyEProgramSelection
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DolbyEProgramSelection
$cparseXML :: [Node] -> Either String DolbyEProgramSelection
Data.FromXML,
      DolbyEProgramSelection -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DolbyEProgramSelection -> XML
$ctoXML :: DolbyEProgramSelection -> XML
Data.ToXML
    )

pattern DolbyEProgramSelection_ALL_CHANNELS :: DolbyEProgramSelection
pattern $bDolbyEProgramSelection_ALL_CHANNELS :: DolbyEProgramSelection
$mDolbyEProgramSelection_ALL_CHANNELS :: forall {r}.
DolbyEProgramSelection -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyEProgramSelection_ALL_CHANNELS = DolbyEProgramSelection' "ALL_CHANNELS"

pattern DolbyEProgramSelection_PROGRAM_1 :: DolbyEProgramSelection
pattern $bDolbyEProgramSelection_PROGRAM_1 :: DolbyEProgramSelection
$mDolbyEProgramSelection_PROGRAM_1 :: forall {r}.
DolbyEProgramSelection -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyEProgramSelection_PROGRAM_1 = DolbyEProgramSelection' "PROGRAM_1"

pattern DolbyEProgramSelection_PROGRAM_2 :: DolbyEProgramSelection
pattern $bDolbyEProgramSelection_PROGRAM_2 :: DolbyEProgramSelection
$mDolbyEProgramSelection_PROGRAM_2 :: forall {r}.
DolbyEProgramSelection -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyEProgramSelection_PROGRAM_2 = DolbyEProgramSelection' "PROGRAM_2"

pattern DolbyEProgramSelection_PROGRAM_3 :: DolbyEProgramSelection
pattern $bDolbyEProgramSelection_PROGRAM_3 :: DolbyEProgramSelection
$mDolbyEProgramSelection_PROGRAM_3 :: forall {r}.
DolbyEProgramSelection -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyEProgramSelection_PROGRAM_3 = DolbyEProgramSelection' "PROGRAM_3"

pattern DolbyEProgramSelection_PROGRAM_4 :: DolbyEProgramSelection
pattern $bDolbyEProgramSelection_PROGRAM_4 :: DolbyEProgramSelection
$mDolbyEProgramSelection_PROGRAM_4 :: forall {r}.
DolbyEProgramSelection -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyEProgramSelection_PROGRAM_4 = DolbyEProgramSelection' "PROGRAM_4"

pattern DolbyEProgramSelection_PROGRAM_5 :: DolbyEProgramSelection
pattern $bDolbyEProgramSelection_PROGRAM_5 :: DolbyEProgramSelection
$mDolbyEProgramSelection_PROGRAM_5 :: forall {r}.
DolbyEProgramSelection -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyEProgramSelection_PROGRAM_5 = DolbyEProgramSelection' "PROGRAM_5"

pattern DolbyEProgramSelection_PROGRAM_6 :: DolbyEProgramSelection
pattern $bDolbyEProgramSelection_PROGRAM_6 :: DolbyEProgramSelection
$mDolbyEProgramSelection_PROGRAM_6 :: forall {r}.
DolbyEProgramSelection -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyEProgramSelection_PROGRAM_6 = DolbyEProgramSelection' "PROGRAM_6"

pattern DolbyEProgramSelection_PROGRAM_7 :: DolbyEProgramSelection
pattern $bDolbyEProgramSelection_PROGRAM_7 :: DolbyEProgramSelection
$mDolbyEProgramSelection_PROGRAM_7 :: forall {r}.
DolbyEProgramSelection -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyEProgramSelection_PROGRAM_7 = DolbyEProgramSelection' "PROGRAM_7"

pattern DolbyEProgramSelection_PROGRAM_8 :: DolbyEProgramSelection
pattern $bDolbyEProgramSelection_PROGRAM_8 :: DolbyEProgramSelection
$mDolbyEProgramSelection_PROGRAM_8 :: forall {r}.
DolbyEProgramSelection -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyEProgramSelection_PROGRAM_8 = DolbyEProgramSelection' "PROGRAM_8"

{-# COMPLETE
  DolbyEProgramSelection_ALL_CHANNELS,
  DolbyEProgramSelection_PROGRAM_1,
  DolbyEProgramSelection_PROGRAM_2,
  DolbyEProgramSelection_PROGRAM_3,
  DolbyEProgramSelection_PROGRAM_4,
  DolbyEProgramSelection_PROGRAM_5,
  DolbyEProgramSelection_PROGRAM_6,
  DolbyEProgramSelection_PROGRAM_7,
  DolbyEProgramSelection_PROGRAM_8,
  DolbyEProgramSelection'
  #-}