{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype EdgePackagingJobStatus = EdgePackagingJobStatus'
  { EdgePackagingJobStatus -> Text
fromEdgePackagingJobStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> EdgePackagingJobStatus -> ShowS
[EdgePackagingJobStatus] -> ShowS
EdgePackagingJobStatus -> String
(Int -> EdgePackagingJobStatus -> ShowS)
-> (EdgePackagingJobStatus -> String)
-> ([EdgePackagingJobStatus] -> ShowS)
-> Show EdgePackagingJobStatus
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]
(Int -> ReadS EdgePackagingJobStatus)
-> ReadS [EdgePackagingJobStatus]
-> ReadPrec EdgePackagingJobStatus
-> ReadPrec [EdgePackagingJobStatus]
-> Read 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
(EdgePackagingJobStatus -> EdgePackagingJobStatus -> Bool)
-> (EdgePackagingJobStatus -> EdgePackagingJobStatus -> Bool)
-> Eq EdgePackagingJobStatus
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
Eq EdgePackagingJobStatus
-> (EdgePackagingJobStatus -> EdgePackagingJobStatus -> Ordering)
-> (EdgePackagingJobStatus -> EdgePackagingJobStatus -> Bool)
-> (EdgePackagingJobStatus -> EdgePackagingJobStatus -> Bool)
-> (EdgePackagingJobStatus -> EdgePackagingJobStatus -> Bool)
-> (EdgePackagingJobStatus -> EdgePackagingJobStatus -> Bool)
-> (EdgePackagingJobStatus
    -> EdgePackagingJobStatus -> EdgePackagingJobStatus)
-> (EdgePackagingJobStatus
    -> EdgePackagingJobStatus -> EdgePackagingJobStatus)
-> Ord 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
$cp1Ord :: Eq EdgePackagingJobStatus
Prelude.Ord,
      (forall x. EdgePackagingJobStatus -> Rep EdgePackagingJobStatus x)
-> (forall x.
    Rep EdgePackagingJobStatus x -> EdgePackagingJobStatus)
-> Generic EdgePackagingJobStatus
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
    ( Int -> EdgePackagingJobStatus -> Int
EdgePackagingJobStatus -> Int
(Int -> EdgePackagingJobStatus -> Int)
-> (EdgePackagingJobStatus -> Int)
-> Hashable EdgePackagingJobStatus
forall 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 -> ()
(EdgePackagingJobStatus -> ()) -> NFData EdgePackagingJobStatus
forall a. (a -> ()) -> NFData a
rnf :: EdgePackagingJobStatus -> ()
$crnf :: EdgePackagingJobStatus -> ()
Prelude.NFData,
      Text -> Either String EdgePackagingJobStatus
(Text -> Either String EdgePackagingJobStatus)
-> FromText EdgePackagingJobStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EdgePackagingJobStatus
$cfromText :: Text -> Either String EdgePackagingJobStatus
Core.FromText,
      EdgePackagingJobStatus -> Text
(EdgePackagingJobStatus -> Text) -> ToText EdgePackagingJobStatus
forall a. (a -> Text) -> ToText a
toText :: EdgePackagingJobStatus -> Text
$ctoText :: EdgePackagingJobStatus -> Text
Core.ToText,
      EdgePackagingJobStatus -> ByteString
(EdgePackagingJobStatus -> ByteString)
-> ToByteString EdgePackagingJobStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: EdgePackagingJobStatus -> ByteString
$ctoBS :: EdgePackagingJobStatus -> ByteString
Core.ToByteString,
      EdgePackagingJobStatus -> ByteStringBuilder
(EdgePackagingJobStatus -> ByteStringBuilder)
-> ToLog EdgePackagingJobStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EdgePackagingJobStatus -> ByteStringBuilder
$cbuild :: EdgePackagingJobStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> EdgePackagingJobStatus -> [Header]
(HeaderName -> EdgePackagingJobStatus -> [Header])
-> ToHeader EdgePackagingJobStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EdgePackagingJobStatus -> [Header]
$ctoHeader :: HeaderName -> EdgePackagingJobStatus -> [Header]
Core.ToHeader,
      EdgePackagingJobStatus -> QueryString
(EdgePackagingJobStatus -> QueryString)
-> ToQuery EdgePackagingJobStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EdgePackagingJobStatus -> QueryString
$ctoQuery :: EdgePackagingJobStatus -> QueryString
Core.ToQuery,
      Value -> Parser [EdgePackagingJobStatus]
Value -> Parser EdgePackagingJobStatus
(Value -> Parser EdgePackagingJobStatus)
-> (Value -> Parser [EdgePackagingJobStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [EdgePackagingJobStatus]
FromJSONKeyFunction EdgePackagingJobStatus
FromJSONKeyFunction EdgePackagingJobStatus
-> FromJSONKeyFunction [EdgePackagingJobStatus]
-> FromJSONKey EdgePackagingJobStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EdgePackagingJobStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [EdgePackagingJobStatus]
fromJSONKey :: FromJSONKeyFunction EdgePackagingJobStatus
$cfromJSONKey :: FromJSONKeyFunction EdgePackagingJobStatus
Core.FromJSONKey,
      [EdgePackagingJobStatus] -> Encoding
[EdgePackagingJobStatus] -> Value
EdgePackagingJobStatus -> Encoding
EdgePackagingJobStatus -> Value
(EdgePackagingJobStatus -> Value)
-> (EdgePackagingJobStatus -> Encoding)
-> ([EdgePackagingJobStatus] -> Value)
-> ([EdgePackagingJobStatus] -> Encoding)
-> ToJSON EdgePackagingJobStatus
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
Core.ToJSON,
      ToJSONKeyFunction [EdgePackagingJobStatus]
ToJSONKeyFunction EdgePackagingJobStatus
ToJSONKeyFunction EdgePackagingJobStatus
-> ToJSONKeyFunction [EdgePackagingJobStatus]
-> ToJSONKey EdgePackagingJobStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EdgePackagingJobStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [EdgePackagingJobStatus]
toJSONKey :: ToJSONKeyFunction EdgePackagingJobStatus
$ctoJSONKey :: ToJSONKeyFunction EdgePackagingJobStatus
Core.ToJSONKey,
      [Node] -> Either String EdgePackagingJobStatus
([Node] -> Either String EdgePackagingJobStatus)
-> FromXML EdgePackagingJobStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EdgePackagingJobStatus
$cparseXML :: [Node] -> Either String EdgePackagingJobStatus
Core.FromXML,
      EdgePackagingJobStatus -> XML
(EdgePackagingJobStatus -> XML) -> ToXML EdgePackagingJobStatus
forall a. (a -> XML) -> ToXML a
toXML :: EdgePackagingJobStatus -> XML
$ctoXML :: EdgePackagingJobStatus -> XML
Core.ToXML
    )

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

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

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

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

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

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

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