{-# 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.ExecutionClass
-- 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.ExecutionClass
  ( ExecutionClass
      ( ..,
        ExecutionClass_FLEX,
        ExecutionClass_STANDARD
      ),
  )
where

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

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

pattern ExecutionClass_FLEX :: ExecutionClass
pattern $bExecutionClass_FLEX :: ExecutionClass
$mExecutionClass_FLEX :: forall {r}. ExecutionClass -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionClass_FLEX = ExecutionClass' "FLEX"

pattern ExecutionClass_STANDARD :: ExecutionClass
pattern $bExecutionClass_STANDARD :: ExecutionClass
$mExecutionClass_STANDARD :: forall {r}. ExecutionClass -> ((# #) -> r) -> ((# #) -> r) -> r
ExecutionClass_STANDARD = ExecutionClass' "STANDARD"

{-# COMPLETE
  ExecutionClass_FLEX,
  ExecutionClass_STANDARD,
  ExecutionClass'
  #-}