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

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

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

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

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

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

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

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

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

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

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