{-# 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.IoTJobsData.Types.JobExecutionStatus
-- 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.IoTJobsData.Types.JobExecutionStatus
  ( JobExecutionStatus
      ( ..,
        JobExecutionStatus_CANCELED,
        JobExecutionStatus_FAILED,
        JobExecutionStatus_IN_PROGRESS,
        JobExecutionStatus_QUEUED,
        JobExecutionStatus_REJECTED,
        JobExecutionStatus_REMOVED,
        JobExecutionStatus_SUCCEEDED,
        JobExecutionStatus_TIMED_OUT
      ),
  )
where

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

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

pattern JobExecutionStatus_CANCELED :: JobExecutionStatus
pattern $bJobExecutionStatus_CANCELED :: JobExecutionStatus
$mJobExecutionStatus_CANCELED :: forall r. JobExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
JobExecutionStatus_CANCELED = JobExecutionStatus' "CANCELED"

pattern JobExecutionStatus_FAILED :: JobExecutionStatus
pattern $bJobExecutionStatus_FAILED :: JobExecutionStatus
$mJobExecutionStatus_FAILED :: forall r. JobExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
JobExecutionStatus_FAILED = JobExecutionStatus' "FAILED"

pattern JobExecutionStatus_IN_PROGRESS :: JobExecutionStatus
pattern $bJobExecutionStatus_IN_PROGRESS :: JobExecutionStatus
$mJobExecutionStatus_IN_PROGRESS :: forall r. JobExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
JobExecutionStatus_IN_PROGRESS = JobExecutionStatus' "IN_PROGRESS"

pattern JobExecutionStatus_QUEUED :: JobExecutionStatus
pattern $bJobExecutionStatus_QUEUED :: JobExecutionStatus
$mJobExecutionStatus_QUEUED :: forall r. JobExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
JobExecutionStatus_QUEUED = JobExecutionStatus' "QUEUED"

pattern JobExecutionStatus_REJECTED :: JobExecutionStatus
pattern $bJobExecutionStatus_REJECTED :: JobExecutionStatus
$mJobExecutionStatus_REJECTED :: forall r. JobExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
JobExecutionStatus_REJECTED = JobExecutionStatus' "REJECTED"

pattern JobExecutionStatus_REMOVED :: JobExecutionStatus
pattern $bJobExecutionStatus_REMOVED :: JobExecutionStatus
$mJobExecutionStatus_REMOVED :: forall r. JobExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
JobExecutionStatus_REMOVED = JobExecutionStatus' "REMOVED"

pattern JobExecutionStatus_SUCCEEDED :: JobExecutionStatus
pattern $bJobExecutionStatus_SUCCEEDED :: JobExecutionStatus
$mJobExecutionStatus_SUCCEEDED :: forall r. JobExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
JobExecutionStatus_SUCCEEDED = JobExecutionStatus' "SUCCEEDED"

pattern JobExecutionStatus_TIMED_OUT :: JobExecutionStatus
pattern $bJobExecutionStatus_TIMED_OUT :: JobExecutionStatus
$mJobExecutionStatus_TIMED_OUT :: forall r. JobExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
JobExecutionStatus_TIMED_OUT = JobExecutionStatus' "TIMED_OUT"

{-# COMPLETE
  JobExecutionStatus_CANCELED,
  JobExecutionStatus_FAILED,
  JobExecutionStatus_IN_PROGRESS,
  JobExecutionStatus_QUEUED,
  JobExecutionStatus_REJECTED,
  JobExecutionStatus_REMOVED,
  JobExecutionStatus_SUCCEEDED,
  JobExecutionStatus_TIMED_OUT,
  JobExecutionStatus'
  #-}