{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.AudioLanguageSelectionPolicy
( AudioLanguageSelectionPolicy
( ..,
AudioLanguageSelectionPolicy_LOOSE,
AudioLanguageSelectionPolicy_STRICT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AudioLanguageSelectionPolicy = AudioLanguageSelectionPolicy'
{ AudioLanguageSelectionPolicy -> Text
fromAudioLanguageSelectionPolicy ::
Core.Text
}
deriving stock
( Int -> AudioLanguageSelectionPolicy -> ShowS
[AudioLanguageSelectionPolicy] -> ShowS
AudioLanguageSelectionPolicy -> String
(Int -> AudioLanguageSelectionPolicy -> ShowS)
-> (AudioLanguageSelectionPolicy -> String)
-> ([AudioLanguageSelectionPolicy] -> ShowS)
-> Show AudioLanguageSelectionPolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AudioLanguageSelectionPolicy] -> ShowS
$cshowList :: [AudioLanguageSelectionPolicy] -> ShowS
show :: AudioLanguageSelectionPolicy -> String
$cshow :: AudioLanguageSelectionPolicy -> String
showsPrec :: Int -> AudioLanguageSelectionPolicy -> ShowS
$cshowsPrec :: Int -> AudioLanguageSelectionPolicy -> ShowS
Prelude.Show,
ReadPrec [AudioLanguageSelectionPolicy]
ReadPrec AudioLanguageSelectionPolicy
Int -> ReadS AudioLanguageSelectionPolicy
ReadS [AudioLanguageSelectionPolicy]
(Int -> ReadS AudioLanguageSelectionPolicy)
-> ReadS [AudioLanguageSelectionPolicy]
-> ReadPrec AudioLanguageSelectionPolicy
-> ReadPrec [AudioLanguageSelectionPolicy]
-> Read AudioLanguageSelectionPolicy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AudioLanguageSelectionPolicy]
$creadListPrec :: ReadPrec [AudioLanguageSelectionPolicy]
readPrec :: ReadPrec AudioLanguageSelectionPolicy
$creadPrec :: ReadPrec AudioLanguageSelectionPolicy
readList :: ReadS [AudioLanguageSelectionPolicy]
$creadList :: ReadS [AudioLanguageSelectionPolicy]
readsPrec :: Int -> ReadS AudioLanguageSelectionPolicy
$creadsPrec :: Int -> ReadS AudioLanguageSelectionPolicy
Prelude.Read,
AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
(AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool)
-> (AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool)
-> Eq AudioLanguageSelectionPolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
$c/= :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
== :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
$c== :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
Prelude.Eq,
Eq AudioLanguageSelectionPolicy
Eq AudioLanguageSelectionPolicy
-> (AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Ordering)
-> (AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool)
-> (AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool)
-> (AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool)
-> (AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool)
-> (AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> AudioLanguageSelectionPolicy)
-> (AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> AudioLanguageSelectionPolicy)
-> Ord AudioLanguageSelectionPolicy
AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Ordering
AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> AudioLanguageSelectionPolicy
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 :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> AudioLanguageSelectionPolicy
$cmin :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> AudioLanguageSelectionPolicy
max :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> AudioLanguageSelectionPolicy
$cmax :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> AudioLanguageSelectionPolicy
>= :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
$c>= :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
> :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
$c> :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
<= :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
$c<= :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
< :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
$c< :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Bool
compare :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Ordering
$ccompare :: AudioLanguageSelectionPolicy
-> AudioLanguageSelectionPolicy -> Ordering
$cp1Ord :: Eq AudioLanguageSelectionPolicy
Prelude.Ord,
(forall x.
AudioLanguageSelectionPolicy -> Rep AudioLanguageSelectionPolicy x)
-> (forall x.
Rep AudioLanguageSelectionPolicy x -> AudioLanguageSelectionPolicy)
-> Generic AudioLanguageSelectionPolicy
forall x.
Rep AudioLanguageSelectionPolicy x -> AudioLanguageSelectionPolicy
forall x.
AudioLanguageSelectionPolicy -> Rep AudioLanguageSelectionPolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AudioLanguageSelectionPolicy x -> AudioLanguageSelectionPolicy
$cfrom :: forall x.
AudioLanguageSelectionPolicy -> Rep AudioLanguageSelectionPolicy x
Prelude.Generic
)
deriving newtype
( Int -> AudioLanguageSelectionPolicy -> Int
AudioLanguageSelectionPolicy -> Int
(Int -> AudioLanguageSelectionPolicy -> Int)
-> (AudioLanguageSelectionPolicy -> Int)
-> Hashable AudioLanguageSelectionPolicy
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AudioLanguageSelectionPolicy -> Int
$chash :: AudioLanguageSelectionPolicy -> Int
hashWithSalt :: Int -> AudioLanguageSelectionPolicy -> Int
$chashWithSalt :: Int -> AudioLanguageSelectionPolicy -> Int
Prelude.Hashable,
AudioLanguageSelectionPolicy -> ()
(AudioLanguageSelectionPolicy -> ())
-> NFData AudioLanguageSelectionPolicy
forall a. (a -> ()) -> NFData a
rnf :: AudioLanguageSelectionPolicy -> ()
$crnf :: AudioLanguageSelectionPolicy -> ()
Prelude.NFData,
Text -> Either String AudioLanguageSelectionPolicy
(Text -> Either String AudioLanguageSelectionPolicy)
-> FromText AudioLanguageSelectionPolicy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AudioLanguageSelectionPolicy
$cfromText :: Text -> Either String AudioLanguageSelectionPolicy
Core.FromText,
AudioLanguageSelectionPolicy -> Text
(AudioLanguageSelectionPolicy -> Text)
-> ToText AudioLanguageSelectionPolicy
forall a. (a -> Text) -> ToText a
toText :: AudioLanguageSelectionPolicy -> Text
$ctoText :: AudioLanguageSelectionPolicy -> Text
Core.ToText,
AudioLanguageSelectionPolicy -> ByteString
(AudioLanguageSelectionPolicy -> ByteString)
-> ToByteString AudioLanguageSelectionPolicy
forall a. (a -> ByteString) -> ToByteString a
toBS :: AudioLanguageSelectionPolicy -> ByteString
$ctoBS :: AudioLanguageSelectionPolicy -> ByteString
Core.ToByteString,
AudioLanguageSelectionPolicy -> ByteStringBuilder
(AudioLanguageSelectionPolicy -> ByteStringBuilder)
-> ToLog AudioLanguageSelectionPolicy
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AudioLanguageSelectionPolicy -> ByteStringBuilder
$cbuild :: AudioLanguageSelectionPolicy -> ByteStringBuilder
Core.ToLog,
HeaderName -> AudioLanguageSelectionPolicy -> [Header]
(HeaderName -> AudioLanguageSelectionPolicy -> [Header])
-> ToHeader AudioLanguageSelectionPolicy
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AudioLanguageSelectionPolicy -> [Header]
$ctoHeader :: HeaderName -> AudioLanguageSelectionPolicy -> [Header]
Core.ToHeader,
AudioLanguageSelectionPolicy -> QueryString
(AudioLanguageSelectionPolicy -> QueryString)
-> ToQuery AudioLanguageSelectionPolicy
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AudioLanguageSelectionPolicy -> QueryString
$ctoQuery :: AudioLanguageSelectionPolicy -> QueryString
Core.ToQuery,
Value -> Parser [AudioLanguageSelectionPolicy]
Value -> Parser AudioLanguageSelectionPolicy
(Value -> Parser AudioLanguageSelectionPolicy)
-> (Value -> Parser [AudioLanguageSelectionPolicy])
-> FromJSON AudioLanguageSelectionPolicy
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AudioLanguageSelectionPolicy]
$cparseJSONList :: Value -> Parser [AudioLanguageSelectionPolicy]
parseJSON :: Value -> Parser AudioLanguageSelectionPolicy
$cparseJSON :: Value -> Parser AudioLanguageSelectionPolicy
Core.FromJSON,
FromJSONKeyFunction [AudioLanguageSelectionPolicy]
FromJSONKeyFunction AudioLanguageSelectionPolicy
FromJSONKeyFunction AudioLanguageSelectionPolicy
-> FromJSONKeyFunction [AudioLanguageSelectionPolicy]
-> FromJSONKey AudioLanguageSelectionPolicy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AudioLanguageSelectionPolicy]
$cfromJSONKeyList :: FromJSONKeyFunction [AudioLanguageSelectionPolicy]
fromJSONKey :: FromJSONKeyFunction AudioLanguageSelectionPolicy
$cfromJSONKey :: FromJSONKeyFunction AudioLanguageSelectionPolicy
Core.FromJSONKey,
[AudioLanguageSelectionPolicy] -> Encoding
[AudioLanguageSelectionPolicy] -> Value
AudioLanguageSelectionPolicy -> Encoding
AudioLanguageSelectionPolicy -> Value
(AudioLanguageSelectionPolicy -> Value)
-> (AudioLanguageSelectionPolicy -> Encoding)
-> ([AudioLanguageSelectionPolicy] -> Value)
-> ([AudioLanguageSelectionPolicy] -> Encoding)
-> ToJSON AudioLanguageSelectionPolicy
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AudioLanguageSelectionPolicy] -> Encoding
$ctoEncodingList :: [AudioLanguageSelectionPolicy] -> Encoding
toJSONList :: [AudioLanguageSelectionPolicy] -> Value
$ctoJSONList :: [AudioLanguageSelectionPolicy] -> Value
toEncoding :: AudioLanguageSelectionPolicy -> Encoding
$ctoEncoding :: AudioLanguageSelectionPolicy -> Encoding
toJSON :: AudioLanguageSelectionPolicy -> Value
$ctoJSON :: AudioLanguageSelectionPolicy -> Value
Core.ToJSON,
ToJSONKeyFunction [AudioLanguageSelectionPolicy]
ToJSONKeyFunction AudioLanguageSelectionPolicy
ToJSONKeyFunction AudioLanguageSelectionPolicy
-> ToJSONKeyFunction [AudioLanguageSelectionPolicy]
-> ToJSONKey AudioLanguageSelectionPolicy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AudioLanguageSelectionPolicy]
$ctoJSONKeyList :: ToJSONKeyFunction [AudioLanguageSelectionPolicy]
toJSONKey :: ToJSONKeyFunction AudioLanguageSelectionPolicy
$ctoJSONKey :: ToJSONKeyFunction AudioLanguageSelectionPolicy
Core.ToJSONKey,
[Node] -> Either String AudioLanguageSelectionPolicy
([Node] -> Either String AudioLanguageSelectionPolicy)
-> FromXML AudioLanguageSelectionPolicy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AudioLanguageSelectionPolicy
$cparseXML :: [Node] -> Either String AudioLanguageSelectionPolicy
Core.FromXML,
AudioLanguageSelectionPolicy -> XML
(AudioLanguageSelectionPolicy -> XML)
-> ToXML AudioLanguageSelectionPolicy
forall a. (a -> XML) -> ToXML a
toXML :: AudioLanguageSelectionPolicy -> XML
$ctoXML :: AudioLanguageSelectionPolicy -> XML
Core.ToXML
)
pattern AudioLanguageSelectionPolicy_LOOSE :: AudioLanguageSelectionPolicy
pattern $bAudioLanguageSelectionPolicy_LOOSE :: AudioLanguageSelectionPolicy
$mAudioLanguageSelectionPolicy_LOOSE :: forall r.
AudioLanguageSelectionPolicy -> (Void# -> r) -> (Void# -> r) -> r
AudioLanguageSelectionPolicy_LOOSE = AudioLanguageSelectionPolicy' "LOOSE"
pattern AudioLanguageSelectionPolicy_STRICT :: AudioLanguageSelectionPolicy
pattern $bAudioLanguageSelectionPolicy_STRICT :: AudioLanguageSelectionPolicy
$mAudioLanguageSelectionPolicy_STRICT :: forall r.
AudioLanguageSelectionPolicy -> (Void# -> r) -> (Void# -> r) -> r
AudioLanguageSelectionPolicy_STRICT = AudioLanguageSelectionPolicy' "STRICT"
{-# COMPLETE
AudioLanguageSelectionPolicy_LOOSE,
AudioLanguageSelectionPolicy_STRICT,
AudioLanguageSelectionPolicy'
#-}