{-# 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.DvbSubOcrLanguage
-- 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.DvbSubOcrLanguage
  ( DvbSubOcrLanguage
      ( ..,
        DvbSubOcrLanguage_DEU,
        DvbSubOcrLanguage_ENG,
        DvbSubOcrLanguage_FRA,
        DvbSubOcrLanguage_NLD,
        DvbSubOcrLanguage_POR,
        DvbSubOcrLanguage_SPA
      ),
  )
where

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

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

pattern DvbSubOcrLanguage_DEU :: DvbSubOcrLanguage
pattern $bDvbSubOcrLanguage_DEU :: DvbSubOcrLanguage
$mDvbSubOcrLanguage_DEU :: forall {r}. DvbSubOcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
DvbSubOcrLanguage_DEU = DvbSubOcrLanguage' "DEU"

pattern DvbSubOcrLanguage_ENG :: DvbSubOcrLanguage
pattern $bDvbSubOcrLanguage_ENG :: DvbSubOcrLanguage
$mDvbSubOcrLanguage_ENG :: forall {r}. DvbSubOcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
DvbSubOcrLanguage_ENG = DvbSubOcrLanguage' "ENG"

pattern DvbSubOcrLanguage_FRA :: DvbSubOcrLanguage
pattern $bDvbSubOcrLanguage_FRA :: DvbSubOcrLanguage
$mDvbSubOcrLanguage_FRA :: forall {r}. DvbSubOcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
DvbSubOcrLanguage_FRA = DvbSubOcrLanguage' "FRA"

pattern DvbSubOcrLanguage_NLD :: DvbSubOcrLanguage
pattern $bDvbSubOcrLanguage_NLD :: DvbSubOcrLanguage
$mDvbSubOcrLanguage_NLD :: forall {r}. DvbSubOcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
DvbSubOcrLanguage_NLD = DvbSubOcrLanguage' "NLD"

pattern DvbSubOcrLanguage_POR :: DvbSubOcrLanguage
pattern $bDvbSubOcrLanguage_POR :: DvbSubOcrLanguage
$mDvbSubOcrLanguage_POR :: forall {r}. DvbSubOcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
DvbSubOcrLanguage_POR = DvbSubOcrLanguage' "POR"

pattern DvbSubOcrLanguage_SPA :: DvbSubOcrLanguage
pattern $bDvbSubOcrLanguage_SPA :: DvbSubOcrLanguage
$mDvbSubOcrLanguage_SPA :: forall {r}. DvbSubOcrLanguage -> ((# #) -> r) -> ((# #) -> r) -> r
DvbSubOcrLanguage_SPA = DvbSubOcrLanguage' "SPA"

{-# COMPLETE
  DvbSubOcrLanguage_DEU,
  DvbSubOcrLanguage_ENG,
  DvbSubOcrLanguage_FRA,
  DvbSubOcrLanguage_NLD,
  DvbSubOcrLanguage_POR,
  DvbSubOcrLanguage_SPA,
  DvbSubOcrLanguage'
  #-}