{-# 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.Prelude as Prelude
newtype TrainingMode = TrainingMode'
{ TrainingMode -> Text
fromTrainingMode ::
Core.Text
}
deriving stock
( Int -> TrainingMode -> ShowS
[TrainingMode] -> ShowS
TrainingMode -> String
(Int -> TrainingMode -> ShowS)
-> (TrainingMode -> String)
-> ([TrainingMode] -> ShowS)
-> Show TrainingMode
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]
(Int -> ReadS TrainingMode)
-> ReadS [TrainingMode]
-> ReadPrec TrainingMode
-> ReadPrec [TrainingMode]
-> Read 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
(TrainingMode -> TrainingMode -> Bool)
-> (TrainingMode -> TrainingMode -> Bool) -> Eq TrainingMode
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
Eq TrainingMode
-> (TrainingMode -> TrainingMode -> Ordering)
-> (TrainingMode -> TrainingMode -> Bool)
-> (TrainingMode -> TrainingMode -> Bool)
-> (TrainingMode -> TrainingMode -> Bool)
-> (TrainingMode -> TrainingMode -> Bool)
-> (TrainingMode -> TrainingMode -> TrainingMode)
-> (TrainingMode -> TrainingMode -> TrainingMode)
-> Ord 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
$cp1Ord :: Eq TrainingMode
Prelude.Ord,
(forall x. TrainingMode -> Rep TrainingMode x)
-> (forall x. Rep TrainingMode x -> TrainingMode)
-> Generic TrainingMode
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
( Int -> TrainingMode -> Int
TrainingMode -> Int
(Int -> TrainingMode -> Int)
-> (TrainingMode -> Int) -> Hashable TrainingMode
forall 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 -> ()
(TrainingMode -> ()) -> NFData TrainingMode
forall a. (a -> ()) -> NFData a
rnf :: TrainingMode -> ()
$crnf :: TrainingMode -> ()
Prelude.NFData,
Text -> Either String TrainingMode
(Text -> Either String TrainingMode) -> FromText TrainingMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TrainingMode
$cfromText :: Text -> Either String TrainingMode
Core.FromText,
TrainingMode -> Text
(TrainingMode -> Text) -> ToText TrainingMode
forall a. (a -> Text) -> ToText a
toText :: TrainingMode -> Text
$ctoText :: TrainingMode -> Text
Core.ToText,
TrainingMode -> ByteString
(TrainingMode -> ByteString) -> ToByteString TrainingMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: TrainingMode -> ByteString
$ctoBS :: TrainingMode -> ByteString
Core.ToByteString,
TrainingMode -> ByteStringBuilder
(TrainingMode -> ByteStringBuilder) -> ToLog TrainingMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TrainingMode -> ByteStringBuilder
$cbuild :: TrainingMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> TrainingMode -> [Header]
(HeaderName -> TrainingMode -> [Header]) -> ToHeader TrainingMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TrainingMode -> [Header]
$ctoHeader :: HeaderName -> TrainingMode -> [Header]
Core.ToHeader,
TrainingMode -> QueryString
(TrainingMode -> QueryString) -> ToQuery TrainingMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TrainingMode -> QueryString
$ctoQuery :: TrainingMode -> QueryString
Core.ToQuery,
Value -> Parser [TrainingMode]
Value -> Parser TrainingMode
(Value -> Parser TrainingMode)
-> (Value -> Parser [TrainingMode]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [TrainingMode]
FromJSONKeyFunction TrainingMode
FromJSONKeyFunction TrainingMode
-> FromJSONKeyFunction [TrainingMode] -> FromJSONKey TrainingMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TrainingMode]
$cfromJSONKeyList :: FromJSONKeyFunction [TrainingMode]
fromJSONKey :: FromJSONKeyFunction TrainingMode
$cfromJSONKey :: FromJSONKeyFunction TrainingMode
Core.FromJSONKey,
[TrainingMode] -> Encoding
[TrainingMode] -> Value
TrainingMode -> Encoding
TrainingMode -> Value
(TrainingMode -> Value)
-> (TrainingMode -> Encoding)
-> ([TrainingMode] -> Value)
-> ([TrainingMode] -> Encoding)
-> ToJSON TrainingMode
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
Core.ToJSON,
ToJSONKeyFunction [TrainingMode]
ToJSONKeyFunction TrainingMode
ToJSONKeyFunction TrainingMode
-> ToJSONKeyFunction [TrainingMode] -> ToJSONKey TrainingMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TrainingMode]
$ctoJSONKeyList :: ToJSONKeyFunction [TrainingMode]
toJSONKey :: ToJSONKeyFunction TrainingMode
$ctoJSONKey :: ToJSONKeyFunction TrainingMode
Core.ToJSONKey,
[Node] -> Either String TrainingMode
([Node] -> Either String TrainingMode) -> FromXML TrainingMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TrainingMode
$cparseXML :: [Node] -> Either String TrainingMode
Core.FromXML,
TrainingMode -> XML
(TrainingMode -> XML) -> ToXML TrainingMode
forall a. (a -> XML) -> ToXML a
toXML :: TrainingMode -> XML
$ctoXML :: TrainingMode -> XML
Core.ToXML
)
pattern TrainingMode_FULL :: TrainingMode
pattern $bTrainingMode_FULL :: TrainingMode
$mTrainingMode_FULL :: forall r. TrainingMode -> (Void# -> r) -> (Void# -> r) -> r
TrainingMode_FULL = TrainingMode' "FULL"
pattern TrainingMode_UPDATE :: TrainingMode
pattern $bTrainingMode_UPDATE :: TrainingMode
$mTrainingMode_UPDATE :: forall r. TrainingMode -> (Void# -> r) -> (Void# -> r) -> r
TrainingMode_UPDATE = TrainingMode' "UPDATE"
{-# COMPLETE
TrainingMode_FULL,
TrainingMode_UPDATE,
TrainingMode'
#-}