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

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

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

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

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

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

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

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

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

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