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