{-# 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.AudioLanguageSelectionPolicy
-- 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.AudioLanguageSelectionPolicy
  ( AudioLanguageSelectionPolicy
      ( ..,
        AudioLanguageSelectionPolicy_LOOSE,
        AudioLanguageSelectionPolicy_STRICT
      ),
  )
where

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

-- | Audio Language Selection Policy
newtype AudioLanguageSelectionPolicy = AudioLanguageSelectionPolicy'
  { AudioLanguageSelectionPolicy -> Text
fromAudioLanguageSelectionPolicy ::
      Data.Text
  }
  deriving stock
    ( Int -> AudioLanguageSelectionPolicy -> ShowS
[AudioLanguageSelectionPolicy] -> ShowS
AudioLanguageSelectionPolicy -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq AudioLanguageSelectionPolicy
Int -> AudioLanguageSelectionPolicy -> Int
AudioLanguageSelectionPolicy -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: AudioLanguageSelectionPolicy -> ()
$crnf :: AudioLanguageSelectionPolicy -> ()
Prelude.NFData,
      Text -> Either String AudioLanguageSelectionPolicy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AudioLanguageSelectionPolicy
$cfromText :: Text -> Either String AudioLanguageSelectionPolicy
Data.FromText,
      AudioLanguageSelectionPolicy -> Text
forall a. (a -> Text) -> ToText a
toText :: AudioLanguageSelectionPolicy -> Text
$ctoText :: AudioLanguageSelectionPolicy -> Text
Data.ToText,
      AudioLanguageSelectionPolicy -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AudioLanguageSelectionPolicy -> ByteString
$ctoBS :: AudioLanguageSelectionPolicy -> ByteString
Data.ToByteString,
      AudioLanguageSelectionPolicy -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AudioLanguageSelectionPolicy -> ByteStringBuilder
$cbuild :: AudioLanguageSelectionPolicy -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AudioLanguageSelectionPolicy -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AudioLanguageSelectionPolicy -> [Header]
$ctoHeader :: HeaderName -> AudioLanguageSelectionPolicy -> [Header]
Data.ToHeader,
      AudioLanguageSelectionPolicy -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AudioLanguageSelectionPolicy -> QueryString
$ctoQuery :: AudioLanguageSelectionPolicy -> QueryString
Data.ToQuery,
      Value -> Parser [AudioLanguageSelectionPolicy]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [AudioLanguageSelectionPolicy]
FromJSONKeyFunction AudioLanguageSelectionPolicy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AudioLanguageSelectionPolicy]
$cfromJSONKeyList :: FromJSONKeyFunction [AudioLanguageSelectionPolicy]
fromJSONKey :: FromJSONKeyFunction AudioLanguageSelectionPolicy
$cfromJSONKey :: FromJSONKeyFunction AudioLanguageSelectionPolicy
Data.FromJSONKey,
      [AudioLanguageSelectionPolicy] -> Encoding
[AudioLanguageSelectionPolicy] -> Value
AudioLanguageSelectionPolicy -> Encoding
AudioLanguageSelectionPolicy -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [AudioLanguageSelectionPolicy]
ToJSONKeyFunction AudioLanguageSelectionPolicy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AudioLanguageSelectionPolicy]
$ctoJSONKeyList :: ToJSONKeyFunction [AudioLanguageSelectionPolicy]
toJSONKey :: ToJSONKeyFunction AudioLanguageSelectionPolicy
$ctoJSONKey :: ToJSONKeyFunction AudioLanguageSelectionPolicy
Data.ToJSONKey,
      [Node] -> Either String AudioLanguageSelectionPolicy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AudioLanguageSelectionPolicy
$cparseXML :: [Node] -> Either String AudioLanguageSelectionPolicy
Data.FromXML,
      AudioLanguageSelectionPolicy -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AudioLanguageSelectionPolicy -> XML
$ctoXML :: AudioLanguageSelectionPolicy -> XML
Data.ToXML
    )

pattern AudioLanguageSelectionPolicy_LOOSE :: AudioLanguageSelectionPolicy
pattern $bAudioLanguageSelectionPolicy_LOOSE :: AudioLanguageSelectionPolicy
$mAudioLanguageSelectionPolicy_LOOSE :: forall {r}.
AudioLanguageSelectionPolicy -> ((# #) -> r) -> ((# #) -> r) -> r
AudioLanguageSelectionPolicy_LOOSE = AudioLanguageSelectionPolicy' "LOOSE"

pattern AudioLanguageSelectionPolicy_STRICT :: AudioLanguageSelectionPolicy
pattern $bAudioLanguageSelectionPolicy_STRICT :: AudioLanguageSelectionPolicy
$mAudioLanguageSelectionPolicy_STRICT :: forall {r}.
AudioLanguageSelectionPolicy -> ((# #) -> r) -> ((# #) -> r) -> r
AudioLanguageSelectionPolicy_STRICT = AudioLanguageSelectionPolicy' "STRICT"

{-# COMPLETE
  AudioLanguageSelectionPolicy_LOOSE,
  AudioLanguageSelectionPolicy_STRICT,
  AudioLanguageSelectionPolicy'
  #-}