{-# 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.Scte27OcrLanguage
-- 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.Scte27OcrLanguage
  ( Scte27OcrLanguage
      ( ..,
        Scte27OcrLanguage_DEU,
        Scte27OcrLanguage_ENG,
        Scte27OcrLanguage_FRA,
        Scte27OcrLanguage_NLD,
        Scte27OcrLanguage_POR,
        Scte27OcrLanguage_SPA
      ),
  )
where

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

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

pattern Scte27OcrLanguage_DEU :: Scte27OcrLanguage
pattern $bScte27OcrLanguage_DEU :: Scte27OcrLanguage
$mScte27OcrLanguage_DEU :: forall {r}. Scte27OcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
Scte27OcrLanguage_DEU = Scte27OcrLanguage' "DEU"

pattern Scte27OcrLanguage_ENG :: Scte27OcrLanguage
pattern $bScte27OcrLanguage_ENG :: Scte27OcrLanguage
$mScte27OcrLanguage_ENG :: forall {r}. Scte27OcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
Scte27OcrLanguage_ENG = Scte27OcrLanguage' "ENG"

pattern Scte27OcrLanguage_FRA :: Scte27OcrLanguage
pattern $bScte27OcrLanguage_FRA :: Scte27OcrLanguage
$mScte27OcrLanguage_FRA :: forall {r}. Scte27OcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
Scte27OcrLanguage_FRA = Scte27OcrLanguage' "FRA"

pattern Scte27OcrLanguage_NLD :: Scte27OcrLanguage
pattern $bScte27OcrLanguage_NLD :: Scte27OcrLanguage
$mScte27OcrLanguage_NLD :: forall {r}. Scte27OcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
Scte27OcrLanguage_NLD = Scte27OcrLanguage' "NLD"

pattern Scte27OcrLanguage_POR :: Scte27OcrLanguage
pattern $bScte27OcrLanguage_POR :: Scte27OcrLanguage
$mScte27OcrLanguage_POR :: forall {r}. Scte27OcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
Scte27OcrLanguage_POR = Scte27OcrLanguage' "POR"

pattern Scte27OcrLanguage_SPA :: Scte27OcrLanguage
pattern $bScte27OcrLanguage_SPA :: Scte27OcrLanguage
$mScte27OcrLanguage_SPA :: forall {r}. Scte27OcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
Scte27OcrLanguage_SPA = Scte27OcrLanguage' "SPA"

{-# COMPLETE
  Scte27OcrLanguage_DEU,
  Scte27OcrLanguage_ENG,
  Scte27OcrLanguage_FRA,
  Scte27OcrLanguage_NLD,
  Scte27OcrLanguage_POR,
  Scte27OcrLanguage_SPA,
  Scte27OcrLanguage'
  #-}