{-# 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.EdgePresetDeploymentStatus
-- 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.EdgePresetDeploymentStatus
  ( EdgePresetDeploymentStatus
      ( ..,
        EdgePresetDeploymentStatus_COMPLETED,
        EdgePresetDeploymentStatus_FAILED
      ),
  )
where

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

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

pattern EdgePresetDeploymentStatus_COMPLETED :: EdgePresetDeploymentStatus
pattern $bEdgePresetDeploymentStatus_COMPLETED :: EdgePresetDeploymentStatus
$mEdgePresetDeploymentStatus_COMPLETED :: forall {r}.
EdgePresetDeploymentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EdgePresetDeploymentStatus_COMPLETED = EdgePresetDeploymentStatus' "COMPLETED"

pattern EdgePresetDeploymentStatus_FAILED :: EdgePresetDeploymentStatus
pattern $bEdgePresetDeploymentStatus_FAILED :: EdgePresetDeploymentStatus
$mEdgePresetDeploymentStatus_FAILED :: forall {r}.
EdgePresetDeploymentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EdgePresetDeploymentStatus_FAILED = EdgePresetDeploymentStatus' "FAILED"

{-# COMPLETE
  EdgePresetDeploymentStatus_COMPLETED,
  EdgePresetDeploymentStatus_FAILED,
  EdgePresetDeploymentStatus'
  #-}