{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Comprehend.Types.ModelStatus
( ModelStatus
( ..,
ModelStatus_DELETING,
ModelStatus_IN_ERROR,
ModelStatus_STOPPED,
ModelStatus_STOP_REQUESTED,
ModelStatus_SUBMITTED,
ModelStatus_TRAINED,
ModelStatus_TRAINING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ModelStatus = ModelStatus'
{ ModelStatus -> Text
fromModelStatus ::
Core.Text
}
deriving stock
( Int -> ModelStatus -> ShowS
[ModelStatus] -> ShowS
ModelStatus -> String
(Int -> ModelStatus -> ShowS)
-> (ModelStatus -> String)
-> ([ModelStatus] -> ShowS)
-> Show ModelStatus
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]
(Int -> ReadS ModelStatus)
-> ReadS [ModelStatus]
-> ReadPrec ModelStatus
-> ReadPrec [ModelStatus]
-> Read 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
(ModelStatus -> ModelStatus -> Bool)
-> (ModelStatus -> ModelStatus -> Bool) -> Eq ModelStatus
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
Eq ModelStatus
-> (ModelStatus -> ModelStatus -> Ordering)
-> (ModelStatus -> ModelStatus -> Bool)
-> (ModelStatus -> ModelStatus -> Bool)
-> (ModelStatus -> ModelStatus -> Bool)
-> (ModelStatus -> ModelStatus -> Bool)
-> (ModelStatus -> ModelStatus -> ModelStatus)
-> (ModelStatus -> ModelStatus -> ModelStatus)
-> Ord 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
$cp1Ord :: Eq ModelStatus
Prelude.Ord,
(forall x. ModelStatus -> Rep ModelStatus x)
-> (forall x. Rep ModelStatus x -> ModelStatus)
-> Generic ModelStatus
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
( Int -> ModelStatus -> Int
ModelStatus -> Int
(Int -> ModelStatus -> Int)
-> (ModelStatus -> Int) -> Hashable ModelStatus
forall 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 -> ()
(ModelStatus -> ()) -> NFData ModelStatus
forall a. (a -> ()) -> NFData a
rnf :: ModelStatus -> ()
$crnf :: ModelStatus -> ()
Prelude.NFData,
Text -> Either String ModelStatus
(Text -> Either String ModelStatus) -> FromText ModelStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ModelStatus
$cfromText :: Text -> Either String ModelStatus
Core.FromText,
ModelStatus -> Text
(ModelStatus -> Text) -> ToText ModelStatus
forall a. (a -> Text) -> ToText a
toText :: ModelStatus -> Text
$ctoText :: ModelStatus -> Text
Core.ToText,
ModelStatus -> ByteString
(ModelStatus -> ByteString) -> ToByteString ModelStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ModelStatus -> ByteString
$ctoBS :: ModelStatus -> ByteString
Core.ToByteString,
ModelStatus -> ByteStringBuilder
(ModelStatus -> ByteStringBuilder) -> ToLog ModelStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ModelStatus -> ByteStringBuilder
$cbuild :: ModelStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ModelStatus -> [Header]
(HeaderName -> ModelStatus -> [Header]) -> ToHeader ModelStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ModelStatus -> [Header]
$ctoHeader :: HeaderName -> ModelStatus -> [Header]
Core.ToHeader,
ModelStatus -> QueryString
(ModelStatus -> QueryString) -> ToQuery ModelStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ModelStatus -> QueryString
$ctoQuery :: ModelStatus -> QueryString
Core.ToQuery,
Value -> Parser [ModelStatus]
Value -> Parser ModelStatus
(Value -> Parser ModelStatus)
-> (Value -> Parser [ModelStatus]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ModelStatus]
FromJSONKeyFunction ModelStatus
FromJSONKeyFunction ModelStatus
-> FromJSONKeyFunction [ModelStatus] -> FromJSONKey ModelStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ModelStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ModelStatus]
fromJSONKey :: FromJSONKeyFunction ModelStatus
$cfromJSONKey :: FromJSONKeyFunction ModelStatus
Core.FromJSONKey,
[ModelStatus] -> Encoding
[ModelStatus] -> Value
ModelStatus -> Encoding
ModelStatus -> Value
(ModelStatus -> Value)
-> (ModelStatus -> Encoding)
-> ([ModelStatus] -> Value)
-> ([ModelStatus] -> Encoding)
-> ToJSON ModelStatus
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
Core.ToJSON,
ToJSONKeyFunction [ModelStatus]
ToJSONKeyFunction ModelStatus
ToJSONKeyFunction ModelStatus
-> ToJSONKeyFunction [ModelStatus] -> ToJSONKey ModelStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ModelStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ModelStatus]
toJSONKey :: ToJSONKeyFunction ModelStatus
$ctoJSONKey :: ToJSONKeyFunction ModelStatus
Core.ToJSONKey,
[Node] -> Either String ModelStatus
([Node] -> Either String ModelStatus) -> FromXML ModelStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ModelStatus
$cparseXML :: [Node] -> Either String ModelStatus
Core.FromXML,
ModelStatus -> XML
(ModelStatus -> XML) -> ToXML ModelStatus
forall a. (a -> XML) -> ToXML a
toXML :: ModelStatus -> XML
$ctoXML :: ModelStatus -> XML
Core.ToXML
)
pattern ModelStatus_DELETING :: ModelStatus
pattern $bModelStatus_DELETING :: ModelStatus
$mModelStatus_DELETING :: forall r. ModelStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelStatus_DELETING = ModelStatus' "DELETING"
pattern ModelStatus_IN_ERROR :: ModelStatus
pattern $bModelStatus_IN_ERROR :: ModelStatus
$mModelStatus_IN_ERROR :: forall r. ModelStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelStatus_IN_ERROR = ModelStatus' "IN_ERROR"
pattern ModelStatus_STOPPED :: ModelStatus
pattern $bModelStatus_STOPPED :: ModelStatus
$mModelStatus_STOPPED :: forall r. ModelStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelStatus_STOPPED = ModelStatus' "STOPPED"
pattern ModelStatus_STOP_REQUESTED :: ModelStatus
pattern $bModelStatus_STOP_REQUESTED :: ModelStatus
$mModelStatus_STOP_REQUESTED :: forall r. ModelStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelStatus_STOP_REQUESTED = ModelStatus' "STOP_REQUESTED"
pattern ModelStatus_SUBMITTED :: ModelStatus
pattern $bModelStatus_SUBMITTED :: ModelStatus
$mModelStatus_SUBMITTED :: forall r. ModelStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelStatus_SUBMITTED = ModelStatus' "SUBMITTED"
pattern ModelStatus_TRAINED :: ModelStatus
pattern $bModelStatus_TRAINED :: ModelStatus
$mModelStatus_TRAINED :: forall r. ModelStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelStatus_TRAINED = ModelStatus' "TRAINED"
pattern ModelStatus_TRAINING :: ModelStatus
pattern $bModelStatus_TRAINING :: ModelStatus
$mModelStatus_TRAINING :: forall r. ModelStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelStatus_TRAINING = ModelStatus' "TRAINING"
{-# COMPLETE
ModelStatus_DELETING,
ModelStatus_IN_ERROR,
ModelStatus_STOPPED,
ModelStatus_STOP_REQUESTED,
ModelStatus_SUBMITTED,
ModelStatus_TRAINED,
ModelStatus_TRAINING,
ModelStatus'
#-}