{-# 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.JQState
-- 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.Batch.Types.JQState
  ( JQState
      ( ..,
        JQState_DISABLED,
        JQState_ENABLED
      ),
  )
where

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

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

pattern JQState_DISABLED :: JQState
pattern $bJQState_DISABLED :: JQState
$mJQState_DISABLED :: forall {r}. JQState -> ((# #) -> r) -> ((# #) -> r) -> r
JQState_DISABLED = JQState' "DISABLED"

pattern JQState_ENABLED :: JQState
pattern $bJQState_ENABLED :: JQState
$mJQState_ENABLED :: forall {r}. JQState -> ((# #) -> r) -> ((# #) -> r) -> r
JQState_ENABLED = JQState' "ENABLED"

{-# COMPLETE
  JQState_DISABLED,
  JQState_ENABLED,
  JQState'
  #-}