{-# 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.ModelPackageStatus
-- 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.ModelPackageStatus
  ( ModelPackageStatus
      ( ..,
        ModelPackageStatus_Completed,
        ModelPackageStatus_Deleting,
        ModelPackageStatus_Failed,
        ModelPackageStatus_InProgress,
        ModelPackageStatus_Pending
      ),
  )
where

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

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

pattern ModelPackageStatus_Completed :: ModelPackageStatus
pattern $bModelPackageStatus_Completed :: ModelPackageStatus
$mModelPackageStatus_Completed :: forall r. ModelPackageStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageStatus_Completed = ModelPackageStatus' "Completed"

pattern ModelPackageStatus_Deleting :: ModelPackageStatus
pattern $bModelPackageStatus_Deleting :: ModelPackageStatus
$mModelPackageStatus_Deleting :: forall r. ModelPackageStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageStatus_Deleting = ModelPackageStatus' "Deleting"

pattern ModelPackageStatus_Failed :: ModelPackageStatus
pattern $bModelPackageStatus_Failed :: ModelPackageStatus
$mModelPackageStatus_Failed :: forall r. ModelPackageStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageStatus_Failed = ModelPackageStatus' "Failed"

pattern ModelPackageStatus_InProgress :: ModelPackageStatus
pattern $bModelPackageStatus_InProgress :: ModelPackageStatus
$mModelPackageStatus_InProgress :: forall r. ModelPackageStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageStatus_InProgress = ModelPackageStatus' "InProgress"

pattern ModelPackageStatus_Pending :: ModelPackageStatus
pattern $bModelPackageStatus_Pending :: ModelPackageStatus
$mModelPackageStatus_Pending :: forall r. ModelPackageStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageStatus_Pending = ModelPackageStatus' "Pending"

{-# COMPLETE
  ModelPackageStatus_Completed,
  ModelPackageStatus_Deleting,
  ModelPackageStatus_Failed,
  ModelPackageStatus_InProgress,
  ModelPackageStatus_Pending,
  ModelPackageStatus'
  #-}