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