{-# 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.ModelCardExportJobStatus
-- 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.ModelCardExportJobStatus
  ( ModelCardExportJobStatus
      ( ..,
        ModelCardExportJobStatus_Completed,
        ModelCardExportJobStatus_Failed,
        ModelCardExportJobStatus_InProgress
      ),
  )
where

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

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

pattern ModelCardExportJobStatus_Completed :: ModelCardExportJobStatus
pattern $bModelCardExportJobStatus_Completed :: ModelCardExportJobStatus
$mModelCardExportJobStatus_Completed :: forall {r}.
ModelCardExportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelCardExportJobStatus_Completed = ModelCardExportJobStatus' "Completed"

pattern ModelCardExportJobStatus_Failed :: ModelCardExportJobStatus
pattern $bModelCardExportJobStatus_Failed :: ModelCardExportJobStatus
$mModelCardExportJobStatus_Failed :: forall {r}.
ModelCardExportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelCardExportJobStatus_Failed = ModelCardExportJobStatus' "Failed"

pattern ModelCardExportJobStatus_InProgress :: ModelCardExportJobStatus
pattern $bModelCardExportJobStatus_InProgress :: ModelCardExportJobStatus
$mModelCardExportJobStatus_InProgress :: forall {r}.
ModelCardExportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelCardExportJobStatus_InProgress = ModelCardExportJobStatus' "InProgress"

{-# COMPLETE
  ModelCardExportJobStatus_Completed,
  ModelCardExportJobStatus_Failed,
  ModelCardExportJobStatus_InProgress,
  ModelCardExportJobStatus'
  #-}