{-# 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.AutoMLPartialFailureReason where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AutoMLPartialFailureReason = AutoMLPartialFailureReason'
{
AutoMLPartialFailureReason -> Maybe Text
partialFailureMessage :: Prelude.Maybe Prelude.Text
}
deriving (AutoMLPartialFailureReason -> AutoMLPartialFailureReason -> Bool
(AutoMLPartialFailureReason -> AutoMLPartialFailureReason -> Bool)
-> (AutoMLPartialFailureReason
-> AutoMLPartialFailureReason -> Bool)
-> Eq AutoMLPartialFailureReason
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AutoMLPartialFailureReason -> AutoMLPartialFailureReason -> Bool
$c/= :: AutoMLPartialFailureReason -> AutoMLPartialFailureReason -> Bool
== :: AutoMLPartialFailureReason -> AutoMLPartialFailureReason -> Bool
$c== :: AutoMLPartialFailureReason -> AutoMLPartialFailureReason -> Bool
Prelude.Eq, ReadPrec [AutoMLPartialFailureReason]
ReadPrec AutoMLPartialFailureReason
Int -> ReadS AutoMLPartialFailureReason
ReadS [AutoMLPartialFailureReason]
(Int -> ReadS AutoMLPartialFailureReason)
-> ReadS [AutoMLPartialFailureReason]
-> ReadPrec AutoMLPartialFailureReason
-> ReadPrec [AutoMLPartialFailureReason]
-> Read AutoMLPartialFailureReason
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AutoMLPartialFailureReason]
$creadListPrec :: ReadPrec [AutoMLPartialFailureReason]
readPrec :: ReadPrec AutoMLPartialFailureReason
$creadPrec :: ReadPrec AutoMLPartialFailureReason
readList :: ReadS [AutoMLPartialFailureReason]
$creadList :: ReadS [AutoMLPartialFailureReason]
readsPrec :: Int -> ReadS AutoMLPartialFailureReason
$creadsPrec :: Int -> ReadS AutoMLPartialFailureReason
Prelude.Read, Int -> AutoMLPartialFailureReason -> ShowS
[AutoMLPartialFailureReason] -> ShowS
AutoMLPartialFailureReason -> String
(Int -> AutoMLPartialFailureReason -> ShowS)
-> (AutoMLPartialFailureReason -> String)
-> ([AutoMLPartialFailureReason] -> ShowS)
-> Show AutoMLPartialFailureReason
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AutoMLPartialFailureReason] -> ShowS
$cshowList :: [AutoMLPartialFailureReason] -> ShowS
show :: AutoMLPartialFailureReason -> String
$cshow :: AutoMLPartialFailureReason -> String
showsPrec :: Int -> AutoMLPartialFailureReason -> ShowS
$cshowsPrec :: Int -> AutoMLPartialFailureReason -> ShowS
Prelude.Show, (forall x.
AutoMLPartialFailureReason -> Rep AutoMLPartialFailureReason x)
-> (forall x.
Rep AutoMLPartialFailureReason x -> AutoMLPartialFailureReason)
-> Generic AutoMLPartialFailureReason
forall x.
Rep AutoMLPartialFailureReason x -> AutoMLPartialFailureReason
forall x.
AutoMLPartialFailureReason -> Rep AutoMLPartialFailureReason x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AutoMLPartialFailureReason x -> AutoMLPartialFailureReason
$cfrom :: forall x.
AutoMLPartialFailureReason -> Rep AutoMLPartialFailureReason x
Prelude.Generic)
newAutoMLPartialFailureReason ::
AutoMLPartialFailureReason
newAutoMLPartialFailureReason :: AutoMLPartialFailureReason
newAutoMLPartialFailureReason =
AutoMLPartialFailureReason' :: Maybe Text -> AutoMLPartialFailureReason
AutoMLPartialFailureReason'
{ $sel:partialFailureMessage:AutoMLPartialFailureReason' :: Maybe Text
partialFailureMessage =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
autoMLPartialFailureReason_partialFailureMessage :: Lens.Lens' AutoMLPartialFailureReason (Prelude.Maybe Prelude.Text)
autoMLPartialFailureReason_partialFailureMessage :: (Maybe Text -> f (Maybe Text))
-> AutoMLPartialFailureReason -> f AutoMLPartialFailureReason
autoMLPartialFailureReason_partialFailureMessage = (AutoMLPartialFailureReason -> Maybe Text)
-> (AutoMLPartialFailureReason
-> Maybe Text -> AutoMLPartialFailureReason)
-> Lens
AutoMLPartialFailureReason
AutoMLPartialFailureReason
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoMLPartialFailureReason' {Maybe Text
partialFailureMessage :: Maybe Text
$sel:partialFailureMessage:AutoMLPartialFailureReason' :: AutoMLPartialFailureReason -> Maybe Text
partialFailureMessage} -> Maybe Text
partialFailureMessage) (\s :: AutoMLPartialFailureReason
s@AutoMLPartialFailureReason' {} Maybe Text
a -> AutoMLPartialFailureReason
s {$sel:partialFailureMessage:AutoMLPartialFailureReason' :: Maybe Text
partialFailureMessage = Maybe Text
a} :: AutoMLPartialFailureReason)
instance Core.FromJSON AutoMLPartialFailureReason where
parseJSON :: Value -> Parser AutoMLPartialFailureReason
parseJSON =
String
-> (Object -> Parser AutoMLPartialFailureReason)
-> Value
-> Parser AutoMLPartialFailureReason
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AutoMLPartialFailureReason"
( \Object
x ->
Maybe Text -> AutoMLPartialFailureReason
AutoMLPartialFailureReason'
(Maybe Text -> AutoMLPartialFailureReason)
-> Parser (Maybe Text) -> Parser AutoMLPartialFailureReason
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PartialFailureMessage")
)
instance Prelude.Hashable AutoMLPartialFailureReason
instance Prelude.NFData AutoMLPartialFailureReason