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