{-# 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.Transcribe.Types.SubtitleFormat
-- 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.Transcribe.Types.SubtitleFormat
  ( SubtitleFormat
      ( ..,
        SubtitleFormat_Srt,
        SubtitleFormat_Vtt
      ),
  )
where

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

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

pattern SubtitleFormat_Srt :: SubtitleFormat
pattern $bSubtitleFormat_Srt :: SubtitleFormat
$mSubtitleFormat_Srt :: forall r. SubtitleFormat -> (Void# -> r) -> (Void# -> r) -> r
SubtitleFormat_Srt = SubtitleFormat' "srt"

pattern SubtitleFormat_Vtt :: SubtitleFormat
pattern $bSubtitleFormat_Vtt :: SubtitleFormat
$mSubtitleFormat_Vtt :: forall r. SubtitleFormat -> (Void# -> r) -> (Void# -> r) -> r
SubtitleFormat_Vtt = SubtitleFormat' "vtt"

{-# COMPLETE
  SubtitleFormat_Srt,
  SubtitleFormat_Vtt,
  SubtitleFormat'
  #-}