{-# 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.ModelDashboardEndpoint 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.EndpointStatus
data ModelDashboardEndpoint = ModelDashboardEndpoint'
{
ModelDashboardEndpoint -> Text
endpointName :: Prelude.Text,
ModelDashboardEndpoint -> Text
endpointArn :: Prelude.Text,
ModelDashboardEndpoint -> POSIX
creationTime :: Data.POSIX,
ModelDashboardEndpoint -> POSIX
lastModifiedTime :: Data.POSIX,
ModelDashboardEndpoint -> EndpointStatus
endpointStatus :: EndpointStatus
}
deriving (ModelDashboardEndpoint -> ModelDashboardEndpoint -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModelDashboardEndpoint -> ModelDashboardEndpoint -> Bool
$c/= :: ModelDashboardEndpoint -> ModelDashboardEndpoint -> Bool
== :: ModelDashboardEndpoint -> ModelDashboardEndpoint -> Bool
$c== :: ModelDashboardEndpoint -> ModelDashboardEndpoint -> Bool
Prelude.Eq, ReadPrec [ModelDashboardEndpoint]
ReadPrec ModelDashboardEndpoint
Int -> ReadS ModelDashboardEndpoint
ReadS [ModelDashboardEndpoint]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModelDashboardEndpoint]
$creadListPrec :: ReadPrec [ModelDashboardEndpoint]
readPrec :: ReadPrec ModelDashboardEndpoint
$creadPrec :: ReadPrec ModelDashboardEndpoint
readList :: ReadS [ModelDashboardEndpoint]
$creadList :: ReadS [ModelDashboardEndpoint]
readsPrec :: Int -> ReadS ModelDashboardEndpoint
$creadsPrec :: Int -> ReadS ModelDashboardEndpoint
Prelude.Read, Int -> ModelDashboardEndpoint -> ShowS
[ModelDashboardEndpoint] -> ShowS
ModelDashboardEndpoint -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModelDashboardEndpoint] -> ShowS
$cshowList :: [ModelDashboardEndpoint] -> ShowS
show :: ModelDashboardEndpoint -> String
$cshow :: ModelDashboardEndpoint -> String
showsPrec :: Int -> ModelDashboardEndpoint -> ShowS
$cshowsPrec :: Int -> ModelDashboardEndpoint -> ShowS
Prelude.Show, forall x. Rep ModelDashboardEndpoint x -> ModelDashboardEndpoint
forall x. ModelDashboardEndpoint -> Rep ModelDashboardEndpoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ModelDashboardEndpoint x -> ModelDashboardEndpoint
$cfrom :: forall x. ModelDashboardEndpoint -> Rep ModelDashboardEndpoint x
Prelude.Generic)
newModelDashboardEndpoint ::
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
Prelude.UTCTime ->
EndpointStatus ->
ModelDashboardEndpoint
newModelDashboardEndpoint :: Text
-> Text
-> UTCTime
-> UTCTime
-> EndpointStatus
-> ModelDashboardEndpoint
newModelDashboardEndpoint
Text
pEndpointName_
Text
pEndpointArn_
UTCTime
pCreationTime_
UTCTime
pLastModifiedTime_
EndpointStatus
pEndpointStatus_ =
ModelDashboardEndpoint'
{ $sel:endpointName:ModelDashboardEndpoint' :: Text
endpointName =
Text
pEndpointName_,
$sel:endpointArn:ModelDashboardEndpoint' :: Text
endpointArn = Text
pEndpointArn_,
$sel:creationTime:ModelDashboardEndpoint' :: POSIX
creationTime = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
$sel:lastModifiedTime:ModelDashboardEndpoint' :: POSIX
lastModifiedTime =
forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastModifiedTime_,
$sel:endpointStatus:ModelDashboardEndpoint' :: EndpointStatus
endpointStatus = EndpointStatus
pEndpointStatus_
}
modelDashboardEndpoint_endpointName :: Lens.Lens' ModelDashboardEndpoint Prelude.Text
modelDashboardEndpoint_endpointName :: Lens' ModelDashboardEndpoint Text
modelDashboardEndpoint_endpointName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelDashboardEndpoint' {Text
endpointName :: Text
$sel:endpointName:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> Text
endpointName} -> Text
endpointName) (\s :: ModelDashboardEndpoint
s@ModelDashboardEndpoint' {} Text
a -> ModelDashboardEndpoint
s {$sel:endpointName:ModelDashboardEndpoint' :: Text
endpointName = Text
a} :: ModelDashboardEndpoint)
modelDashboardEndpoint_endpointArn :: Lens.Lens' ModelDashboardEndpoint Prelude.Text
modelDashboardEndpoint_endpointArn :: Lens' ModelDashboardEndpoint Text
modelDashboardEndpoint_endpointArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelDashboardEndpoint' {Text
endpointArn :: Text
$sel:endpointArn:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> Text
endpointArn} -> Text
endpointArn) (\s :: ModelDashboardEndpoint
s@ModelDashboardEndpoint' {} Text
a -> ModelDashboardEndpoint
s {$sel:endpointArn:ModelDashboardEndpoint' :: Text
endpointArn = Text
a} :: ModelDashboardEndpoint)
modelDashboardEndpoint_creationTime :: Lens.Lens' ModelDashboardEndpoint Prelude.UTCTime
modelDashboardEndpoint_creationTime :: Lens' ModelDashboardEndpoint UTCTime
modelDashboardEndpoint_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelDashboardEndpoint' {POSIX
creationTime :: POSIX
$sel:creationTime:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> POSIX
creationTime} -> POSIX
creationTime) (\s :: ModelDashboardEndpoint
s@ModelDashboardEndpoint' {} POSIX
a -> ModelDashboardEndpoint
s {$sel:creationTime:ModelDashboardEndpoint' :: POSIX
creationTime = POSIX
a} :: ModelDashboardEndpoint) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
modelDashboardEndpoint_lastModifiedTime :: Lens.Lens' ModelDashboardEndpoint Prelude.UTCTime
modelDashboardEndpoint_lastModifiedTime :: Lens' ModelDashboardEndpoint UTCTime
modelDashboardEndpoint_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelDashboardEndpoint' {POSIX
lastModifiedTime :: POSIX
$sel:lastModifiedTime:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> POSIX
lastModifiedTime} -> POSIX
lastModifiedTime) (\s :: ModelDashboardEndpoint
s@ModelDashboardEndpoint' {} POSIX
a -> ModelDashboardEndpoint
s {$sel:lastModifiedTime:ModelDashboardEndpoint' :: POSIX
lastModifiedTime = POSIX
a} :: ModelDashboardEndpoint) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
modelDashboardEndpoint_endpointStatus :: Lens.Lens' ModelDashboardEndpoint EndpointStatus
modelDashboardEndpoint_endpointStatus :: Lens' ModelDashboardEndpoint EndpointStatus
modelDashboardEndpoint_endpointStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelDashboardEndpoint' {EndpointStatus
endpointStatus :: EndpointStatus
$sel:endpointStatus:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> EndpointStatus
endpointStatus} -> EndpointStatus
endpointStatus) (\s :: ModelDashboardEndpoint
s@ModelDashboardEndpoint' {} EndpointStatus
a -> ModelDashboardEndpoint
s {$sel:endpointStatus:ModelDashboardEndpoint' :: EndpointStatus
endpointStatus = EndpointStatus
a} :: ModelDashboardEndpoint)
instance Data.FromJSON ModelDashboardEndpoint where
parseJSON :: Value -> Parser ModelDashboardEndpoint
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ModelDashboardEndpoint"
( \Object
x ->
Text
-> Text
-> POSIX
-> POSIX
-> EndpointStatus
-> ModelDashboardEndpoint
ModelDashboardEndpoint'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"EndpointName")
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
"EndpointArn")
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
"LastModifiedTime")
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
"EndpointStatus")
)
instance Prelude.Hashable ModelDashboardEndpoint where
hashWithSalt :: Int -> ModelDashboardEndpoint -> Int
hashWithSalt Int
_salt ModelDashboardEndpoint' {Text
POSIX
EndpointStatus
endpointStatus :: EndpointStatus
lastModifiedTime :: POSIX
creationTime :: POSIX
endpointArn :: Text
endpointName :: Text
$sel:endpointStatus:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> EndpointStatus
$sel:lastModifiedTime:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> POSIX
$sel:creationTime:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> POSIX
$sel:endpointArn:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> Text
$sel:endpointName:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
endpointName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
endpointArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
creationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
lastModifiedTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` EndpointStatus
endpointStatus
instance Prelude.NFData ModelDashboardEndpoint where
rnf :: ModelDashboardEndpoint -> ()
rnf ModelDashboardEndpoint' {Text
POSIX
EndpointStatus
endpointStatus :: EndpointStatus
lastModifiedTime :: POSIX
creationTime :: POSIX
endpointArn :: Text
endpointName :: Text
$sel:endpointStatus:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> EndpointStatus
$sel:lastModifiedTime:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> POSIX
$sel:creationTime:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> POSIX
$sel:endpointArn:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> Text
$sel:endpointName:ModelDashboardEndpoint' :: ModelDashboardEndpoint -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
endpointName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
endpointArn
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 POSIX
lastModifiedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf EndpointStatus
endpointStatus