{-# 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.DeployedImage 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
data DeployedImage = DeployedImage'
{
DeployedImage -> Maybe POSIX
resolutionTime :: Prelude.Maybe Data.POSIX,
DeployedImage -> Maybe Text
resolvedImage :: Prelude.Maybe Prelude.Text,
DeployedImage -> Maybe Text
specifiedImage :: Prelude.Maybe Prelude.Text
}
deriving (DeployedImage -> DeployedImage -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeployedImage -> DeployedImage -> Bool
$c/= :: DeployedImage -> DeployedImage -> Bool
== :: DeployedImage -> DeployedImage -> Bool
$c== :: DeployedImage -> DeployedImage -> Bool
Prelude.Eq, ReadPrec [DeployedImage]
ReadPrec DeployedImage
Int -> ReadS DeployedImage
ReadS [DeployedImage]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeployedImage]
$creadListPrec :: ReadPrec [DeployedImage]
readPrec :: ReadPrec DeployedImage
$creadPrec :: ReadPrec DeployedImage
readList :: ReadS [DeployedImage]
$creadList :: ReadS [DeployedImage]
readsPrec :: Int -> ReadS DeployedImage
$creadsPrec :: Int -> ReadS DeployedImage
Prelude.Read, Int -> DeployedImage -> ShowS
[DeployedImage] -> ShowS
DeployedImage -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeployedImage] -> ShowS
$cshowList :: [DeployedImage] -> ShowS
show :: DeployedImage -> String
$cshow :: DeployedImage -> String
showsPrec :: Int -> DeployedImage -> ShowS
$cshowsPrec :: Int -> DeployedImage -> ShowS
Prelude.Show, forall x. Rep DeployedImage x -> DeployedImage
forall x. DeployedImage -> Rep DeployedImage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeployedImage x -> DeployedImage
$cfrom :: forall x. DeployedImage -> Rep DeployedImage x
Prelude.Generic)
newDeployedImage ::
DeployedImage
newDeployedImage :: DeployedImage
newDeployedImage =
DeployedImage'
{ $sel:resolutionTime:DeployedImage' :: Maybe POSIX
resolutionTime = forall a. Maybe a
Prelude.Nothing,
$sel:resolvedImage:DeployedImage' :: Maybe Text
resolvedImage = forall a. Maybe a
Prelude.Nothing,
$sel:specifiedImage:DeployedImage' :: Maybe Text
specifiedImage = forall a. Maybe a
Prelude.Nothing
}
deployedImage_resolutionTime :: Lens.Lens' DeployedImage (Prelude.Maybe Prelude.UTCTime)
deployedImage_resolutionTime :: Lens' DeployedImage (Maybe UTCTime)
deployedImage_resolutionTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeployedImage' {Maybe POSIX
resolutionTime :: Maybe POSIX
$sel:resolutionTime:DeployedImage' :: DeployedImage -> Maybe POSIX
resolutionTime} -> Maybe POSIX
resolutionTime) (\s :: DeployedImage
s@DeployedImage' {} Maybe POSIX
a -> DeployedImage
s {$sel:resolutionTime:DeployedImage' :: Maybe POSIX
resolutionTime = Maybe POSIX
a} :: DeployedImage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
deployedImage_resolvedImage :: Lens.Lens' DeployedImage (Prelude.Maybe Prelude.Text)
deployedImage_resolvedImage :: Lens' DeployedImage (Maybe Text)
deployedImage_resolvedImage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeployedImage' {Maybe Text
resolvedImage :: Maybe Text
$sel:resolvedImage:DeployedImage' :: DeployedImage -> Maybe Text
resolvedImage} -> Maybe Text
resolvedImage) (\s :: DeployedImage
s@DeployedImage' {} Maybe Text
a -> DeployedImage
s {$sel:resolvedImage:DeployedImage' :: Maybe Text
resolvedImage = Maybe Text
a} :: DeployedImage)
deployedImage_specifiedImage :: Lens.Lens' DeployedImage (Prelude.Maybe Prelude.Text)
deployedImage_specifiedImage :: Lens' DeployedImage (Maybe Text)
deployedImage_specifiedImage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeployedImage' {Maybe Text
specifiedImage :: Maybe Text
$sel:specifiedImage:DeployedImage' :: DeployedImage -> Maybe Text
specifiedImage} -> Maybe Text
specifiedImage) (\s :: DeployedImage
s@DeployedImage' {} Maybe Text
a -> DeployedImage
s {$sel:specifiedImage:DeployedImage' :: Maybe Text
specifiedImage = Maybe Text
a} :: DeployedImage)
instance Data.FromJSON DeployedImage where
parseJSON :: Value -> Parser DeployedImage
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"DeployedImage"
( \Object
x ->
Maybe POSIX -> Maybe Text -> Maybe Text -> DeployedImage
DeployedImage'
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
"ResolutionTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResolvedImage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SpecifiedImage")
)
instance Prelude.Hashable DeployedImage where
hashWithSalt :: Int -> DeployedImage -> Int
hashWithSalt Int
_salt DeployedImage' {Maybe Text
Maybe POSIX
specifiedImage :: Maybe Text
resolvedImage :: Maybe Text
resolutionTime :: Maybe POSIX
$sel:specifiedImage:DeployedImage' :: DeployedImage -> Maybe Text
$sel:resolvedImage:DeployedImage' :: DeployedImage -> Maybe Text
$sel:resolutionTime:DeployedImage' :: DeployedImage -> Maybe POSIX
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
resolutionTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resolvedImage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
specifiedImage
instance Prelude.NFData DeployedImage where
rnf :: DeployedImage -> ()
rnf DeployedImage' {Maybe Text
Maybe POSIX
specifiedImage :: Maybe Text
resolvedImage :: Maybe Text
resolutionTime :: Maybe POSIX
$sel:specifiedImage:DeployedImage' :: DeployedImage -> Maybe Text
$sel:resolvedImage:DeployedImage' :: DeployedImage -> Maybe Text
$sel:resolutionTime:DeployedImage' :: DeployedImage -> Maybe POSIX
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
resolutionTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resolvedImage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
specifiedImage