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