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