{-# 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.DeviceDeploymentStatus
-- 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.DeviceDeploymentStatus
  ( DeviceDeploymentStatus
      ( ..,
        DeviceDeploymentStatus_DEPLOYED,
        DeviceDeploymentStatus_FAILED,
        DeviceDeploymentStatus_INPROGRESS,
        DeviceDeploymentStatus_READYTODEPLOY,
        DeviceDeploymentStatus_STOPPED,
        DeviceDeploymentStatus_STOPPING
      ),
  )
where

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

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

pattern DeviceDeploymentStatus_DEPLOYED :: DeviceDeploymentStatus
pattern $bDeviceDeploymentStatus_DEPLOYED :: DeviceDeploymentStatus
$mDeviceDeploymentStatus_DEPLOYED :: forall {r}.
DeviceDeploymentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceDeploymentStatus_DEPLOYED = DeviceDeploymentStatus' "DEPLOYED"

pattern DeviceDeploymentStatus_FAILED :: DeviceDeploymentStatus
pattern $bDeviceDeploymentStatus_FAILED :: DeviceDeploymentStatus
$mDeviceDeploymentStatus_FAILED :: forall {r}.
DeviceDeploymentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceDeploymentStatus_FAILED = DeviceDeploymentStatus' "FAILED"

pattern DeviceDeploymentStatus_INPROGRESS :: DeviceDeploymentStatus
pattern $bDeviceDeploymentStatus_INPROGRESS :: DeviceDeploymentStatus
$mDeviceDeploymentStatus_INPROGRESS :: forall {r}.
DeviceDeploymentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceDeploymentStatus_INPROGRESS = DeviceDeploymentStatus' "INPROGRESS"

pattern DeviceDeploymentStatus_READYTODEPLOY :: DeviceDeploymentStatus
pattern $bDeviceDeploymentStatus_READYTODEPLOY :: DeviceDeploymentStatus
$mDeviceDeploymentStatus_READYTODEPLOY :: forall {r}.
DeviceDeploymentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceDeploymentStatus_READYTODEPLOY = DeviceDeploymentStatus' "READYTODEPLOY"

pattern DeviceDeploymentStatus_STOPPED :: DeviceDeploymentStatus
pattern $bDeviceDeploymentStatus_STOPPED :: DeviceDeploymentStatus
$mDeviceDeploymentStatus_STOPPED :: forall {r}.
DeviceDeploymentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceDeploymentStatus_STOPPED = DeviceDeploymentStatus' "STOPPED"

pattern DeviceDeploymentStatus_STOPPING :: DeviceDeploymentStatus
pattern $bDeviceDeploymentStatus_STOPPING :: DeviceDeploymentStatus
$mDeviceDeploymentStatus_STOPPING :: forall {r}.
DeviceDeploymentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceDeploymentStatus_STOPPING = DeviceDeploymentStatus' "STOPPING"

{-# COMPLETE
  DeviceDeploymentStatus_DEPLOYED,
  DeviceDeploymentStatus_FAILED,
  DeviceDeploymentStatus_INPROGRESS,
  DeviceDeploymentStatus_READYTODEPLOY,
  DeviceDeploymentStatus_STOPPED,
  DeviceDeploymentStatus_STOPPING,
  DeviceDeploymentStatus'
  #-}