{-# 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.WarmPoolResourceStatus
-- 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.WarmPoolResourceStatus
  ( WarmPoolResourceStatus
      ( ..,
        WarmPoolResourceStatus_Available,
        WarmPoolResourceStatus_InUse,
        WarmPoolResourceStatus_Reused,
        WarmPoolResourceStatus_Terminated
      ),
  )
where

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

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

pattern WarmPoolResourceStatus_Available :: WarmPoolResourceStatus
pattern $bWarmPoolResourceStatus_Available :: WarmPoolResourceStatus
$mWarmPoolResourceStatus_Available :: forall {r}.
WarmPoolResourceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WarmPoolResourceStatus_Available = WarmPoolResourceStatus' "Available"

pattern WarmPoolResourceStatus_InUse :: WarmPoolResourceStatus
pattern $bWarmPoolResourceStatus_InUse :: WarmPoolResourceStatus
$mWarmPoolResourceStatus_InUse :: forall {r}.
WarmPoolResourceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WarmPoolResourceStatus_InUse = WarmPoolResourceStatus' "InUse"

pattern WarmPoolResourceStatus_Reused :: WarmPoolResourceStatus
pattern $bWarmPoolResourceStatus_Reused :: WarmPoolResourceStatus
$mWarmPoolResourceStatus_Reused :: forall {r}.
WarmPoolResourceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WarmPoolResourceStatus_Reused = WarmPoolResourceStatus' "Reused"

pattern WarmPoolResourceStatus_Terminated :: WarmPoolResourceStatus
pattern $bWarmPoolResourceStatus_Terminated :: WarmPoolResourceStatus
$mWarmPoolResourceStatus_Terminated :: forall {r}.
WarmPoolResourceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WarmPoolResourceStatus_Terminated = WarmPoolResourceStatus' "Terminated"

{-# COMPLETE
  WarmPoolResourceStatus_Available,
  WarmPoolResourceStatus_InUse,
  WarmPoolResourceStatus_Reused,
  WarmPoolResourceStatus_Terminated,
  WarmPoolResourceStatus'
  #-}