{-# 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.WorkerType
-- 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.WorkerType
  ( WorkerType
      ( ..,
        WorkerType_G_025X,
        WorkerType_G_1X,
        WorkerType_G_2X,
        WorkerType_Standard
      ),
  )
where

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

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

pattern WorkerType_G_025X :: WorkerType
pattern $bWorkerType_G_025X :: WorkerType
$mWorkerType_G_025X :: forall {r}. WorkerType -> ((# #) -> r) -> ((# #) -> r) -> r
WorkerType_G_025X = WorkerType' "G.025X"

pattern WorkerType_G_1X :: WorkerType
pattern $bWorkerType_G_1X :: WorkerType
$mWorkerType_G_1X :: forall {r}. WorkerType -> ((# #) -> r) -> ((# #) -> r) -> r
WorkerType_G_1X = WorkerType' "G.1X"

pattern WorkerType_G_2X :: WorkerType
pattern $bWorkerType_G_2X :: WorkerType
$mWorkerType_G_2X :: forall {r}. WorkerType -> ((# #) -> r) -> ((# #) -> r) -> r
WorkerType_G_2X = WorkerType' "G.2X"

pattern WorkerType_Standard :: WorkerType
pattern $bWorkerType_Standard :: WorkerType
$mWorkerType_Standard :: forall {r}. WorkerType -> ((# #) -> r) -> ((# #) -> r) -> r
WorkerType_Standard = WorkerType' "Standard"

{-# COMPLETE
  WorkerType_G_025X,
  WorkerType_G_1X,
  WorkerType_G_2X,
  WorkerType_Standard,
  WorkerType'
  #-}