{-# 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.Glue.Types.StatementState
-- 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.Glue.Types.StatementState
  ( StatementState
      ( ..,
        StatementState_AVAILABLE,
        StatementState_CANCELLED,
        StatementState_CANCELLING,
        StatementState_ERROR,
        StatementState_RUNNING,
        StatementState_WAITING
      ),
  )
where

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

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

pattern StatementState_AVAILABLE :: StatementState
pattern $bStatementState_AVAILABLE :: StatementState
$mStatementState_AVAILABLE :: forall {r}. StatementState -> ((# #) -> r) -> ((# #) -> r) -> r
StatementState_AVAILABLE = StatementState' "AVAILABLE"

pattern StatementState_CANCELLED :: StatementState
pattern $bStatementState_CANCELLED :: StatementState
$mStatementState_CANCELLED :: forall {r}. StatementState -> ((# #) -> r) -> ((# #) -> r) -> r
StatementState_CANCELLED = StatementState' "CANCELLED"

pattern StatementState_CANCELLING :: StatementState
pattern $bStatementState_CANCELLING :: StatementState
$mStatementState_CANCELLING :: forall {r}. StatementState -> ((# #) -> r) -> ((# #) -> r) -> r
StatementState_CANCELLING = StatementState' "CANCELLING"

pattern StatementState_ERROR :: StatementState
pattern $bStatementState_ERROR :: StatementState
$mStatementState_ERROR :: forall {r}. StatementState -> ((# #) -> r) -> ((# #) -> r) -> r
StatementState_ERROR = StatementState' "ERROR"

pattern StatementState_RUNNING :: StatementState
pattern $bStatementState_RUNNING :: StatementState
$mStatementState_RUNNING :: forall {r}. StatementState -> ((# #) -> r) -> ((# #) -> r) -> r
StatementState_RUNNING = StatementState' "RUNNING"

pattern StatementState_WAITING :: StatementState
pattern $bStatementState_WAITING :: StatementState
$mStatementState_WAITING :: forall {r}. StatementState -> ((# #) -> r) -> ((# #) -> r) -> r
StatementState_WAITING = StatementState' "WAITING"

{-# COMPLETE
  StatementState_AVAILABLE,
  StatementState_CANCELLED,
  StatementState_CANCELLING,
  StatementState_ERROR,
  StatementState_RUNNING,
  StatementState_WAITING,
  StatementState'
  #-}