{-# 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.CodeGuruReviewer.Types.JobState
-- 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.CodeGuruReviewer.Types.JobState
  ( JobState
      ( ..,
        JobState_Completed,
        JobState_Deleting,
        JobState_Failed,
        JobState_Pending
      ),
  )
where

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

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

pattern JobState_Completed :: JobState
pattern $bJobState_Completed :: JobState
$mJobState_Completed :: forall {r}. JobState -> ((# #) -> r) -> ((# #) -> r) -> r
JobState_Completed = JobState' "Completed"

pattern JobState_Deleting :: JobState
pattern $bJobState_Deleting :: JobState
$mJobState_Deleting :: forall {r}. JobState -> ((# #) -> r) -> ((# #) -> r) -> r
JobState_Deleting = JobState' "Deleting"

pattern JobState_Failed :: JobState
pattern $bJobState_Failed :: JobState
$mJobState_Failed :: forall {r}. JobState -> ((# #) -> r) -> ((# #) -> r) -> r
JobState_Failed = JobState' "Failed"

pattern JobState_Pending :: JobState
pattern $bJobState_Pending :: JobState
$mJobState_Pending :: forall {r}. JobState -> ((# #) -> r) -> ((# #) -> r) -> r
JobState_Pending = JobState' "Pending"

{-# COMPLETE
  JobState_Completed,
  JobState_Deleting,
  JobState_Failed,
  JobState_Pending,
  JobState'
  #-}