{-# 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.LookoutVision.Types.ModelPackagingJobStatus
-- 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.LookoutVision.Types.ModelPackagingJobStatus
  ( ModelPackagingJobStatus
      ( ..,
        ModelPackagingJobStatus_CREATED,
        ModelPackagingJobStatus_FAILED,
        ModelPackagingJobStatus_RUNNING,
        ModelPackagingJobStatus_SUCCEEDED
      ),
  )
where

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

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

pattern ModelPackagingJobStatus_CREATED :: ModelPackagingJobStatus
pattern $bModelPackagingJobStatus_CREATED :: ModelPackagingJobStatus
$mModelPackagingJobStatus_CREATED :: forall {r}.
ModelPackagingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelPackagingJobStatus_CREATED = ModelPackagingJobStatus' "CREATED"

pattern ModelPackagingJobStatus_FAILED :: ModelPackagingJobStatus
pattern $bModelPackagingJobStatus_FAILED :: ModelPackagingJobStatus
$mModelPackagingJobStatus_FAILED :: forall {r}.
ModelPackagingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelPackagingJobStatus_FAILED = ModelPackagingJobStatus' "FAILED"

pattern ModelPackagingJobStatus_RUNNING :: ModelPackagingJobStatus
pattern $bModelPackagingJobStatus_RUNNING :: ModelPackagingJobStatus
$mModelPackagingJobStatus_RUNNING :: forall {r}.
ModelPackagingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelPackagingJobStatus_RUNNING = ModelPackagingJobStatus' "RUNNING"

pattern ModelPackagingJobStatus_SUCCEEDED :: ModelPackagingJobStatus
pattern $bModelPackagingJobStatus_SUCCEEDED :: ModelPackagingJobStatus
$mModelPackagingJobStatus_SUCCEEDED :: forall {r}.
ModelPackagingJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelPackagingJobStatus_SUCCEEDED = ModelPackagingJobStatus' "SUCCEEDED"

{-# COMPLETE
  ModelPackagingJobStatus_CREATED,
  ModelPackagingJobStatus_FAILED,
  ModelPackagingJobStatus_RUNNING,
  ModelPackagingJobStatus_SUCCEEDED,
  ModelPackagingJobStatus'
  #-}