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