{-# 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.ModelPackageGroupStatus
-- 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.ModelPackageGroupStatus
  ( ModelPackageGroupStatus
      ( ..,
        ModelPackageGroupStatus_Completed,
        ModelPackageGroupStatus_DeleteFailed,
        ModelPackageGroupStatus_Deleting,
        ModelPackageGroupStatus_Failed,
        ModelPackageGroupStatus_InProgress,
        ModelPackageGroupStatus_Pending
      ),
  )
where

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

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

pattern ModelPackageGroupStatus_Completed :: ModelPackageGroupStatus
pattern $bModelPackageGroupStatus_Completed :: ModelPackageGroupStatus
$mModelPackageGroupStatus_Completed :: forall r.
ModelPackageGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageGroupStatus_Completed = ModelPackageGroupStatus' "Completed"

pattern ModelPackageGroupStatus_DeleteFailed :: ModelPackageGroupStatus
pattern $bModelPackageGroupStatus_DeleteFailed :: ModelPackageGroupStatus
$mModelPackageGroupStatus_DeleteFailed :: forall r.
ModelPackageGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageGroupStatus_DeleteFailed = ModelPackageGroupStatus' "DeleteFailed"

pattern ModelPackageGroupStatus_Deleting :: ModelPackageGroupStatus
pattern $bModelPackageGroupStatus_Deleting :: ModelPackageGroupStatus
$mModelPackageGroupStatus_Deleting :: forall r.
ModelPackageGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageGroupStatus_Deleting = ModelPackageGroupStatus' "Deleting"

pattern ModelPackageGroupStatus_Failed :: ModelPackageGroupStatus
pattern $bModelPackageGroupStatus_Failed :: ModelPackageGroupStatus
$mModelPackageGroupStatus_Failed :: forall r.
ModelPackageGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageGroupStatus_Failed = ModelPackageGroupStatus' "Failed"

pattern ModelPackageGroupStatus_InProgress :: ModelPackageGroupStatus
pattern $bModelPackageGroupStatus_InProgress :: ModelPackageGroupStatus
$mModelPackageGroupStatus_InProgress :: forall r.
ModelPackageGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageGroupStatus_InProgress = ModelPackageGroupStatus' "InProgress"

pattern ModelPackageGroupStatus_Pending :: ModelPackageGroupStatus
pattern $bModelPackageGroupStatus_Pending :: ModelPackageGroupStatus
$mModelPackageGroupStatus_Pending :: forall r.
ModelPackageGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelPackageGroupStatus_Pending = ModelPackageGroupStatus' "Pending"

{-# COMPLETE
  ModelPackageGroupStatus_Completed,
  ModelPackageGroupStatus_DeleteFailed,
  ModelPackageGroupStatus_Deleting,
  ModelPackageGroupStatus_Failed,
  ModelPackageGroupStatus_InProgress,
  ModelPackageGroupStatus_Pending,
  ModelPackageGroupStatus'
  #-}