{-# 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.Batch.Types.JQStatus
-- 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.Batch.Types.JQStatus
  ( JQStatus
      ( ..,
        JQStatus_CREATING,
        JQStatus_DELETED,
        JQStatus_DELETING,
        JQStatus_INVALID,
        JQStatus_UPDATING,
        JQStatus_VALID
      ),
  )
where

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

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

pattern JQStatus_CREATING :: JQStatus
pattern $bJQStatus_CREATING :: JQStatus
$mJQStatus_CREATING :: forall r. JQStatus -> (Void# -> r) -> (Void# -> r) -> r
JQStatus_CREATING = JQStatus' "CREATING"

pattern JQStatus_DELETED :: JQStatus
pattern $bJQStatus_DELETED :: JQStatus
$mJQStatus_DELETED :: forall r. JQStatus -> (Void# -> r) -> (Void# -> r) -> r
JQStatus_DELETED = JQStatus' "DELETED"

pattern JQStatus_DELETING :: JQStatus
pattern $bJQStatus_DELETING :: JQStatus
$mJQStatus_DELETING :: forall r. JQStatus -> (Void# -> r) -> (Void# -> r) -> r
JQStatus_DELETING = JQStatus' "DELETING"

pattern JQStatus_INVALID :: JQStatus
pattern $bJQStatus_INVALID :: JQStatus
$mJQStatus_INVALID :: forall r. JQStatus -> (Void# -> r) -> (Void# -> r) -> r
JQStatus_INVALID = JQStatus' "INVALID"

pattern JQStatus_UPDATING :: JQStatus
pattern $bJQStatus_UPDATING :: JQStatus
$mJQStatus_UPDATING :: forall r. JQStatus -> (Void# -> r) -> (Void# -> r) -> r
JQStatus_UPDATING = JQStatus' "UPDATING"

pattern JQStatus_VALID :: JQStatus
pattern $bJQStatus_VALID :: JQStatus
$mJQStatus_VALID :: forall r. JQStatus -> (Void# -> r) -> (Void# -> r) -> r
JQStatus_VALID = JQStatus' "VALID"

{-# COMPLETE
  JQStatus_CREATING,
  JQStatus_DELETED,
  JQStatus_DELETING,
  JQStatus_INVALID,
  JQStatus_UPDATING,
  JQStatus_VALID,
  JQStatus'
  #-}