{-# 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.WorkforceStatus
-- 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.WorkforceStatus
  ( WorkforceStatus
      ( ..,
        WorkforceStatus_Active,
        WorkforceStatus_Deleting,
        WorkforceStatus_Failed,
        WorkforceStatus_Initializing,
        WorkforceStatus_Updating
      ),
  )
where

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

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

pattern WorkforceStatus_Active :: WorkforceStatus
pattern $bWorkforceStatus_Active :: WorkforceStatus
$mWorkforceStatus_Active :: forall {r}. WorkforceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorkforceStatus_Active = WorkforceStatus' "Active"

pattern WorkforceStatus_Deleting :: WorkforceStatus
pattern $bWorkforceStatus_Deleting :: WorkforceStatus
$mWorkforceStatus_Deleting :: forall {r}. WorkforceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorkforceStatus_Deleting = WorkforceStatus' "Deleting"

pattern WorkforceStatus_Failed :: WorkforceStatus
pattern $bWorkforceStatus_Failed :: WorkforceStatus
$mWorkforceStatus_Failed :: forall {r}. WorkforceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorkforceStatus_Failed = WorkforceStatus' "Failed"

pattern WorkforceStatus_Initializing :: WorkforceStatus
pattern $bWorkforceStatus_Initializing :: WorkforceStatus
$mWorkforceStatus_Initializing :: forall {r}. WorkforceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorkforceStatus_Initializing = WorkforceStatus' "Initializing"

pattern WorkforceStatus_Updating :: WorkforceStatus
pattern $bWorkforceStatus_Updating :: WorkforceStatus
$mWorkforceStatus_Updating :: forall {r}. WorkforceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorkforceStatus_Updating = WorkforceStatus' "Updating"

{-# COMPLETE
  WorkforceStatus_Active,
  WorkforceStatus_Deleting,
  WorkforceStatus_Failed,
  WorkforceStatus_Initializing,
  WorkforceStatus_Updating,
  WorkforceStatus'
  #-}