{-# 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.Eac3DrcLine
-- 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.Eac3DrcLine
  ( Eac3DrcLine
      ( ..,
        Eac3DrcLine_FILM_LIGHT,
        Eac3DrcLine_FILM_STANDARD,
        Eac3DrcLine_MUSIC_LIGHT,
        Eac3DrcLine_MUSIC_STANDARD,
        Eac3DrcLine_NONE,
        Eac3DrcLine_SPEECH
      ),
  )
where

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

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

pattern Eac3DrcLine_FILM_LIGHT :: Eac3DrcLine
pattern $bEac3DrcLine_FILM_LIGHT :: Eac3DrcLine
$mEac3DrcLine_FILM_LIGHT :: forall r. Eac3DrcLine -> (Void# -> r) -> (Void# -> r) -> r
Eac3DrcLine_FILM_LIGHT = Eac3DrcLine' "FILM_LIGHT"

pattern Eac3DrcLine_FILM_STANDARD :: Eac3DrcLine
pattern $bEac3DrcLine_FILM_STANDARD :: Eac3DrcLine
$mEac3DrcLine_FILM_STANDARD :: forall r. Eac3DrcLine -> (Void# -> r) -> (Void# -> r) -> r
Eac3DrcLine_FILM_STANDARD = Eac3DrcLine' "FILM_STANDARD"

pattern Eac3DrcLine_MUSIC_LIGHT :: Eac3DrcLine
pattern $bEac3DrcLine_MUSIC_LIGHT :: Eac3DrcLine
$mEac3DrcLine_MUSIC_LIGHT :: forall r. Eac3DrcLine -> (Void# -> r) -> (Void# -> r) -> r
Eac3DrcLine_MUSIC_LIGHT = Eac3DrcLine' "MUSIC_LIGHT"

pattern Eac3DrcLine_MUSIC_STANDARD :: Eac3DrcLine
pattern $bEac3DrcLine_MUSIC_STANDARD :: Eac3DrcLine
$mEac3DrcLine_MUSIC_STANDARD :: forall r. Eac3DrcLine -> (Void# -> r) -> (Void# -> r) -> r
Eac3DrcLine_MUSIC_STANDARD = Eac3DrcLine' "MUSIC_STANDARD"

pattern Eac3DrcLine_NONE :: Eac3DrcLine
pattern $bEac3DrcLine_NONE :: Eac3DrcLine
$mEac3DrcLine_NONE :: forall r. Eac3DrcLine -> (Void# -> r) -> (Void# -> r) -> r
Eac3DrcLine_NONE = Eac3DrcLine' "NONE"

pattern Eac3DrcLine_SPEECH :: Eac3DrcLine
pattern $bEac3DrcLine_SPEECH :: Eac3DrcLine
$mEac3DrcLine_SPEECH :: forall r. Eac3DrcLine -> (Void# -> r) -> (Void# -> r) -> r
Eac3DrcLine_SPEECH = Eac3DrcLine' "SPEECH"

{-# COMPLETE
  Eac3DrcLine_FILM_LIGHT,
  Eac3DrcLine_FILM_STANDARD,
  Eac3DrcLine_MUSIC_LIGHT,
  Eac3DrcLine_MUSIC_STANDARD,
  Eac3DrcLine_NONE,
  Eac3DrcLine_SPEECH,
  Eac3DrcLine'
  #-}