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