{-# 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.MachineLearning.Types.EntityStatus
-- 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.MachineLearning.Types.EntityStatus
  ( EntityStatus
      ( ..,
        EntityStatus_COMPLETED,
        EntityStatus_DELETED,
        EntityStatus_FAILED,
        EntityStatus_INPROGRESS,
        EntityStatus_PENDING
      ),
  )
where

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

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

pattern EntityStatus_COMPLETED :: EntityStatus
pattern $bEntityStatus_COMPLETED :: EntityStatus
$mEntityStatus_COMPLETED :: forall {r}. EntityStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EntityStatus_COMPLETED = EntityStatus' "COMPLETED"

pattern EntityStatus_DELETED :: EntityStatus
pattern $bEntityStatus_DELETED :: EntityStatus
$mEntityStatus_DELETED :: forall {r}. EntityStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EntityStatus_DELETED = EntityStatus' "DELETED"

pattern EntityStatus_FAILED :: EntityStatus
pattern $bEntityStatus_FAILED :: EntityStatus
$mEntityStatus_FAILED :: forall {r}. EntityStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EntityStatus_FAILED = EntityStatus' "FAILED"

pattern EntityStatus_INPROGRESS :: EntityStatus
pattern $bEntityStatus_INPROGRESS :: EntityStatus
$mEntityStatus_INPROGRESS :: forall {r}. EntityStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EntityStatus_INPROGRESS = EntityStatus' "INPROGRESS"

pattern EntityStatus_PENDING :: EntityStatus
pattern $bEntityStatus_PENDING :: EntityStatus
$mEntityStatus_PENDING :: forall {r}. EntityStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EntityStatus_PENDING = EntityStatus' "PENDING"

{-# COMPLETE
  EntityStatus_COMPLETED,
  EntityStatus_DELETED,
  EntityStatus_FAILED,
  EntityStatus_INPROGRESS,
  EntityStatus_PENDING,
  EntityStatus'
  #-}