{-# 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.MediaConvert.Types.DvbSubtitlingType
-- 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.MediaConvert.Types.DvbSubtitlingType
  ( DvbSubtitlingType
      ( ..,
        DvbSubtitlingType_HEARING_IMPAIRED,
        DvbSubtitlingType_STANDARD
      ),
  )
where

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

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

pattern DvbSubtitlingType_HEARING_IMPAIRED :: DvbSubtitlingType
pattern $bDvbSubtitlingType_HEARING_IMPAIRED :: DvbSubtitlingType
$mDvbSubtitlingType_HEARING_IMPAIRED :: forall r. DvbSubtitlingType -> (Void# -> r) -> (Void# -> r) -> r
DvbSubtitlingType_HEARING_IMPAIRED = DvbSubtitlingType' "HEARING_IMPAIRED"

pattern DvbSubtitlingType_STANDARD :: DvbSubtitlingType
pattern $bDvbSubtitlingType_STANDARD :: DvbSubtitlingType
$mDvbSubtitlingType_STANDARD :: forall r. DvbSubtitlingType -> (Void# -> r) -> (Void# -> r) -> r
DvbSubtitlingType_STANDARD = DvbSubtitlingType' "STANDARD"

{-# COMPLETE
  DvbSubtitlingType_HEARING_IMPAIRED,
  DvbSubtitlingType_STANDARD,
  DvbSubtitlingType'
  #-}