{-# 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.Ac3LfeFilter
-- 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.Ac3LfeFilter
  ( Ac3LfeFilter
      ( ..,
        Ac3LfeFilter_DISABLED,
        Ac3LfeFilter_ENABLED
      ),
  )
where

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

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

pattern Ac3LfeFilter_DISABLED :: Ac3LfeFilter
pattern $bAc3LfeFilter_DISABLED :: Ac3LfeFilter
$mAc3LfeFilter_DISABLED :: forall r. Ac3LfeFilter -> (Void# -> r) -> (Void# -> r) -> r
Ac3LfeFilter_DISABLED = Ac3LfeFilter' "DISABLED"

pattern Ac3LfeFilter_ENABLED :: Ac3LfeFilter
pattern $bAc3LfeFilter_ENABLED :: Ac3LfeFilter
$mAc3LfeFilter_ENABLED :: forall r. Ac3LfeFilter -> (Void# -> r) -> (Void# -> r) -> r
Ac3LfeFilter_ENABLED = Ac3LfeFilter' "ENABLED"

{-# COMPLETE
  Ac3LfeFilter_DISABLED,
  Ac3LfeFilter_ENABLED,
  Ac3LfeFilter'
  #-}