{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Athena.Types.WorkGroupState
( WorkGroupState
( ..,
WorkGroupState_DISABLED,
WorkGroupState_ENABLED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype WorkGroupState = WorkGroupState'
{ WorkGroupState -> Text
fromWorkGroupState ::
Core.Text
}
deriving stock
( Int -> WorkGroupState -> ShowS
[WorkGroupState] -> ShowS
WorkGroupState -> String
(Int -> WorkGroupState -> ShowS)
-> (WorkGroupState -> String)
-> ([WorkGroupState] -> ShowS)
-> Show WorkGroupState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorkGroupState] -> ShowS
$cshowList :: [WorkGroupState] -> ShowS
show :: WorkGroupState -> String
$cshow :: WorkGroupState -> String
showsPrec :: Int -> WorkGroupState -> ShowS
$cshowsPrec :: Int -> WorkGroupState -> ShowS
Prelude.Show,
ReadPrec [WorkGroupState]
ReadPrec WorkGroupState
Int -> ReadS WorkGroupState
ReadS [WorkGroupState]
(Int -> ReadS WorkGroupState)
-> ReadS [WorkGroupState]
-> ReadPrec WorkGroupState
-> ReadPrec [WorkGroupState]
-> Read WorkGroupState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorkGroupState]
$creadListPrec :: ReadPrec [WorkGroupState]
readPrec :: ReadPrec WorkGroupState
$creadPrec :: ReadPrec WorkGroupState
readList :: ReadS [WorkGroupState]
$creadList :: ReadS [WorkGroupState]
readsPrec :: Int -> ReadS WorkGroupState
$creadsPrec :: Int -> ReadS WorkGroupState
Prelude.Read,
WorkGroupState -> WorkGroupState -> Bool
(WorkGroupState -> WorkGroupState -> Bool)
-> (WorkGroupState -> WorkGroupState -> Bool) -> Eq WorkGroupState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorkGroupState -> WorkGroupState -> Bool
$c/= :: WorkGroupState -> WorkGroupState -> Bool
== :: WorkGroupState -> WorkGroupState -> Bool
$c== :: WorkGroupState -> WorkGroupState -> Bool
Prelude.Eq,
Eq WorkGroupState
Eq WorkGroupState
-> (WorkGroupState -> WorkGroupState -> Ordering)
-> (WorkGroupState -> WorkGroupState -> Bool)
-> (WorkGroupState -> WorkGroupState -> Bool)
-> (WorkGroupState -> WorkGroupState -> Bool)
-> (WorkGroupState -> WorkGroupState -> Bool)
-> (WorkGroupState -> WorkGroupState -> WorkGroupState)
-> (WorkGroupState -> WorkGroupState -> WorkGroupState)
-> Ord WorkGroupState
WorkGroupState -> WorkGroupState -> Bool
WorkGroupState -> WorkGroupState -> Ordering
WorkGroupState -> WorkGroupState -> WorkGroupState
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 :: WorkGroupState -> WorkGroupState -> WorkGroupState
$cmin :: WorkGroupState -> WorkGroupState -> WorkGroupState
max :: WorkGroupState -> WorkGroupState -> WorkGroupState
$cmax :: WorkGroupState -> WorkGroupState -> WorkGroupState
>= :: WorkGroupState -> WorkGroupState -> Bool
$c>= :: WorkGroupState -> WorkGroupState -> Bool
> :: WorkGroupState -> WorkGroupState -> Bool
$c> :: WorkGroupState -> WorkGroupState -> Bool
<= :: WorkGroupState -> WorkGroupState -> Bool
$c<= :: WorkGroupState -> WorkGroupState -> Bool
< :: WorkGroupState -> WorkGroupState -> Bool
$c< :: WorkGroupState -> WorkGroupState -> Bool
compare :: WorkGroupState -> WorkGroupState -> Ordering
$ccompare :: WorkGroupState -> WorkGroupState -> Ordering
$cp1Ord :: Eq WorkGroupState
Prelude.Ord,
(forall x. WorkGroupState -> Rep WorkGroupState x)
-> (forall x. Rep WorkGroupState x -> WorkGroupState)
-> Generic WorkGroupState
forall x. Rep WorkGroupState x -> WorkGroupState
forall x. WorkGroupState -> Rep WorkGroupState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep WorkGroupState x -> WorkGroupState
$cfrom :: forall x. WorkGroupState -> Rep WorkGroupState x
Prelude.Generic
)
deriving newtype
( Int -> WorkGroupState -> Int
WorkGroupState -> Int
(Int -> WorkGroupState -> Int)
-> (WorkGroupState -> Int) -> Hashable WorkGroupState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: WorkGroupState -> Int
$chash :: WorkGroupState -> Int
hashWithSalt :: Int -> WorkGroupState -> Int
$chashWithSalt :: Int -> WorkGroupState -> Int
Prelude.Hashable,
WorkGroupState -> ()
(WorkGroupState -> ()) -> NFData WorkGroupState
forall a. (a -> ()) -> NFData a
rnf :: WorkGroupState -> ()
$crnf :: WorkGroupState -> ()
Prelude.NFData,
Text -> Either String WorkGroupState
(Text -> Either String WorkGroupState) -> FromText WorkGroupState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WorkGroupState
$cfromText :: Text -> Either String WorkGroupState
Core.FromText,
WorkGroupState -> Text
(WorkGroupState -> Text) -> ToText WorkGroupState
forall a. (a -> Text) -> ToText a
toText :: WorkGroupState -> Text
$ctoText :: WorkGroupState -> Text
Core.ToText,
WorkGroupState -> ByteString
(WorkGroupState -> ByteString) -> ToByteString WorkGroupState
forall a. (a -> ByteString) -> ToByteString a
toBS :: WorkGroupState -> ByteString
$ctoBS :: WorkGroupState -> ByteString
Core.ToByteString,
WorkGroupState -> ByteStringBuilder
(WorkGroupState -> ByteStringBuilder) -> ToLog WorkGroupState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WorkGroupState -> ByteStringBuilder
$cbuild :: WorkGroupState -> ByteStringBuilder
Core.ToLog,
HeaderName -> WorkGroupState -> [Header]
(HeaderName -> WorkGroupState -> [Header])
-> ToHeader WorkGroupState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WorkGroupState -> [Header]
$ctoHeader :: HeaderName -> WorkGroupState -> [Header]
Core.ToHeader,
WorkGroupState -> QueryString
(WorkGroupState -> QueryString) -> ToQuery WorkGroupState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WorkGroupState -> QueryString
$ctoQuery :: WorkGroupState -> QueryString
Core.ToQuery,
Value -> Parser [WorkGroupState]
Value -> Parser WorkGroupState
(Value -> Parser WorkGroupState)
-> (Value -> Parser [WorkGroupState]) -> FromJSON WorkGroupState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [WorkGroupState]
$cparseJSONList :: Value -> Parser [WorkGroupState]
parseJSON :: Value -> Parser WorkGroupState
$cparseJSON :: Value -> Parser WorkGroupState
Core.FromJSON,
FromJSONKeyFunction [WorkGroupState]
FromJSONKeyFunction WorkGroupState
FromJSONKeyFunction WorkGroupState
-> FromJSONKeyFunction [WorkGroupState]
-> FromJSONKey WorkGroupState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WorkGroupState]
$cfromJSONKeyList :: FromJSONKeyFunction [WorkGroupState]
fromJSONKey :: FromJSONKeyFunction WorkGroupState
$cfromJSONKey :: FromJSONKeyFunction WorkGroupState
Core.FromJSONKey,
[WorkGroupState] -> Encoding
[WorkGroupState] -> Value
WorkGroupState -> Encoding
WorkGroupState -> Value
(WorkGroupState -> Value)
-> (WorkGroupState -> Encoding)
-> ([WorkGroupState] -> Value)
-> ([WorkGroupState] -> Encoding)
-> ToJSON WorkGroupState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [WorkGroupState] -> Encoding
$ctoEncodingList :: [WorkGroupState] -> Encoding
toJSONList :: [WorkGroupState] -> Value
$ctoJSONList :: [WorkGroupState] -> Value
toEncoding :: WorkGroupState -> Encoding
$ctoEncoding :: WorkGroupState -> Encoding
toJSON :: WorkGroupState -> Value
$ctoJSON :: WorkGroupState -> Value
Core.ToJSON,
ToJSONKeyFunction [WorkGroupState]
ToJSONKeyFunction WorkGroupState
ToJSONKeyFunction WorkGroupState
-> ToJSONKeyFunction [WorkGroupState] -> ToJSONKey WorkGroupState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WorkGroupState]
$ctoJSONKeyList :: ToJSONKeyFunction [WorkGroupState]
toJSONKey :: ToJSONKeyFunction WorkGroupState
$ctoJSONKey :: ToJSONKeyFunction WorkGroupState
Core.ToJSONKey,
[Node] -> Either String WorkGroupState
([Node] -> Either String WorkGroupState) -> FromXML WorkGroupState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WorkGroupState
$cparseXML :: [Node] -> Either String WorkGroupState
Core.FromXML,
WorkGroupState -> XML
(WorkGroupState -> XML) -> ToXML WorkGroupState
forall a. (a -> XML) -> ToXML a
toXML :: WorkGroupState -> XML
$ctoXML :: WorkGroupState -> XML
Core.ToXML
)
pattern WorkGroupState_DISABLED :: WorkGroupState
pattern $bWorkGroupState_DISABLED :: WorkGroupState
$mWorkGroupState_DISABLED :: forall r. WorkGroupState -> (Void# -> r) -> (Void# -> r) -> r
WorkGroupState_DISABLED = WorkGroupState' "DISABLED"
pattern WorkGroupState_ENABLED :: WorkGroupState
pattern $bWorkGroupState_ENABLED :: WorkGroupState
$mWorkGroupState_ENABLED :: forall r. WorkGroupState -> (Void# -> r) -> (Void# -> r) -> r
WorkGroupState_ENABLED = WorkGroupState' "ENABLED"
{-# COMPLETE
WorkGroupState_DISABLED,
WorkGroupState_ENABLED,
WorkGroupState'
#-}