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