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

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

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

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

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

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

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

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