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

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

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

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

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

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

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

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

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