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

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

-- | Scte27 Ocr Language
newtype Scte27OcrLanguage = Scte27OcrLanguage'
  { Scte27OcrLanguage -> Text
fromScte27OcrLanguage ::
      Core.Text
  }
  deriving stock
    ( Int -> Scte27OcrLanguage -> ShowS
[Scte27OcrLanguage] -> ShowS
Scte27OcrLanguage -> String
(Int -> Scte27OcrLanguage -> ShowS)
-> (Scte27OcrLanguage -> String)
-> ([Scte27OcrLanguage] -> ShowS)
-> Show Scte27OcrLanguage
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]
(Int -> ReadS Scte27OcrLanguage)
-> ReadS [Scte27OcrLanguage]
-> ReadPrec Scte27OcrLanguage
-> ReadPrec [Scte27OcrLanguage]
-> Read 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
(Scte27OcrLanguage -> Scte27OcrLanguage -> Bool)
-> (Scte27OcrLanguage -> Scte27OcrLanguage -> Bool)
-> Eq Scte27OcrLanguage
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
Eq Scte27OcrLanguage
-> (Scte27OcrLanguage -> Scte27OcrLanguage -> Ordering)
-> (Scte27OcrLanguage -> Scte27OcrLanguage -> Bool)
-> (Scte27OcrLanguage -> Scte27OcrLanguage -> Bool)
-> (Scte27OcrLanguage -> Scte27OcrLanguage -> Bool)
-> (Scte27OcrLanguage -> Scte27OcrLanguage -> Bool)
-> (Scte27OcrLanguage -> Scte27OcrLanguage -> Scte27OcrLanguage)
-> (Scte27OcrLanguage -> Scte27OcrLanguage -> Scte27OcrLanguage)
-> Ord 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
$cp1Ord :: Eq Scte27OcrLanguage
Prelude.Ord,
      (forall x. Scte27OcrLanguage -> Rep Scte27OcrLanguage x)
-> (forall x. Rep Scte27OcrLanguage x -> Scte27OcrLanguage)
-> Generic Scte27OcrLanguage
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
    ( Int -> Scte27OcrLanguage -> Int
Scte27OcrLanguage -> Int
(Int -> Scte27OcrLanguage -> Int)
-> (Scte27OcrLanguage -> Int) -> Hashable Scte27OcrLanguage
forall 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 -> ()
(Scte27OcrLanguage -> ()) -> NFData Scte27OcrLanguage
forall a. (a -> ()) -> NFData a
rnf :: Scte27OcrLanguage -> ()
$crnf :: Scte27OcrLanguage -> ()
Prelude.NFData,
      Text -> Either String Scte27OcrLanguage
(Text -> Either String Scte27OcrLanguage)
-> FromText Scte27OcrLanguage
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Scte27OcrLanguage
$cfromText :: Text -> Either String Scte27OcrLanguage
Core.FromText,
      Scte27OcrLanguage -> Text
(Scte27OcrLanguage -> Text) -> ToText Scte27OcrLanguage
forall a. (a -> Text) -> ToText a
toText :: Scte27OcrLanguage -> Text
$ctoText :: Scte27OcrLanguage -> Text
Core.ToText,
      Scte27OcrLanguage -> ByteString
(Scte27OcrLanguage -> ByteString) -> ToByteString Scte27OcrLanguage
forall a. (a -> ByteString) -> ToByteString a
toBS :: Scte27OcrLanguage -> ByteString
$ctoBS :: Scte27OcrLanguage -> ByteString
Core.ToByteString,
      Scte27OcrLanguage -> ByteStringBuilder
(Scte27OcrLanguage -> ByteStringBuilder) -> ToLog Scte27OcrLanguage
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Scte27OcrLanguage -> ByteStringBuilder
$cbuild :: Scte27OcrLanguage -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Scte27OcrLanguage -> [Header]
(HeaderName -> Scte27OcrLanguage -> [Header])
-> ToHeader Scte27OcrLanguage
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Scte27OcrLanguage -> [Header]
$ctoHeader :: HeaderName -> Scte27OcrLanguage -> [Header]
Core.ToHeader,
      Scte27OcrLanguage -> QueryString
(Scte27OcrLanguage -> QueryString) -> ToQuery Scte27OcrLanguage
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Scte27OcrLanguage -> QueryString
$ctoQuery :: Scte27OcrLanguage -> QueryString
Core.ToQuery,
      Value -> Parser [Scte27OcrLanguage]
Value -> Parser Scte27OcrLanguage
(Value -> Parser Scte27OcrLanguage)
-> (Value -> Parser [Scte27OcrLanguage])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [Scte27OcrLanguage]
FromJSONKeyFunction Scte27OcrLanguage
FromJSONKeyFunction Scte27OcrLanguage
-> FromJSONKeyFunction [Scte27OcrLanguage]
-> FromJSONKey Scte27OcrLanguage
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Scte27OcrLanguage]
$cfromJSONKeyList :: FromJSONKeyFunction [Scte27OcrLanguage]
fromJSONKey :: FromJSONKeyFunction Scte27OcrLanguage
$cfromJSONKey :: FromJSONKeyFunction Scte27OcrLanguage
Core.FromJSONKey,
      [Scte27OcrLanguage] -> Encoding
[Scte27OcrLanguage] -> Value
Scte27OcrLanguage -> Encoding
Scte27OcrLanguage -> Value
(Scte27OcrLanguage -> Value)
-> (Scte27OcrLanguage -> Encoding)
-> ([Scte27OcrLanguage] -> Value)
-> ([Scte27OcrLanguage] -> Encoding)
-> ToJSON Scte27OcrLanguage
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
Core.ToJSON,
      ToJSONKeyFunction [Scte27OcrLanguage]
ToJSONKeyFunction Scte27OcrLanguage
ToJSONKeyFunction Scte27OcrLanguage
-> ToJSONKeyFunction [Scte27OcrLanguage]
-> ToJSONKey Scte27OcrLanguage
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Scte27OcrLanguage]
$ctoJSONKeyList :: ToJSONKeyFunction [Scte27OcrLanguage]
toJSONKey :: ToJSONKeyFunction Scte27OcrLanguage
$ctoJSONKey :: ToJSONKeyFunction Scte27OcrLanguage
Core.ToJSONKey,
      [Node] -> Either String Scte27OcrLanguage
([Node] -> Either String Scte27OcrLanguage)
-> FromXML Scte27OcrLanguage
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Scte27OcrLanguage
$cparseXML :: [Node] -> Either String Scte27OcrLanguage
Core.FromXML,
      Scte27OcrLanguage -> XML
(Scte27OcrLanguage -> XML) -> ToXML Scte27OcrLanguage
forall a. (a -> XML) -> ToXML a
toXML :: Scte27OcrLanguage -> XML
$ctoXML :: Scte27OcrLanguage -> XML
Core.ToXML
    )

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

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

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

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

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

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

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