{-# 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.HumanTaskUiSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data HumanTaskUiSummary = HumanTaskUiSummary'
{
HumanTaskUiSummary -> Text
humanTaskUiName :: Prelude.Text,
HumanTaskUiSummary -> Text
humanTaskUiArn :: Prelude.Text,
HumanTaskUiSummary -> POSIX
creationTime :: Core.POSIX
}
deriving (HumanTaskUiSummary -> HumanTaskUiSummary -> Bool
(HumanTaskUiSummary -> HumanTaskUiSummary -> Bool)
-> (HumanTaskUiSummary -> HumanTaskUiSummary -> Bool)
-> Eq HumanTaskUiSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HumanTaskUiSummary -> HumanTaskUiSummary -> Bool
$c/= :: HumanTaskUiSummary -> HumanTaskUiSummary -> Bool
== :: HumanTaskUiSummary -> HumanTaskUiSummary -> Bool
$c== :: HumanTaskUiSummary -> HumanTaskUiSummary -> Bool
Prelude.Eq, ReadPrec [HumanTaskUiSummary]
ReadPrec HumanTaskUiSummary
Int -> ReadS HumanTaskUiSummary
ReadS [HumanTaskUiSummary]
(Int -> ReadS HumanTaskUiSummary)
-> ReadS [HumanTaskUiSummary]
-> ReadPrec HumanTaskUiSummary
-> ReadPrec [HumanTaskUiSummary]
-> Read HumanTaskUiSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HumanTaskUiSummary]
$creadListPrec :: ReadPrec [HumanTaskUiSummary]
readPrec :: ReadPrec HumanTaskUiSummary
$creadPrec :: ReadPrec HumanTaskUiSummary
readList :: ReadS [HumanTaskUiSummary]
$creadList :: ReadS [HumanTaskUiSummary]
readsPrec :: Int -> ReadS HumanTaskUiSummary
$creadsPrec :: Int -> ReadS HumanTaskUiSummary
Prelude.Read, Int -> HumanTaskUiSummary -> ShowS
[HumanTaskUiSummary] -> ShowS
HumanTaskUiSummary -> String
(Int -> HumanTaskUiSummary -> ShowS)
-> (HumanTaskUiSummary -> String)
-> ([HumanTaskUiSummary] -> ShowS)
-> Show HumanTaskUiSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HumanTaskUiSummary] -> ShowS
$cshowList :: [HumanTaskUiSummary] -> ShowS
show :: HumanTaskUiSummary -> String
$cshow :: HumanTaskUiSummary -> String
showsPrec :: Int -> HumanTaskUiSummary -> ShowS
$cshowsPrec :: Int -> HumanTaskUiSummary -> ShowS
Prelude.Show, (forall x. HumanTaskUiSummary -> Rep HumanTaskUiSummary x)
-> (forall x. Rep HumanTaskUiSummary x -> HumanTaskUiSummary)
-> Generic HumanTaskUiSummary
forall x. Rep HumanTaskUiSummary x -> HumanTaskUiSummary
forall x. HumanTaskUiSummary -> Rep HumanTaskUiSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HumanTaskUiSummary x -> HumanTaskUiSummary
$cfrom :: forall x. HumanTaskUiSummary -> Rep HumanTaskUiSummary x
Prelude.Generic)
newHumanTaskUiSummary ::
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
HumanTaskUiSummary
newHumanTaskUiSummary :: Text -> Text -> UTCTime -> HumanTaskUiSummary
newHumanTaskUiSummary
Text
pHumanTaskUiName_
Text
pHumanTaskUiArn_
UTCTime
pCreationTime_ =
HumanTaskUiSummary' :: Text -> Text -> POSIX -> HumanTaskUiSummary
HumanTaskUiSummary'
{ $sel:humanTaskUiName:HumanTaskUiSummary' :: Text
humanTaskUiName =
Text
pHumanTaskUiName_,
$sel:humanTaskUiArn:HumanTaskUiSummary' :: Text
humanTaskUiArn = Text
pHumanTaskUiArn_,
$sel:creationTime:HumanTaskUiSummary' :: POSIX
creationTime = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_
}
humanTaskUiSummary_humanTaskUiName :: Lens.Lens' HumanTaskUiSummary Prelude.Text
humanTaskUiSummary_humanTaskUiName :: (Text -> f Text) -> HumanTaskUiSummary -> f HumanTaskUiSummary
humanTaskUiSummary_humanTaskUiName = (HumanTaskUiSummary -> Text)
-> (HumanTaskUiSummary -> Text -> HumanTaskUiSummary)
-> Lens HumanTaskUiSummary HumanTaskUiSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HumanTaskUiSummary' {Text
humanTaskUiName :: Text
$sel:humanTaskUiName:HumanTaskUiSummary' :: HumanTaskUiSummary -> Text
humanTaskUiName} -> Text
humanTaskUiName) (\s :: HumanTaskUiSummary
s@HumanTaskUiSummary' {} Text
a -> HumanTaskUiSummary
s {$sel:humanTaskUiName:HumanTaskUiSummary' :: Text
humanTaskUiName = Text
a} :: HumanTaskUiSummary)
humanTaskUiSummary_humanTaskUiArn :: Lens.Lens' HumanTaskUiSummary Prelude.Text
humanTaskUiSummary_humanTaskUiArn :: (Text -> f Text) -> HumanTaskUiSummary -> f HumanTaskUiSummary
humanTaskUiSummary_humanTaskUiArn = (HumanTaskUiSummary -> Text)
-> (HumanTaskUiSummary -> Text -> HumanTaskUiSummary)
-> Lens HumanTaskUiSummary HumanTaskUiSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HumanTaskUiSummary' {Text
humanTaskUiArn :: Text
$sel:humanTaskUiArn:HumanTaskUiSummary' :: HumanTaskUiSummary -> Text
humanTaskUiArn} -> Text
humanTaskUiArn) (\s :: HumanTaskUiSummary
s@HumanTaskUiSummary' {} Text
a -> HumanTaskUiSummary
s {$sel:humanTaskUiArn:HumanTaskUiSummary' :: Text
humanTaskUiArn = Text
a} :: HumanTaskUiSummary)
humanTaskUiSummary_creationTime :: Lens.Lens' HumanTaskUiSummary Prelude.UTCTime
humanTaskUiSummary_creationTime :: (UTCTime -> f UTCTime)
-> HumanTaskUiSummary -> f HumanTaskUiSummary
humanTaskUiSummary_creationTime = (HumanTaskUiSummary -> POSIX)
-> (HumanTaskUiSummary -> POSIX -> HumanTaskUiSummary)
-> Lens HumanTaskUiSummary HumanTaskUiSummary POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HumanTaskUiSummary' {POSIX
creationTime :: POSIX
$sel:creationTime:HumanTaskUiSummary' :: HumanTaskUiSummary -> POSIX
creationTime} -> POSIX
creationTime) (\s :: HumanTaskUiSummary
s@HumanTaskUiSummary' {} POSIX
a -> HumanTaskUiSummary
s {$sel:creationTime:HumanTaskUiSummary' :: POSIX
creationTime = POSIX
a} :: HumanTaskUiSummary) ((POSIX -> f POSIX) -> HumanTaskUiSummary -> f HumanTaskUiSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> HumanTaskUiSummary
-> f HumanTaskUiSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance Core.FromJSON HumanTaskUiSummary where
parseJSON :: Value -> Parser HumanTaskUiSummary
parseJSON =
String
-> (Object -> Parser HumanTaskUiSummary)
-> Value
-> Parser HumanTaskUiSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"HumanTaskUiSummary"
( \Object
x ->
Text -> Text -> POSIX -> HumanTaskUiSummary
HumanTaskUiSummary'
(Text -> Text -> POSIX -> HumanTaskUiSummary)
-> Parser Text -> Parser (Text -> POSIX -> HumanTaskUiSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"HumanTaskUiName")
Parser (Text -> POSIX -> HumanTaskUiSummary)
-> Parser Text -> Parser (POSIX -> HumanTaskUiSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"HumanTaskUiArn")
Parser (POSIX -> HumanTaskUiSummary)
-> Parser POSIX -> Parser HumanTaskUiSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CreationTime")
)
instance Prelude.Hashable HumanTaskUiSummary
instance Prelude.NFData HumanTaskUiSummary