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