{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Personalize.Types.AutoMLResult where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data AutoMLResult = AutoMLResult'
{
AutoMLResult -> Maybe Text
bestRecipeArn :: Prelude.Maybe Prelude.Text
}
deriving (AutoMLResult -> AutoMLResult -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AutoMLResult -> AutoMLResult -> Bool
$c/= :: AutoMLResult -> AutoMLResult -> Bool
== :: AutoMLResult -> AutoMLResult -> Bool
$c== :: AutoMLResult -> AutoMLResult -> Bool
Prelude.Eq, ReadPrec [AutoMLResult]
ReadPrec AutoMLResult
Int -> ReadS AutoMLResult
ReadS [AutoMLResult]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AutoMLResult]
$creadListPrec :: ReadPrec [AutoMLResult]
readPrec :: ReadPrec AutoMLResult
$creadPrec :: ReadPrec AutoMLResult
readList :: ReadS [AutoMLResult]
$creadList :: ReadS [AutoMLResult]
readsPrec :: Int -> ReadS AutoMLResult
$creadsPrec :: Int -> ReadS AutoMLResult
Prelude.Read, Int -> AutoMLResult -> ShowS
[AutoMLResult] -> ShowS
AutoMLResult -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AutoMLResult] -> ShowS
$cshowList :: [AutoMLResult] -> ShowS
show :: AutoMLResult -> String
$cshow :: AutoMLResult -> String
showsPrec :: Int -> AutoMLResult -> ShowS
$cshowsPrec :: Int -> AutoMLResult -> ShowS
Prelude.Show, forall x. Rep AutoMLResult x -> AutoMLResult
forall x. AutoMLResult -> Rep AutoMLResult x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AutoMLResult x -> AutoMLResult
$cfrom :: forall x. AutoMLResult -> Rep AutoMLResult x
Prelude.Generic)
newAutoMLResult ::
AutoMLResult
newAutoMLResult :: AutoMLResult
newAutoMLResult =
AutoMLResult' {$sel:bestRecipeArn:AutoMLResult' :: Maybe Text
bestRecipeArn = forall a. Maybe a
Prelude.Nothing}
autoMLResult_bestRecipeArn :: Lens.Lens' AutoMLResult (Prelude.Maybe Prelude.Text)
autoMLResult_bestRecipeArn :: Lens' AutoMLResult (Maybe Text)
autoMLResult_bestRecipeArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoMLResult' {Maybe Text
bestRecipeArn :: Maybe Text
$sel:bestRecipeArn:AutoMLResult' :: AutoMLResult -> Maybe Text
bestRecipeArn} -> Maybe Text
bestRecipeArn) (\s :: AutoMLResult
s@AutoMLResult' {} Maybe Text
a -> AutoMLResult
s {$sel:bestRecipeArn:AutoMLResult' :: Maybe Text
bestRecipeArn = Maybe Text
a} :: AutoMLResult)
instance Data.FromJSON AutoMLResult where
parseJSON :: Value -> Parser AutoMLResult
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AutoMLResult"
( \Object
x ->
Maybe Text -> AutoMLResult
AutoMLResult'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"bestRecipeArn")
)
instance Prelude.Hashable AutoMLResult where
hashWithSalt :: Int -> AutoMLResult -> Int
hashWithSalt Int
_salt AutoMLResult' {Maybe Text
bestRecipeArn :: Maybe Text
$sel:bestRecipeArn:AutoMLResult' :: AutoMLResult -> Maybe Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
bestRecipeArn
instance Prelude.NFData AutoMLResult where
rnf :: AutoMLResult -> ()
rnf AutoMLResult' {Maybe Text
bestRecipeArn :: Maybe Text
$sel:bestRecipeArn:AutoMLResult' :: AutoMLResult -> Maybe Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
bestRecipeArn