{-# 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.ModelStatus
-- 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.ModelStatus
  ( ModelStatus
      ( ..,
        ModelStatus_COMPLETED,
        ModelStatus_FAILED,
        ModelStatus_IN_PROGRESS
      ),
  )
where

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

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

pattern ModelStatus_COMPLETED :: ModelStatus
pattern $bModelStatus_COMPLETED :: ModelStatus
$mModelStatus_COMPLETED :: forall {r}. ModelStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelStatus_COMPLETED = ModelStatus' "COMPLETED"

pattern ModelStatus_FAILED :: ModelStatus
pattern $bModelStatus_FAILED :: ModelStatus
$mModelStatus_FAILED :: forall {r}. ModelStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelStatus_FAILED = ModelStatus' "FAILED"

pattern ModelStatus_IN_PROGRESS :: ModelStatus
pattern $bModelStatus_IN_PROGRESS :: ModelStatus
$mModelStatus_IN_PROGRESS :: forall {r}. ModelStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelStatus_IN_PROGRESS = ModelStatus' "IN_PROGRESS"

{-# COMPLETE
  ModelStatus_COMPLETED,
  ModelStatus_FAILED,
  ModelStatus_IN_PROGRESS,
  ModelStatus'
  #-}