{-# 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.ModelPackageGroupSummary 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.ModelPackageGroupStatus
data ModelPackageGroupSummary = ModelPackageGroupSummary'
{
ModelPackageGroupSummary -> Maybe Text
modelPackageGroupDescription :: Prelude.Maybe Prelude.Text,
ModelPackageGroupSummary -> Text
modelPackageGroupName :: Prelude.Text,
ModelPackageGroupSummary -> Text
modelPackageGroupArn :: Prelude.Text,
ModelPackageGroupSummary -> POSIX
creationTime :: Data.POSIX,
ModelPackageGroupSummary -> ModelPackageGroupStatus
modelPackageGroupStatus :: ModelPackageGroupStatus
}
deriving (ModelPackageGroupSummary -> ModelPackageGroupSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModelPackageGroupSummary -> ModelPackageGroupSummary -> Bool
$c/= :: ModelPackageGroupSummary -> ModelPackageGroupSummary -> Bool
== :: ModelPackageGroupSummary -> ModelPackageGroupSummary -> Bool
$c== :: ModelPackageGroupSummary -> ModelPackageGroupSummary -> Bool
Prelude.Eq, ReadPrec [ModelPackageGroupSummary]
ReadPrec ModelPackageGroupSummary
Int -> ReadS ModelPackageGroupSummary
ReadS [ModelPackageGroupSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModelPackageGroupSummary]
$creadListPrec :: ReadPrec [ModelPackageGroupSummary]
readPrec :: ReadPrec ModelPackageGroupSummary
$creadPrec :: ReadPrec ModelPackageGroupSummary
readList :: ReadS [ModelPackageGroupSummary]
$creadList :: ReadS [ModelPackageGroupSummary]
readsPrec :: Int -> ReadS ModelPackageGroupSummary
$creadsPrec :: Int -> ReadS ModelPackageGroupSummary
Prelude.Read, Int -> ModelPackageGroupSummary -> ShowS
[ModelPackageGroupSummary] -> ShowS
ModelPackageGroupSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModelPackageGroupSummary] -> ShowS
$cshowList :: [ModelPackageGroupSummary] -> ShowS
show :: ModelPackageGroupSummary -> String
$cshow :: ModelPackageGroupSummary -> String
showsPrec :: Int -> ModelPackageGroupSummary -> ShowS
$cshowsPrec :: Int -> ModelPackageGroupSummary -> ShowS
Prelude.Show, forall x.
Rep ModelPackageGroupSummary x -> ModelPackageGroupSummary
forall x.
ModelPackageGroupSummary -> Rep ModelPackageGroupSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ModelPackageGroupSummary x -> ModelPackageGroupSummary
$cfrom :: forall x.
ModelPackageGroupSummary -> Rep ModelPackageGroupSummary x
Prelude.Generic)
newModelPackageGroupSummary ::
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
ModelPackageGroupStatus ->
ModelPackageGroupSummary
newModelPackageGroupSummary :: Text
-> Text
-> UTCTime
-> ModelPackageGroupStatus
-> ModelPackageGroupSummary
newModelPackageGroupSummary
Text
pModelPackageGroupName_
Text
pModelPackageGroupArn_
UTCTime
pCreationTime_
ModelPackageGroupStatus
pModelPackageGroupStatus_ =
ModelPackageGroupSummary'
{ $sel:modelPackageGroupDescription:ModelPackageGroupSummary' :: Maybe Text
modelPackageGroupDescription =
forall a. Maybe a
Prelude.Nothing,
$sel:modelPackageGroupName:ModelPackageGroupSummary' :: Text
modelPackageGroupName = Text
pModelPackageGroupName_,
$sel:modelPackageGroupArn:ModelPackageGroupSummary' :: Text
modelPackageGroupArn = Text
pModelPackageGroupArn_,
$sel:creationTime:ModelPackageGroupSummary' :: POSIX
creationTime = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
$sel:modelPackageGroupStatus:ModelPackageGroupSummary' :: ModelPackageGroupStatus
modelPackageGroupStatus =
ModelPackageGroupStatus
pModelPackageGroupStatus_
}
modelPackageGroupSummary_modelPackageGroupDescription :: Lens.Lens' ModelPackageGroupSummary (Prelude.Maybe Prelude.Text)
modelPackageGroupSummary_modelPackageGroupDescription :: Lens' ModelPackageGroupSummary (Maybe Text)
modelPackageGroupSummary_modelPackageGroupDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageGroupSummary' {Maybe Text
modelPackageGroupDescription :: Maybe Text
$sel:modelPackageGroupDescription:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> Maybe Text
modelPackageGroupDescription} -> Maybe Text
modelPackageGroupDescription) (\s :: ModelPackageGroupSummary
s@ModelPackageGroupSummary' {} Maybe Text
a -> ModelPackageGroupSummary
s {$sel:modelPackageGroupDescription:ModelPackageGroupSummary' :: Maybe Text
modelPackageGroupDescription = Maybe Text
a} :: ModelPackageGroupSummary)
modelPackageGroupSummary_modelPackageGroupName :: Lens.Lens' ModelPackageGroupSummary Prelude.Text
modelPackageGroupSummary_modelPackageGroupName :: Lens' ModelPackageGroupSummary Text
modelPackageGroupSummary_modelPackageGroupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageGroupSummary' {Text
modelPackageGroupName :: Text
$sel:modelPackageGroupName:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> Text
modelPackageGroupName} -> Text
modelPackageGroupName) (\s :: ModelPackageGroupSummary
s@ModelPackageGroupSummary' {} Text
a -> ModelPackageGroupSummary
s {$sel:modelPackageGroupName:ModelPackageGroupSummary' :: Text
modelPackageGroupName = Text
a} :: ModelPackageGroupSummary)
modelPackageGroupSummary_modelPackageGroupArn :: Lens.Lens' ModelPackageGroupSummary Prelude.Text
modelPackageGroupSummary_modelPackageGroupArn :: Lens' ModelPackageGroupSummary Text
modelPackageGroupSummary_modelPackageGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageGroupSummary' {Text
modelPackageGroupArn :: Text
$sel:modelPackageGroupArn:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> Text
modelPackageGroupArn} -> Text
modelPackageGroupArn) (\s :: ModelPackageGroupSummary
s@ModelPackageGroupSummary' {} Text
a -> ModelPackageGroupSummary
s {$sel:modelPackageGroupArn:ModelPackageGroupSummary' :: Text
modelPackageGroupArn = Text
a} :: ModelPackageGroupSummary)
modelPackageGroupSummary_creationTime :: Lens.Lens' ModelPackageGroupSummary Prelude.UTCTime
modelPackageGroupSummary_creationTime :: Lens' ModelPackageGroupSummary UTCTime
modelPackageGroupSummary_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageGroupSummary' {POSIX
creationTime :: POSIX
$sel:creationTime:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> POSIX
creationTime} -> POSIX
creationTime) (\s :: ModelPackageGroupSummary
s@ModelPackageGroupSummary' {} POSIX
a -> ModelPackageGroupSummary
s {$sel:creationTime:ModelPackageGroupSummary' :: POSIX
creationTime = POSIX
a} :: ModelPackageGroupSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
modelPackageGroupSummary_modelPackageGroupStatus :: Lens.Lens' ModelPackageGroupSummary ModelPackageGroupStatus
modelPackageGroupSummary_modelPackageGroupStatus :: Lens' ModelPackageGroupSummary ModelPackageGroupStatus
modelPackageGroupSummary_modelPackageGroupStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackageGroupSummary' {ModelPackageGroupStatus
modelPackageGroupStatus :: ModelPackageGroupStatus
$sel:modelPackageGroupStatus:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> ModelPackageGroupStatus
modelPackageGroupStatus} -> ModelPackageGroupStatus
modelPackageGroupStatus) (\s :: ModelPackageGroupSummary
s@ModelPackageGroupSummary' {} ModelPackageGroupStatus
a -> ModelPackageGroupSummary
s {$sel:modelPackageGroupStatus:ModelPackageGroupSummary' :: ModelPackageGroupStatus
modelPackageGroupStatus = ModelPackageGroupStatus
a} :: ModelPackageGroupSummary)
instance Data.FromJSON ModelPackageGroupSummary where
parseJSON :: Value -> Parser ModelPackageGroupSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ModelPackageGroupSummary"
( \Object
x ->
Maybe Text
-> Text
-> Text
-> POSIX
-> ModelPackageGroupStatus
-> ModelPackageGroupSummary
ModelPackageGroupSummary'
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
"ModelPackageGroupDescription")
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
"ModelPackageGroupName")
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
"ModelPackageGroupArn")
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
"CreationTime")
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
"ModelPackageGroupStatus")
)
instance Prelude.Hashable ModelPackageGroupSummary where
hashWithSalt :: Int -> ModelPackageGroupSummary -> Int
hashWithSalt Int
_salt ModelPackageGroupSummary' {Maybe Text
Text
POSIX
ModelPackageGroupStatus
modelPackageGroupStatus :: ModelPackageGroupStatus
creationTime :: POSIX
modelPackageGroupArn :: Text
modelPackageGroupName :: Text
modelPackageGroupDescription :: Maybe Text
$sel:modelPackageGroupStatus:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> ModelPackageGroupStatus
$sel:creationTime:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> POSIX
$sel:modelPackageGroupArn:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> Text
$sel:modelPackageGroupName:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> Text
$sel:modelPackageGroupDescription:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
modelPackageGroupDescription
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
modelPackageGroupName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
modelPackageGroupArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
creationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ModelPackageGroupStatus
modelPackageGroupStatus
instance Prelude.NFData ModelPackageGroupSummary where
rnf :: ModelPackageGroupSummary -> ()
rnf ModelPackageGroupSummary' {Maybe Text
Text
POSIX
ModelPackageGroupStatus
modelPackageGroupStatus :: ModelPackageGroupStatus
creationTime :: POSIX
modelPackageGroupArn :: Text
modelPackageGroupName :: Text
modelPackageGroupDescription :: Maybe Text
$sel:modelPackageGroupStatus:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> ModelPackageGroupStatus
$sel:creationTime:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> POSIX
$sel:modelPackageGroupArn:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> Text
$sel:modelPackageGroupName:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> Text
$sel:modelPackageGroupDescription:ModelPackageGroupSummary' :: ModelPackageGroupSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
modelPackageGroupDescription
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
modelPackageGroupName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
modelPackageGroupArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ModelPackageGroupStatus
modelPackageGroupStatus