{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MGN.Types.LifeCycleLastCutoverFinalized
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MGN.Types.LifeCycleLastCutoverFinalized where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Lifecycle Cutover finalized
--
-- /See:/ 'newLifeCycleLastCutoverFinalized' smart constructor.
data LifeCycleLastCutoverFinalized = LifeCycleLastCutoverFinalized'
  { -- | Lifecycle Cutover finalized date and time.
    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)

-- |
-- Create a value of 'LifeCycleLastCutoverFinalized' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'apiCallDateTime', 'lifeCycleLastCutoverFinalized_apiCallDateTime' - Lifecycle Cutover finalized date and time.
newLifeCycleLastCutoverFinalized ::
  LifeCycleLastCutoverFinalized
newLifeCycleLastCutoverFinalized :: LifeCycleLastCutoverFinalized
newLifeCycleLastCutoverFinalized =
  LifeCycleLastCutoverFinalized' :: Maybe Text -> LifeCycleLastCutoverFinalized
LifeCycleLastCutoverFinalized'
    { $sel:apiCallDateTime:LifeCycleLastCutoverFinalized' :: Maybe Text
apiCallDateTime =
        Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Lifecycle Cutover finalized date and time.
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