{-# 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.MGN.Types.LifeCycleLastTestFinalized where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data LifeCycleLastTestFinalized = LifeCycleLastTestFinalized'
{
LifeCycleLastTestFinalized -> Maybe Text
apiCallDateTime :: Prelude.Maybe Prelude.Text
}
deriving (LifeCycleLastTestFinalized -> LifeCycleLastTestFinalized -> Bool
(LifeCycleLastTestFinalized -> LifeCycleLastTestFinalized -> Bool)
-> (LifeCycleLastTestFinalized
-> LifeCycleLastTestFinalized -> Bool)
-> Eq LifeCycleLastTestFinalized
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LifeCycleLastTestFinalized -> LifeCycleLastTestFinalized -> Bool
$c/= :: LifeCycleLastTestFinalized -> LifeCycleLastTestFinalized -> Bool
== :: LifeCycleLastTestFinalized -> LifeCycleLastTestFinalized -> Bool
$c== :: LifeCycleLastTestFinalized -> LifeCycleLastTestFinalized -> Bool
Prelude.Eq, ReadPrec [LifeCycleLastTestFinalized]
ReadPrec LifeCycleLastTestFinalized
Int -> ReadS LifeCycleLastTestFinalized
ReadS [LifeCycleLastTestFinalized]
(Int -> ReadS LifeCycleLastTestFinalized)
-> ReadS [LifeCycleLastTestFinalized]
-> ReadPrec LifeCycleLastTestFinalized
-> ReadPrec [LifeCycleLastTestFinalized]
-> Read LifeCycleLastTestFinalized
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LifeCycleLastTestFinalized]
$creadListPrec :: ReadPrec [LifeCycleLastTestFinalized]
readPrec :: ReadPrec LifeCycleLastTestFinalized
$creadPrec :: ReadPrec LifeCycleLastTestFinalized
readList :: ReadS [LifeCycleLastTestFinalized]
$creadList :: ReadS [LifeCycleLastTestFinalized]
readsPrec :: Int -> ReadS LifeCycleLastTestFinalized
$creadsPrec :: Int -> ReadS LifeCycleLastTestFinalized
Prelude.Read, Int -> LifeCycleLastTestFinalized -> ShowS
[LifeCycleLastTestFinalized] -> ShowS
LifeCycleLastTestFinalized -> String
(Int -> LifeCycleLastTestFinalized -> ShowS)
-> (LifeCycleLastTestFinalized -> String)
-> ([LifeCycleLastTestFinalized] -> ShowS)
-> Show LifeCycleLastTestFinalized
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LifeCycleLastTestFinalized] -> ShowS
$cshowList :: [LifeCycleLastTestFinalized] -> ShowS
show :: LifeCycleLastTestFinalized -> String
$cshow :: LifeCycleLastTestFinalized -> String
showsPrec :: Int -> LifeCycleLastTestFinalized -> ShowS
$cshowsPrec :: Int -> LifeCycleLastTestFinalized -> ShowS
Prelude.Show, (forall x.
LifeCycleLastTestFinalized -> Rep LifeCycleLastTestFinalized x)
-> (forall x.
Rep LifeCycleLastTestFinalized x -> LifeCycleLastTestFinalized)
-> Generic LifeCycleLastTestFinalized
forall x.
Rep LifeCycleLastTestFinalized x -> LifeCycleLastTestFinalized
forall x.
LifeCycleLastTestFinalized -> Rep LifeCycleLastTestFinalized x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LifeCycleLastTestFinalized x -> LifeCycleLastTestFinalized
$cfrom :: forall x.
LifeCycleLastTestFinalized -> Rep LifeCycleLastTestFinalized x
Prelude.Generic)
newLifeCycleLastTestFinalized ::
LifeCycleLastTestFinalized
newLifeCycleLastTestFinalized :: LifeCycleLastTestFinalized
newLifeCycleLastTestFinalized =
LifeCycleLastTestFinalized' :: Maybe Text -> LifeCycleLastTestFinalized
LifeCycleLastTestFinalized'
{ $sel:apiCallDateTime:LifeCycleLastTestFinalized' :: Maybe Text
apiCallDateTime =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
lifeCycleLastTestFinalized_apiCallDateTime :: Lens.Lens' LifeCycleLastTestFinalized (Prelude.Maybe Prelude.Text)
lifeCycleLastTestFinalized_apiCallDateTime :: (Maybe Text -> f (Maybe Text))
-> LifeCycleLastTestFinalized -> f LifeCycleLastTestFinalized
lifeCycleLastTestFinalized_apiCallDateTime = (LifeCycleLastTestFinalized -> Maybe Text)
-> (LifeCycleLastTestFinalized
-> Maybe Text -> LifeCycleLastTestFinalized)
-> Lens
LifeCycleLastTestFinalized
LifeCycleLastTestFinalized
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LifeCycleLastTestFinalized' {Maybe Text
apiCallDateTime :: Maybe Text
$sel:apiCallDateTime:LifeCycleLastTestFinalized' :: LifeCycleLastTestFinalized -> Maybe Text
apiCallDateTime} -> Maybe Text
apiCallDateTime) (\s :: LifeCycleLastTestFinalized
s@LifeCycleLastTestFinalized' {} Maybe Text
a -> LifeCycleLastTestFinalized
s {$sel:apiCallDateTime:LifeCycleLastTestFinalized' :: Maybe Text
apiCallDateTime = Maybe Text
a} :: LifeCycleLastTestFinalized)
instance Core.FromJSON LifeCycleLastTestFinalized where
parseJSON :: Value -> Parser LifeCycleLastTestFinalized
parseJSON =
String
-> (Object -> Parser LifeCycleLastTestFinalized)
-> Value
-> Parser LifeCycleLastTestFinalized
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"LifeCycleLastTestFinalized"
( \Object
x ->
Maybe Text -> LifeCycleLastTestFinalized
LifeCycleLastTestFinalized'
(Maybe Text -> LifeCycleLastTestFinalized)
-> Parser (Maybe Text) -> Parser LifeCycleLastTestFinalized
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"apiCallDateTime")
)
instance Prelude.Hashable LifeCycleLastTestFinalized
instance Prelude.NFData LifeCycleLastTestFinalized