{-# 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.EndpointConfigSummary 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 EndpointConfigSummary = EndpointConfigSummary'
{
EndpointConfigSummary -> Text
endpointConfigName :: Prelude.Text,
EndpointConfigSummary -> Text
endpointConfigArn :: Prelude.Text,
EndpointConfigSummary -> POSIX
creationTime :: Data.POSIX
}
deriving (EndpointConfigSummary -> EndpointConfigSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EndpointConfigSummary -> EndpointConfigSummary -> Bool
$c/= :: EndpointConfigSummary -> EndpointConfigSummary -> Bool
== :: EndpointConfigSummary -> EndpointConfigSummary -> Bool
$c== :: EndpointConfigSummary -> EndpointConfigSummary -> Bool
Prelude.Eq, ReadPrec [EndpointConfigSummary]
ReadPrec EndpointConfigSummary
Int -> ReadS EndpointConfigSummary
ReadS [EndpointConfigSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EndpointConfigSummary]
$creadListPrec :: ReadPrec [EndpointConfigSummary]
readPrec :: ReadPrec EndpointConfigSummary
$creadPrec :: ReadPrec EndpointConfigSummary
readList :: ReadS [EndpointConfigSummary]
$creadList :: ReadS [EndpointConfigSummary]
readsPrec :: Int -> ReadS EndpointConfigSummary
$creadsPrec :: Int -> ReadS EndpointConfigSummary
Prelude.Read, Int -> EndpointConfigSummary -> ShowS
[EndpointConfigSummary] -> ShowS
EndpointConfigSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EndpointConfigSummary] -> ShowS
$cshowList :: [EndpointConfigSummary] -> ShowS
show :: EndpointConfigSummary -> String
$cshow :: EndpointConfigSummary -> String
showsPrec :: Int -> EndpointConfigSummary -> ShowS
$cshowsPrec :: Int -> EndpointConfigSummary -> ShowS
Prelude.Show, forall x. Rep EndpointConfigSummary x -> EndpointConfigSummary
forall x. EndpointConfigSummary -> Rep EndpointConfigSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EndpointConfigSummary x -> EndpointConfigSummary
$cfrom :: forall x. EndpointConfigSummary -> Rep EndpointConfigSummary x
Prelude.Generic)
newEndpointConfigSummary ::
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
EndpointConfigSummary
newEndpointConfigSummary :: Text -> Text -> UTCTime -> EndpointConfigSummary
newEndpointConfigSummary
Text
pEndpointConfigName_
Text
pEndpointConfigArn_
UTCTime
pCreationTime_ =
EndpointConfigSummary'
{ $sel:endpointConfigName:EndpointConfigSummary' :: Text
endpointConfigName =
Text
pEndpointConfigName_,
$sel:endpointConfigArn:EndpointConfigSummary' :: Text
endpointConfigArn = Text
pEndpointConfigArn_,
$sel:creationTime:EndpointConfigSummary' :: POSIX
creationTime = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_
}
endpointConfigSummary_endpointConfigName :: Lens.Lens' EndpointConfigSummary Prelude.Text
endpointConfigSummary_endpointConfigName :: Lens' EndpointConfigSummary Text
endpointConfigSummary_endpointConfigName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointConfigSummary' {Text
endpointConfigName :: Text
$sel:endpointConfigName:EndpointConfigSummary' :: EndpointConfigSummary -> Text
endpointConfigName} -> Text
endpointConfigName) (\s :: EndpointConfigSummary
s@EndpointConfigSummary' {} Text
a -> EndpointConfigSummary
s {$sel:endpointConfigName:EndpointConfigSummary' :: Text
endpointConfigName = Text
a} :: EndpointConfigSummary)
endpointConfigSummary_endpointConfigArn :: Lens.Lens' EndpointConfigSummary Prelude.Text
endpointConfigSummary_endpointConfigArn :: Lens' EndpointConfigSummary Text
endpointConfigSummary_endpointConfigArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointConfigSummary' {Text
endpointConfigArn :: Text
$sel:endpointConfigArn:EndpointConfigSummary' :: EndpointConfigSummary -> Text
endpointConfigArn} -> Text
endpointConfigArn) (\s :: EndpointConfigSummary
s@EndpointConfigSummary' {} Text
a -> EndpointConfigSummary
s {$sel:endpointConfigArn:EndpointConfigSummary' :: Text
endpointConfigArn = Text
a} :: EndpointConfigSummary)
endpointConfigSummary_creationTime :: Lens.Lens' EndpointConfigSummary Prelude.UTCTime
endpointConfigSummary_creationTime :: Lens' EndpointConfigSummary UTCTime
endpointConfigSummary_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointConfigSummary' {POSIX
creationTime :: POSIX
$sel:creationTime:EndpointConfigSummary' :: EndpointConfigSummary -> POSIX
creationTime} -> POSIX
creationTime) (\s :: EndpointConfigSummary
s@EndpointConfigSummary' {} POSIX
a -> EndpointConfigSummary
s {$sel:creationTime:EndpointConfigSummary' :: POSIX
creationTime = POSIX
a} :: EndpointConfigSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
instance Data.FromJSON EndpointConfigSummary where
parseJSON :: Value -> Parser EndpointConfigSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"EndpointConfigSummary"
( \Object
x ->
Text -> Text -> POSIX -> EndpointConfigSummary
EndpointConfigSummary'
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
"EndpointConfigName")
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
"EndpointConfigArn")
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")
)
instance Prelude.Hashable EndpointConfigSummary where
hashWithSalt :: Int -> EndpointConfigSummary -> Int
hashWithSalt Int
_salt EndpointConfigSummary' {Text
POSIX
creationTime :: POSIX
endpointConfigArn :: Text
endpointConfigName :: Text
$sel:creationTime:EndpointConfigSummary' :: EndpointConfigSummary -> POSIX
$sel:endpointConfigArn:EndpointConfigSummary' :: EndpointConfigSummary -> Text
$sel:endpointConfigName:EndpointConfigSummary' :: EndpointConfigSummary -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
endpointConfigName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
endpointConfigArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
creationTime
instance Prelude.NFData EndpointConfigSummary where
rnf :: EndpointConfigSummary -> ()
rnf EndpointConfigSummary' {Text
POSIX
creationTime :: POSIX
endpointConfigArn :: Text
endpointConfigName :: Text
$sel:creationTime:EndpointConfigSummary' :: EndpointConfigSummary -> POSIX
$sel:endpointConfigArn:EndpointConfigSummary' :: EndpointConfigSummary -> Text
$sel:endpointConfigName:EndpointConfigSummary' :: EndpointConfigSummary -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
endpointConfigName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
endpointConfigArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
creationTime