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