{-# 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.SageMaker.Types.AutoMLCandidateStep 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
import Amazonka.SageMaker.Types.CandidateStepType
data AutoMLCandidateStep = AutoMLCandidateStep'
{
AutoMLCandidateStep -> CandidateStepType
candidateStepType :: CandidateStepType,
AutoMLCandidateStep -> Text
candidateStepArn :: Prelude.Text,
AutoMLCandidateStep -> Text
candidateStepName :: Prelude.Text
}
deriving (AutoMLCandidateStep -> AutoMLCandidateStep -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AutoMLCandidateStep -> AutoMLCandidateStep -> Bool
$c/= :: AutoMLCandidateStep -> AutoMLCandidateStep -> Bool
== :: AutoMLCandidateStep -> AutoMLCandidateStep -> Bool
$c== :: AutoMLCandidateStep -> AutoMLCandidateStep -> Bool
Prelude.Eq, ReadPrec [AutoMLCandidateStep]
ReadPrec AutoMLCandidateStep
Int -> ReadS AutoMLCandidateStep
ReadS [AutoMLCandidateStep]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AutoMLCandidateStep]
$creadListPrec :: ReadPrec [AutoMLCandidateStep]
readPrec :: ReadPrec AutoMLCandidateStep
$creadPrec :: ReadPrec AutoMLCandidateStep
readList :: ReadS [AutoMLCandidateStep]
$creadList :: ReadS [AutoMLCandidateStep]
readsPrec :: Int -> ReadS AutoMLCandidateStep
$creadsPrec :: Int -> ReadS AutoMLCandidateStep
Prelude.Read, Int -> AutoMLCandidateStep -> ShowS
[AutoMLCandidateStep] -> ShowS
AutoMLCandidateStep -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AutoMLCandidateStep] -> ShowS
$cshowList :: [AutoMLCandidateStep] -> ShowS
show :: AutoMLCandidateStep -> String
$cshow :: AutoMLCandidateStep -> String
showsPrec :: Int -> AutoMLCandidateStep -> ShowS
$cshowsPrec :: Int -> AutoMLCandidateStep -> ShowS
Prelude.Show, forall x. Rep AutoMLCandidateStep x -> AutoMLCandidateStep
forall x. AutoMLCandidateStep -> Rep AutoMLCandidateStep x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AutoMLCandidateStep x -> AutoMLCandidateStep
$cfrom :: forall x. AutoMLCandidateStep -> Rep AutoMLCandidateStep x
Prelude.Generic)
newAutoMLCandidateStep ::
CandidateStepType ->
Prelude.Text ->
Prelude.Text ->
AutoMLCandidateStep
newAutoMLCandidateStep :: CandidateStepType -> Text -> Text -> AutoMLCandidateStep
newAutoMLCandidateStep
CandidateStepType
pCandidateStepType_
Text
pCandidateStepArn_
Text
pCandidateStepName_ =
AutoMLCandidateStep'
{ $sel:candidateStepType:AutoMLCandidateStep' :: CandidateStepType
candidateStepType =
CandidateStepType
pCandidateStepType_,
$sel:candidateStepArn:AutoMLCandidateStep' :: Text
candidateStepArn = Text
pCandidateStepArn_,
$sel:candidateStepName:AutoMLCandidateStep' :: Text
candidateStepName = Text
pCandidateStepName_
}
autoMLCandidateStep_candidateStepType :: Lens.Lens' AutoMLCandidateStep CandidateStepType
autoMLCandidateStep_candidateStepType :: Lens' AutoMLCandidateStep CandidateStepType
autoMLCandidateStep_candidateStepType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoMLCandidateStep' {CandidateStepType
candidateStepType :: CandidateStepType
$sel:candidateStepType:AutoMLCandidateStep' :: AutoMLCandidateStep -> CandidateStepType
candidateStepType} -> CandidateStepType
candidateStepType) (\s :: AutoMLCandidateStep
s@AutoMLCandidateStep' {} CandidateStepType
a -> AutoMLCandidateStep
s {$sel:candidateStepType:AutoMLCandidateStep' :: CandidateStepType
candidateStepType = CandidateStepType
a} :: AutoMLCandidateStep)
autoMLCandidateStep_candidateStepArn :: Lens.Lens' AutoMLCandidateStep Prelude.Text
autoMLCandidateStep_candidateStepArn :: Lens' AutoMLCandidateStep Text
autoMLCandidateStep_candidateStepArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoMLCandidateStep' {Text
candidateStepArn :: Text
$sel:candidateStepArn:AutoMLCandidateStep' :: AutoMLCandidateStep -> Text
candidateStepArn} -> Text
candidateStepArn) (\s :: AutoMLCandidateStep
s@AutoMLCandidateStep' {} Text
a -> AutoMLCandidateStep
s {$sel:candidateStepArn:AutoMLCandidateStep' :: Text
candidateStepArn = Text
a} :: AutoMLCandidateStep)
autoMLCandidateStep_candidateStepName :: Lens.Lens' AutoMLCandidateStep Prelude.Text
autoMLCandidateStep_candidateStepName :: Lens' AutoMLCandidateStep Text
autoMLCandidateStep_candidateStepName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoMLCandidateStep' {Text
candidateStepName :: Text
$sel:candidateStepName:AutoMLCandidateStep' :: AutoMLCandidateStep -> Text
candidateStepName} -> Text
candidateStepName) (\s :: AutoMLCandidateStep
s@AutoMLCandidateStep' {} Text
a -> AutoMLCandidateStep
s {$sel:candidateStepName:AutoMLCandidateStep' :: Text
candidateStepName = Text
a} :: AutoMLCandidateStep)
instance Data.FromJSON AutoMLCandidateStep where
parseJSON :: Value -> Parser AutoMLCandidateStep
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AutoMLCandidateStep"
( \Object
x ->
CandidateStepType -> Text -> Text -> AutoMLCandidateStep
AutoMLCandidateStep'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CandidateStepType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CandidateStepArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CandidateStepName")
)
instance Prelude.Hashable AutoMLCandidateStep where
hashWithSalt :: Int -> AutoMLCandidateStep -> Int
hashWithSalt Int
_salt AutoMLCandidateStep' {Text
CandidateStepType
candidateStepName :: Text
candidateStepArn :: Text
candidateStepType :: CandidateStepType
$sel:candidateStepName:AutoMLCandidateStep' :: AutoMLCandidateStep -> Text
$sel:candidateStepArn:AutoMLCandidateStep' :: AutoMLCandidateStep -> Text
$sel:candidateStepType:AutoMLCandidateStep' :: AutoMLCandidateStep -> CandidateStepType
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` CandidateStepType
candidateStepType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
candidateStepArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
candidateStepName
instance Prelude.NFData AutoMLCandidateStep where
rnf :: AutoMLCandidateStep -> ()
rnf AutoMLCandidateStep' {Text
CandidateStepType
candidateStepName :: Text
candidateStepArn :: Text
candidateStepType :: CandidateStepType
$sel:candidateStepName:AutoMLCandidateStep' :: AutoMLCandidateStep -> Text
$sel:candidateStepArn:AutoMLCandidateStep' :: AutoMLCandidateStep -> Text
$sel:candidateStepType:AutoMLCandidateStep' :: AutoMLCandidateStep -> CandidateStepType
..} =
forall a. NFData a => a -> ()
Prelude.rnf CandidateStepType
candidateStepType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
candidateStepArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
candidateStepName