{-# 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.LookoutEquipment.Types.IngestionJobStatus
-- 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.LookoutEquipment.Types.IngestionJobStatus
  ( IngestionJobStatus
      ( ..,
        IngestionJobStatus_FAILED,
        IngestionJobStatus_IN_PROGRESS,
        IngestionJobStatus_SUCCESS
      ),
  )
where

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

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

pattern IngestionJobStatus_FAILED :: IngestionJobStatus
pattern $bIngestionJobStatus_FAILED :: IngestionJobStatus
$mIngestionJobStatus_FAILED :: forall {r}. IngestionJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IngestionJobStatus_FAILED = IngestionJobStatus' "FAILED"

pattern IngestionJobStatus_IN_PROGRESS :: IngestionJobStatus
pattern $bIngestionJobStatus_IN_PROGRESS :: IngestionJobStatus
$mIngestionJobStatus_IN_PROGRESS :: forall {r}. IngestionJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IngestionJobStatus_IN_PROGRESS = IngestionJobStatus' "IN_PROGRESS"

pattern IngestionJobStatus_SUCCESS :: IngestionJobStatus
pattern $bIngestionJobStatus_SUCCESS :: IngestionJobStatus
$mIngestionJobStatus_SUCCESS :: forall {r}. IngestionJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IngestionJobStatus_SUCCESS = IngestionJobStatus' "SUCCESS"

{-# COMPLETE
  IngestionJobStatus_FAILED,
  IngestionJobStatus_IN_PROGRESS,
  IngestionJobStatus_SUCCESS,
  IngestionJobStatus'
  #-}