{-# 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.Rekognition.Types.ProjectVersionStatus
-- 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.Rekognition.Types.ProjectVersionStatus
  ( ProjectVersionStatus
      ( ..,
        ProjectVersionStatus_DELETING,
        ProjectVersionStatus_FAILED,
        ProjectVersionStatus_RUNNING,
        ProjectVersionStatus_STARTING,
        ProjectVersionStatus_STOPPED,
        ProjectVersionStatus_STOPPING,
        ProjectVersionStatus_TRAINING_COMPLETED,
        ProjectVersionStatus_TRAINING_FAILED,
        ProjectVersionStatus_TRAINING_IN_PROGRESS
      ),
  )
where

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

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

pattern ProjectVersionStatus_DELETING :: ProjectVersionStatus
pattern $bProjectVersionStatus_DELETING :: ProjectVersionStatus
$mProjectVersionStatus_DELETING :: forall r. ProjectVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProjectVersionStatus_DELETING = ProjectVersionStatus' "DELETING"

pattern ProjectVersionStatus_FAILED :: ProjectVersionStatus
pattern $bProjectVersionStatus_FAILED :: ProjectVersionStatus
$mProjectVersionStatus_FAILED :: forall r. ProjectVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProjectVersionStatus_FAILED = ProjectVersionStatus' "FAILED"

pattern ProjectVersionStatus_RUNNING :: ProjectVersionStatus
pattern $bProjectVersionStatus_RUNNING :: ProjectVersionStatus
$mProjectVersionStatus_RUNNING :: forall r. ProjectVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProjectVersionStatus_RUNNING = ProjectVersionStatus' "RUNNING"

pattern ProjectVersionStatus_STARTING :: ProjectVersionStatus
pattern $bProjectVersionStatus_STARTING :: ProjectVersionStatus
$mProjectVersionStatus_STARTING :: forall r. ProjectVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProjectVersionStatus_STARTING = ProjectVersionStatus' "STARTING"

pattern ProjectVersionStatus_STOPPED :: ProjectVersionStatus
pattern $bProjectVersionStatus_STOPPED :: ProjectVersionStatus
$mProjectVersionStatus_STOPPED :: forall r. ProjectVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProjectVersionStatus_STOPPED = ProjectVersionStatus' "STOPPED"

pattern ProjectVersionStatus_STOPPING :: ProjectVersionStatus
pattern $bProjectVersionStatus_STOPPING :: ProjectVersionStatus
$mProjectVersionStatus_STOPPING :: forall r. ProjectVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProjectVersionStatus_STOPPING = ProjectVersionStatus' "STOPPING"

pattern ProjectVersionStatus_TRAINING_COMPLETED :: ProjectVersionStatus
pattern $bProjectVersionStatus_TRAINING_COMPLETED :: ProjectVersionStatus
$mProjectVersionStatus_TRAINING_COMPLETED :: forall r. ProjectVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProjectVersionStatus_TRAINING_COMPLETED = ProjectVersionStatus' "TRAINING_COMPLETED"

pattern ProjectVersionStatus_TRAINING_FAILED :: ProjectVersionStatus
pattern $bProjectVersionStatus_TRAINING_FAILED :: ProjectVersionStatus
$mProjectVersionStatus_TRAINING_FAILED :: forall r. ProjectVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProjectVersionStatus_TRAINING_FAILED = ProjectVersionStatus' "TRAINING_FAILED"

pattern ProjectVersionStatus_TRAINING_IN_PROGRESS :: ProjectVersionStatus
pattern $bProjectVersionStatus_TRAINING_IN_PROGRESS :: ProjectVersionStatus
$mProjectVersionStatus_TRAINING_IN_PROGRESS :: forall r. ProjectVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ProjectVersionStatus_TRAINING_IN_PROGRESS = ProjectVersionStatus' "TRAINING_IN_PROGRESS"

{-# COMPLETE
  ProjectVersionStatus_DELETING,
  ProjectVersionStatus_FAILED,
  ProjectVersionStatus_RUNNING,
  ProjectVersionStatus_STARTING,
  ProjectVersionStatus_STOPPED,
  ProjectVersionStatus_STOPPING,
  ProjectVersionStatus_TRAINING_COMPLETED,
  ProjectVersionStatus_TRAINING_FAILED,
  ProjectVersionStatus_TRAINING_IN_PROGRESS,
  ProjectVersionStatus'
  #-}