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