{-# 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.TranscriptionJobStatus
-- 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.Transcribe.Types.TranscriptionJobStatus
  ( TranscriptionJobStatus
      ( ..,
        TranscriptionJobStatus_COMPLETED,
        TranscriptionJobStatus_FAILED,
        TranscriptionJobStatus_IN_PROGRESS,
        TranscriptionJobStatus_QUEUED
      ),
  )
where

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

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

pattern TranscriptionJobStatus_COMPLETED :: TranscriptionJobStatus
pattern $bTranscriptionJobStatus_COMPLETED :: TranscriptionJobStatus
$mTranscriptionJobStatus_COMPLETED :: forall {r}.
TranscriptionJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
TranscriptionJobStatus_COMPLETED = TranscriptionJobStatus' "COMPLETED"

pattern TranscriptionJobStatus_FAILED :: TranscriptionJobStatus
pattern $bTranscriptionJobStatus_FAILED :: TranscriptionJobStatus
$mTranscriptionJobStatus_FAILED :: forall {r}.
TranscriptionJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
TranscriptionJobStatus_FAILED = TranscriptionJobStatus' "FAILED"

pattern TranscriptionJobStatus_IN_PROGRESS :: TranscriptionJobStatus
pattern $bTranscriptionJobStatus_IN_PROGRESS :: TranscriptionJobStatus
$mTranscriptionJobStatus_IN_PROGRESS :: forall {r}.
TranscriptionJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
TranscriptionJobStatus_IN_PROGRESS = TranscriptionJobStatus' "IN_PROGRESS"

pattern TranscriptionJobStatus_QUEUED :: TranscriptionJobStatus
pattern $bTranscriptionJobStatus_QUEUED :: TranscriptionJobStatus
$mTranscriptionJobStatus_QUEUED :: forall {r}.
TranscriptionJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
TranscriptionJobStatus_QUEUED = TranscriptionJobStatus' "QUEUED"

{-# COMPLETE
  TranscriptionJobStatus_COMPLETED,
  TranscriptionJobStatus_FAILED,
  TranscriptionJobStatus_IN_PROGRESS,
  TranscriptionJobStatus_QUEUED,
  TranscriptionJobStatus'
  #-}