{-# 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.SageMaker.Types.ProjectStatus
-- 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.SageMaker.Types.ProjectStatus
  ( ProjectStatus
      ( ..,
        ProjectStatus_CreateCompleted,
        ProjectStatus_CreateFailed,
        ProjectStatus_CreateInProgress,
        ProjectStatus_DeleteCompleted,
        ProjectStatus_DeleteFailed,
        ProjectStatus_DeleteInProgress,
        ProjectStatus_Pending,
        ProjectStatus_UpdateCompleted,
        ProjectStatus_UpdateFailed,
        ProjectStatus_UpdateInProgress
      ),
  )
where

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

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

pattern ProjectStatus_CreateCompleted :: ProjectStatus
pattern $bProjectStatus_CreateCompleted :: ProjectStatus
$mProjectStatus_CreateCompleted :: forall {r}. ProjectStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProjectStatus_CreateCompleted = ProjectStatus' "CreateCompleted"

pattern ProjectStatus_CreateFailed :: ProjectStatus
pattern $bProjectStatus_CreateFailed :: ProjectStatus
$mProjectStatus_CreateFailed :: forall {r}. ProjectStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProjectStatus_CreateFailed = ProjectStatus' "CreateFailed"

pattern ProjectStatus_CreateInProgress :: ProjectStatus
pattern $bProjectStatus_CreateInProgress :: ProjectStatus
$mProjectStatus_CreateInProgress :: forall {r}. ProjectStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProjectStatus_CreateInProgress = ProjectStatus' "CreateInProgress"

pattern ProjectStatus_DeleteCompleted :: ProjectStatus
pattern $bProjectStatus_DeleteCompleted :: ProjectStatus
$mProjectStatus_DeleteCompleted :: forall {r}. ProjectStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProjectStatus_DeleteCompleted = ProjectStatus' "DeleteCompleted"

pattern ProjectStatus_DeleteFailed :: ProjectStatus
pattern $bProjectStatus_DeleteFailed :: ProjectStatus
$mProjectStatus_DeleteFailed :: forall {r}. ProjectStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProjectStatus_DeleteFailed = ProjectStatus' "DeleteFailed"

pattern ProjectStatus_DeleteInProgress :: ProjectStatus
pattern $bProjectStatus_DeleteInProgress :: ProjectStatus
$mProjectStatus_DeleteInProgress :: forall {r}. ProjectStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProjectStatus_DeleteInProgress = ProjectStatus' "DeleteInProgress"

pattern ProjectStatus_Pending :: ProjectStatus
pattern $bProjectStatus_Pending :: ProjectStatus
$mProjectStatus_Pending :: forall {r}. ProjectStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProjectStatus_Pending = ProjectStatus' "Pending"

pattern ProjectStatus_UpdateCompleted :: ProjectStatus
pattern $bProjectStatus_UpdateCompleted :: ProjectStatus
$mProjectStatus_UpdateCompleted :: forall {r}. ProjectStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProjectStatus_UpdateCompleted = ProjectStatus' "UpdateCompleted"

pattern ProjectStatus_UpdateFailed :: ProjectStatus
pattern $bProjectStatus_UpdateFailed :: ProjectStatus
$mProjectStatus_UpdateFailed :: forall {r}. ProjectStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProjectStatus_UpdateFailed = ProjectStatus' "UpdateFailed"

pattern ProjectStatus_UpdateInProgress :: ProjectStatus
pattern $bProjectStatus_UpdateInProgress :: ProjectStatus
$mProjectStatus_UpdateInProgress :: forall {r}. ProjectStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ProjectStatus_UpdateInProgress = ProjectStatus' "UpdateInProgress"

{-# COMPLETE
  ProjectStatus_CreateCompleted,
  ProjectStatus_CreateFailed,
  ProjectStatus_CreateInProgress,
  ProjectStatus_DeleteCompleted,
  ProjectStatus_DeleteFailed,
  ProjectStatus_DeleteInProgress,
  ProjectStatus_Pending,
  ProjectStatus_UpdateCompleted,
  ProjectStatus_UpdateFailed,
  ProjectStatus_UpdateInProgress,
  ProjectStatus'
  #-}