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

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

newtype JQState = JQState' {JQState -> Text
fromJQState :: Core.Text}
  deriving stock
    ( Int -> JQState -> ShowS
[JQState] -> ShowS
JQState -> String
(Int -> JQState -> ShowS)
-> (JQState -> String) -> ([JQState] -> ShowS) -> Show JQState
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]
(Int -> ReadS JQState)
-> ReadS [JQState]
-> ReadPrec JQState
-> ReadPrec [JQState]
-> Read 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
(JQState -> JQState -> Bool)
-> (JQState -> JQState -> Bool) -> Eq JQState
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
Eq JQState
-> (JQState -> JQState -> Ordering)
-> (JQState -> JQState -> Bool)
-> (JQState -> JQState -> Bool)
-> (JQState -> JQState -> Bool)
-> (JQState -> JQState -> Bool)
-> (JQState -> JQState -> JQState)
-> (JQState -> JQState -> JQState)
-> Ord 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
$cp1Ord :: Eq JQState
Prelude.Ord,
      (forall x. JQState -> Rep JQState x)
-> (forall x. Rep JQState x -> JQState) -> Generic JQState
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
    ( Int -> JQState -> Int
JQState -> Int
(Int -> JQState -> Int) -> (JQState -> Int) -> Hashable JQState
forall 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 -> ()
(JQState -> ()) -> NFData JQState
forall a. (a -> ()) -> NFData a
rnf :: JQState -> ()
$crnf :: JQState -> ()
Prelude.NFData,
      Text -> Either String JQState
(Text -> Either String JQState) -> FromText JQState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String JQState
$cfromText :: Text -> Either String JQState
Core.FromText,
      JQState -> Text
(JQState -> Text) -> ToText JQState
forall a. (a -> Text) -> ToText a
toText :: JQState -> Text
$ctoText :: JQState -> Text
Core.ToText,
      JQState -> ByteString
(JQState -> ByteString) -> ToByteString JQState
forall a. (a -> ByteString) -> ToByteString a
toBS :: JQState -> ByteString
$ctoBS :: JQState -> ByteString
Core.ToByteString,
      JQState -> ByteStringBuilder
(JQState -> ByteStringBuilder) -> ToLog JQState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: JQState -> ByteStringBuilder
$cbuild :: JQState -> ByteStringBuilder
Core.ToLog,
      HeaderName -> JQState -> [Header]
(HeaderName -> JQState -> [Header]) -> ToHeader JQState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> JQState -> [Header]
$ctoHeader :: HeaderName -> JQState -> [Header]
Core.ToHeader,
      JQState -> QueryString
(JQState -> QueryString) -> ToQuery JQState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: JQState -> QueryString
$ctoQuery :: JQState -> QueryString
Core.ToQuery,
      Value -> Parser [JQState]
Value -> Parser JQState
(Value -> Parser JQState)
-> (Value -> Parser [JQState]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [JQState]
FromJSONKeyFunction JQState
FromJSONKeyFunction JQState
-> FromJSONKeyFunction [JQState] -> FromJSONKey JQState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [JQState]
$cfromJSONKeyList :: FromJSONKeyFunction [JQState]
fromJSONKey :: FromJSONKeyFunction JQState
$cfromJSONKey :: FromJSONKeyFunction JQState
Core.FromJSONKey,
      [JQState] -> Encoding
[JQState] -> Value
JQState -> Encoding
JQState -> Value
(JQState -> Value)
-> (JQState -> Encoding)
-> ([JQState] -> Value)
-> ([JQState] -> Encoding)
-> ToJSON JQState
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
Core.ToJSON,
      ToJSONKeyFunction [JQState]
ToJSONKeyFunction JQState
ToJSONKeyFunction JQState
-> ToJSONKeyFunction [JQState] -> ToJSONKey JQState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [JQState]
$ctoJSONKeyList :: ToJSONKeyFunction [JQState]
toJSONKey :: ToJSONKeyFunction JQState
$ctoJSONKey :: ToJSONKeyFunction JQState
Core.ToJSONKey,
      [Node] -> Either String JQState
([Node] -> Either String JQState) -> FromXML JQState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String JQState
$cparseXML :: [Node] -> Either String JQState
Core.FromXML,
      JQState -> XML
(JQState -> XML) -> ToXML JQState
forall a. (a -> XML) -> ToXML a
toXML :: JQState -> XML
$ctoXML :: JQState -> XML
Core.ToXML
    )

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

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

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