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