{-# 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.Eac3LfeControl
-- 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.Eac3LfeControl
  ( Eac3LfeControl
      ( ..,
        Eac3LfeControl_LFE,
        Eac3LfeControl_NO_LFE
      ),
  )
where

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

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

pattern Eac3LfeControl_LFE :: Eac3LfeControl
pattern $bEac3LfeControl_LFE :: Eac3LfeControl
$mEac3LfeControl_LFE :: forall r. Eac3LfeControl -> (Void# -> r) -> (Void# -> r) -> r
Eac3LfeControl_LFE = Eac3LfeControl' "LFE"

pattern Eac3LfeControl_NO_LFE :: Eac3LfeControl
pattern $bEac3LfeControl_NO_LFE :: Eac3LfeControl
$mEac3LfeControl_NO_LFE :: forall r. Eac3LfeControl -> (Void# -> r) -> (Void# -> r) -> r
Eac3LfeControl_NO_LFE = Eac3LfeControl' "NO_LFE"

{-# COMPLETE
  Eac3LfeControl_LFE,
  Eac3LfeControl_NO_LFE,
  Eac3LfeControl'
  #-}