{-# 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.EdgePackagingJobStatus
-- 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.EdgePackagingJobStatus
  ( EdgePackagingJobStatus
      ( ..,
        EdgePackagingJobStatus_COMPLETED,
        EdgePackagingJobStatus_FAILED,
        EdgePackagingJobStatus_INPROGRESS,
        EdgePackagingJobStatus_STARTING,
        EdgePackagingJobStatus_STOPPED,
        EdgePackagingJobStatus_STOPPING
      ),
  )
where

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

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

pattern EdgePackagingJobStatus_COMPLETED :: EdgePackagingJobStatus
pattern $bEdgePackagingJobStatus_COMPLETED :: EdgePackagingJobStatus
$mEdgePackagingJobStatus_COMPLETED :: forall {r}.
EdgePackagingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EdgePackagingJobStatus_COMPLETED = EdgePackagingJobStatus' "COMPLETED"

pattern EdgePackagingJobStatus_FAILED :: EdgePackagingJobStatus
pattern $bEdgePackagingJobStatus_FAILED :: EdgePackagingJobStatus
$mEdgePackagingJobStatus_FAILED :: forall {r}.
EdgePackagingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EdgePackagingJobStatus_FAILED = EdgePackagingJobStatus' "FAILED"

pattern EdgePackagingJobStatus_INPROGRESS :: EdgePackagingJobStatus
pattern $bEdgePackagingJobStatus_INPROGRESS :: EdgePackagingJobStatus
$mEdgePackagingJobStatus_INPROGRESS :: forall {r}.
EdgePackagingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EdgePackagingJobStatus_INPROGRESS = EdgePackagingJobStatus' "INPROGRESS"

pattern EdgePackagingJobStatus_STARTING :: EdgePackagingJobStatus
pattern $bEdgePackagingJobStatus_STARTING :: EdgePackagingJobStatus
$mEdgePackagingJobStatus_STARTING :: forall {r}.
EdgePackagingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EdgePackagingJobStatus_STARTING = EdgePackagingJobStatus' "STARTING"

pattern EdgePackagingJobStatus_STOPPED :: EdgePackagingJobStatus
pattern $bEdgePackagingJobStatus_STOPPED :: EdgePackagingJobStatus
$mEdgePackagingJobStatus_STOPPED :: forall {r}.
EdgePackagingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EdgePackagingJobStatus_STOPPED = EdgePackagingJobStatus' "STOPPED"

pattern EdgePackagingJobStatus_STOPPING :: EdgePackagingJobStatus
pattern $bEdgePackagingJobStatus_STOPPING :: EdgePackagingJobStatus
$mEdgePackagingJobStatus_STOPPING :: forall {r}.
EdgePackagingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EdgePackagingJobStatus_STOPPING = EdgePackagingJobStatus' "STOPPING"

{-# COMPLETE
  EdgePackagingJobStatus_COMPLETED,
  EdgePackagingJobStatus_FAILED,
  EdgePackagingJobStatus_INPROGRESS,
  EdgePackagingJobStatus_STARTING,
  EdgePackagingJobStatus_STOPPED,
  EdgePackagingJobStatus_STOPPING,
  EdgePackagingJobStatus'
  #-}