{-# 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.FraudDetector.Types.AsyncJobStatus
-- 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.FraudDetector.Types.AsyncJobStatus
  ( AsyncJobStatus
      ( ..,
        AsyncJobStatus_CANCELED,
        AsyncJobStatus_CANCEL_IN_PROGRESS,
        AsyncJobStatus_COMPLETE,
        AsyncJobStatus_FAILED,
        AsyncJobStatus_IN_PROGRESS,
        AsyncJobStatus_IN_PROGRESS_INITIALIZING
      ),
  )
where

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

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

pattern AsyncJobStatus_CANCELED :: AsyncJobStatus
pattern $bAsyncJobStatus_CANCELED :: AsyncJobStatus
$mAsyncJobStatus_CANCELED :: forall r. AsyncJobStatus -> (Void# -> r) -> (Void# -> r) -> r
AsyncJobStatus_CANCELED = AsyncJobStatus' "CANCELED"

pattern AsyncJobStatus_CANCEL_IN_PROGRESS :: AsyncJobStatus
pattern $bAsyncJobStatus_CANCEL_IN_PROGRESS :: AsyncJobStatus
$mAsyncJobStatus_CANCEL_IN_PROGRESS :: forall r. AsyncJobStatus -> (Void# -> r) -> (Void# -> r) -> r
AsyncJobStatus_CANCEL_IN_PROGRESS = AsyncJobStatus' "CANCEL_IN_PROGRESS"

pattern AsyncJobStatus_COMPLETE :: AsyncJobStatus
pattern $bAsyncJobStatus_COMPLETE :: AsyncJobStatus
$mAsyncJobStatus_COMPLETE :: forall r. AsyncJobStatus -> (Void# -> r) -> (Void# -> r) -> r
AsyncJobStatus_COMPLETE = AsyncJobStatus' "COMPLETE"

pattern AsyncJobStatus_FAILED :: AsyncJobStatus
pattern $bAsyncJobStatus_FAILED :: AsyncJobStatus
$mAsyncJobStatus_FAILED :: forall r. AsyncJobStatus -> (Void# -> r) -> (Void# -> r) -> r
AsyncJobStatus_FAILED = AsyncJobStatus' "FAILED"

pattern AsyncJobStatus_IN_PROGRESS :: AsyncJobStatus
pattern $bAsyncJobStatus_IN_PROGRESS :: AsyncJobStatus
$mAsyncJobStatus_IN_PROGRESS :: forall r. AsyncJobStatus -> (Void# -> r) -> (Void# -> r) -> r
AsyncJobStatus_IN_PROGRESS = AsyncJobStatus' "IN_PROGRESS"

pattern AsyncJobStatus_IN_PROGRESS_INITIALIZING :: AsyncJobStatus
pattern $bAsyncJobStatus_IN_PROGRESS_INITIALIZING :: AsyncJobStatus
$mAsyncJobStatus_IN_PROGRESS_INITIALIZING :: forall r. AsyncJobStatus -> (Void# -> r) -> (Void# -> r) -> r
AsyncJobStatus_IN_PROGRESS_INITIALIZING = AsyncJobStatus' "IN_PROGRESS_INITIALIZING"

{-# COMPLETE
  AsyncJobStatus_CANCELED,
  AsyncJobStatus_CANCEL_IN_PROGRESS,
  AsyncJobStatus_COMPLETE,
  AsyncJobStatus_FAILED,
  AsyncJobStatus_IN_PROGRESS,
  AsyncJobStatus_IN_PROGRESS_INITIALIZING,
  AsyncJobStatus'
  #-}