{-# 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.DMS.Types.PendingMaintenanceAction
-- 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.DMS.Types.PendingMaintenanceAction where

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

-- | Describes a maintenance action pending for an DMS resource, including
-- when and how it will be applied. This data type is a response element to
-- the @DescribePendingMaintenanceActions@ operation.
--
-- /See:/ 'newPendingMaintenanceAction' smart constructor.
data PendingMaintenanceAction = PendingMaintenanceAction'
  { -- | The date of the maintenance window when the action is to be applied. The
    -- maintenance action is applied to the resource during its first
    -- maintenance window after this date. If this date is specified, any
    -- @next-maintenance@ opt-in requests are ignored.
    PendingMaintenanceAction -> Maybe POSIX
autoAppliedAfterDate :: Prelude.Maybe Core.POSIX,
    -- | The type of pending maintenance action that is available for the
    -- resource.
    PendingMaintenanceAction -> Maybe Text
action :: Prelude.Maybe Prelude.Text,
    -- | The type of opt-in request that has been received for the resource.
    PendingMaintenanceAction -> Maybe Text
optInStatus :: Prelude.Maybe Prelude.Text,
    -- | A description providing more detail about the maintenance action.
    PendingMaintenanceAction -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The date when the maintenance action will be automatically applied. The
    -- maintenance action is applied to the resource on this date regardless of
    -- the maintenance window for the resource. If this date is specified, any
    -- @immediate@ opt-in requests are ignored.
    PendingMaintenanceAction -> Maybe POSIX
forcedApplyDate :: Prelude.Maybe Core.POSIX,
    -- | The effective date when the pending maintenance action will be applied
    -- to the resource. This date takes into account opt-in requests received
    -- from the @ApplyPendingMaintenanceAction@ API operation, and also the
    -- @AutoAppliedAfterDate@ and @ForcedApplyDate@ parameter values. This
    -- value is blank if an opt-in request has not been received and nothing
    -- has been specified for @AutoAppliedAfterDate@ or @ForcedApplyDate@.
    PendingMaintenanceAction -> Maybe POSIX
currentApplyDate :: Prelude.Maybe Core.POSIX
  }
  deriving (PendingMaintenanceAction -> PendingMaintenanceAction -> Bool
(PendingMaintenanceAction -> PendingMaintenanceAction -> Bool)
-> (PendingMaintenanceAction -> PendingMaintenanceAction -> Bool)
-> Eq PendingMaintenanceAction
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PendingMaintenanceAction -> PendingMaintenanceAction -> Bool
$c/= :: PendingMaintenanceAction -> PendingMaintenanceAction -> Bool
== :: PendingMaintenanceAction -> PendingMaintenanceAction -> Bool
$c== :: PendingMaintenanceAction -> PendingMaintenanceAction -> Bool
Prelude.Eq, ReadPrec [PendingMaintenanceAction]
ReadPrec PendingMaintenanceAction
Int -> ReadS PendingMaintenanceAction
ReadS [PendingMaintenanceAction]
(Int -> ReadS PendingMaintenanceAction)
-> ReadS [PendingMaintenanceAction]
-> ReadPrec PendingMaintenanceAction
-> ReadPrec [PendingMaintenanceAction]
-> Read PendingMaintenanceAction
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PendingMaintenanceAction]
$creadListPrec :: ReadPrec [PendingMaintenanceAction]
readPrec :: ReadPrec PendingMaintenanceAction
$creadPrec :: ReadPrec PendingMaintenanceAction
readList :: ReadS [PendingMaintenanceAction]
$creadList :: ReadS [PendingMaintenanceAction]
readsPrec :: Int -> ReadS PendingMaintenanceAction
$creadsPrec :: Int -> ReadS PendingMaintenanceAction
Prelude.Read, Int -> PendingMaintenanceAction -> ShowS
[PendingMaintenanceAction] -> ShowS
PendingMaintenanceAction -> String
(Int -> PendingMaintenanceAction -> ShowS)
-> (PendingMaintenanceAction -> String)
-> ([PendingMaintenanceAction] -> ShowS)
-> Show PendingMaintenanceAction
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PendingMaintenanceAction] -> ShowS
$cshowList :: [PendingMaintenanceAction] -> ShowS
show :: PendingMaintenanceAction -> String
$cshow :: PendingMaintenanceAction -> String
showsPrec :: Int -> PendingMaintenanceAction -> ShowS
$cshowsPrec :: Int -> PendingMaintenanceAction -> ShowS
Prelude.Show, (forall x.
 PendingMaintenanceAction -> Rep PendingMaintenanceAction x)
-> (forall x.
    Rep PendingMaintenanceAction x -> PendingMaintenanceAction)
-> Generic PendingMaintenanceAction
forall x.
Rep PendingMaintenanceAction x -> PendingMaintenanceAction
forall x.
PendingMaintenanceAction -> Rep PendingMaintenanceAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PendingMaintenanceAction x -> PendingMaintenanceAction
$cfrom :: forall x.
PendingMaintenanceAction -> Rep PendingMaintenanceAction x
Prelude.Generic)

-- |
-- Create a value of 'PendingMaintenanceAction' 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:
--
-- 'autoAppliedAfterDate', 'pendingMaintenanceAction_autoAppliedAfterDate' - The date of the maintenance window when the action is to be applied. The
-- maintenance action is applied to the resource during its first
-- maintenance window after this date. If this date is specified, any
-- @next-maintenance@ opt-in requests are ignored.
--
-- 'action', 'pendingMaintenanceAction_action' - The type of pending maintenance action that is available for the
-- resource.
--
-- 'optInStatus', 'pendingMaintenanceAction_optInStatus' - The type of opt-in request that has been received for the resource.
--
-- 'description', 'pendingMaintenanceAction_description' - A description providing more detail about the maintenance action.
--
-- 'forcedApplyDate', 'pendingMaintenanceAction_forcedApplyDate' - The date when the maintenance action will be automatically applied. The
-- maintenance action is applied to the resource on this date regardless of
-- the maintenance window for the resource. If this date is specified, any
-- @immediate@ opt-in requests are ignored.
--
-- 'currentApplyDate', 'pendingMaintenanceAction_currentApplyDate' - The effective date when the pending maintenance action will be applied
-- to the resource. This date takes into account opt-in requests received
-- from the @ApplyPendingMaintenanceAction@ API operation, and also the
-- @AutoAppliedAfterDate@ and @ForcedApplyDate@ parameter values. This
-- value is blank if an opt-in request has not been received and nothing
-- has been specified for @AutoAppliedAfterDate@ or @ForcedApplyDate@.
newPendingMaintenanceAction ::
  PendingMaintenanceAction
newPendingMaintenanceAction :: PendingMaintenanceAction
newPendingMaintenanceAction =
  PendingMaintenanceAction' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> PendingMaintenanceAction
PendingMaintenanceAction'
    { $sel:autoAppliedAfterDate:PendingMaintenanceAction' :: Maybe POSIX
autoAppliedAfterDate =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:action:PendingMaintenanceAction' :: Maybe Text
action = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:optInStatus:PendingMaintenanceAction' :: Maybe Text
optInStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:PendingMaintenanceAction' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:forcedApplyDate:PendingMaintenanceAction' :: Maybe POSIX
forcedApplyDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:currentApplyDate:PendingMaintenanceAction' :: Maybe POSIX
currentApplyDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

-- | The date of the maintenance window when the action is to be applied. The
-- maintenance action is applied to the resource during its first
-- maintenance window after this date. If this date is specified, any
-- @next-maintenance@ opt-in requests are ignored.
pendingMaintenanceAction_autoAppliedAfterDate :: Lens.Lens' PendingMaintenanceAction (Prelude.Maybe Prelude.UTCTime)
pendingMaintenanceAction_autoAppliedAfterDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PendingMaintenanceAction -> f PendingMaintenanceAction
pendingMaintenanceAction_autoAppliedAfterDate = (PendingMaintenanceAction -> Maybe POSIX)
-> (PendingMaintenanceAction
    -> Maybe POSIX -> PendingMaintenanceAction)
-> Lens
     PendingMaintenanceAction
     PendingMaintenanceAction
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingMaintenanceAction' {Maybe POSIX
autoAppliedAfterDate :: Maybe POSIX
$sel:autoAppliedAfterDate:PendingMaintenanceAction' :: PendingMaintenanceAction -> Maybe POSIX
autoAppliedAfterDate} -> Maybe POSIX
autoAppliedAfterDate) (\s :: PendingMaintenanceAction
s@PendingMaintenanceAction' {} Maybe POSIX
a -> PendingMaintenanceAction
s {$sel:autoAppliedAfterDate:PendingMaintenanceAction' :: Maybe POSIX
autoAppliedAfterDate = Maybe POSIX
a} :: PendingMaintenanceAction) ((Maybe POSIX -> f (Maybe POSIX))
 -> PendingMaintenanceAction -> f PendingMaintenanceAction)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PendingMaintenanceAction
-> f PendingMaintenanceAction
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The type of pending maintenance action that is available for the
-- resource.
pendingMaintenanceAction_action :: Lens.Lens' PendingMaintenanceAction (Prelude.Maybe Prelude.Text)
pendingMaintenanceAction_action :: (Maybe Text -> f (Maybe Text))
-> PendingMaintenanceAction -> f PendingMaintenanceAction
pendingMaintenanceAction_action = (PendingMaintenanceAction -> Maybe Text)
-> (PendingMaintenanceAction
    -> Maybe Text -> PendingMaintenanceAction)
-> Lens
     PendingMaintenanceAction
     PendingMaintenanceAction
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingMaintenanceAction' {Maybe Text
action :: Maybe Text
$sel:action:PendingMaintenanceAction' :: PendingMaintenanceAction -> Maybe Text
action} -> Maybe Text
action) (\s :: PendingMaintenanceAction
s@PendingMaintenanceAction' {} Maybe Text
a -> PendingMaintenanceAction
s {$sel:action:PendingMaintenanceAction' :: Maybe Text
action = Maybe Text
a} :: PendingMaintenanceAction)

-- | The type of opt-in request that has been received for the resource.
pendingMaintenanceAction_optInStatus :: Lens.Lens' PendingMaintenanceAction (Prelude.Maybe Prelude.Text)
pendingMaintenanceAction_optInStatus :: (Maybe Text -> f (Maybe Text))
-> PendingMaintenanceAction -> f PendingMaintenanceAction
pendingMaintenanceAction_optInStatus = (PendingMaintenanceAction -> Maybe Text)
-> (PendingMaintenanceAction
    -> Maybe Text -> PendingMaintenanceAction)
-> Lens
     PendingMaintenanceAction
     PendingMaintenanceAction
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingMaintenanceAction' {Maybe Text
optInStatus :: Maybe Text
$sel:optInStatus:PendingMaintenanceAction' :: PendingMaintenanceAction -> Maybe Text
optInStatus} -> Maybe Text
optInStatus) (\s :: PendingMaintenanceAction
s@PendingMaintenanceAction' {} Maybe Text
a -> PendingMaintenanceAction
s {$sel:optInStatus:PendingMaintenanceAction' :: Maybe Text
optInStatus = Maybe Text
a} :: PendingMaintenanceAction)

-- | A description providing more detail about the maintenance action.
pendingMaintenanceAction_description :: Lens.Lens' PendingMaintenanceAction (Prelude.Maybe Prelude.Text)
pendingMaintenanceAction_description :: (Maybe Text -> f (Maybe Text))
-> PendingMaintenanceAction -> f PendingMaintenanceAction
pendingMaintenanceAction_description = (PendingMaintenanceAction -> Maybe Text)
-> (PendingMaintenanceAction
    -> Maybe Text -> PendingMaintenanceAction)
-> Lens
     PendingMaintenanceAction
     PendingMaintenanceAction
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingMaintenanceAction' {Maybe Text
description :: Maybe Text
$sel:description:PendingMaintenanceAction' :: PendingMaintenanceAction -> Maybe Text
description} -> Maybe Text
description) (\s :: PendingMaintenanceAction
s@PendingMaintenanceAction' {} Maybe Text
a -> PendingMaintenanceAction
s {$sel:description:PendingMaintenanceAction' :: Maybe Text
description = Maybe Text
a} :: PendingMaintenanceAction)

-- | The date when the maintenance action will be automatically applied. The
-- maintenance action is applied to the resource on this date regardless of
-- the maintenance window for the resource. If this date is specified, any
-- @immediate@ opt-in requests are ignored.
pendingMaintenanceAction_forcedApplyDate :: Lens.Lens' PendingMaintenanceAction (Prelude.Maybe Prelude.UTCTime)
pendingMaintenanceAction_forcedApplyDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PendingMaintenanceAction -> f PendingMaintenanceAction
pendingMaintenanceAction_forcedApplyDate = (PendingMaintenanceAction -> Maybe POSIX)
-> (PendingMaintenanceAction
    -> Maybe POSIX -> PendingMaintenanceAction)
-> Lens
     PendingMaintenanceAction
     PendingMaintenanceAction
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingMaintenanceAction' {Maybe POSIX
forcedApplyDate :: Maybe POSIX
$sel:forcedApplyDate:PendingMaintenanceAction' :: PendingMaintenanceAction -> Maybe POSIX
forcedApplyDate} -> Maybe POSIX
forcedApplyDate) (\s :: PendingMaintenanceAction
s@PendingMaintenanceAction' {} Maybe POSIX
a -> PendingMaintenanceAction
s {$sel:forcedApplyDate:PendingMaintenanceAction' :: Maybe POSIX
forcedApplyDate = Maybe POSIX
a} :: PendingMaintenanceAction) ((Maybe POSIX -> f (Maybe POSIX))
 -> PendingMaintenanceAction -> f PendingMaintenanceAction)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PendingMaintenanceAction
-> f PendingMaintenanceAction
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The effective date when the pending maintenance action will be applied
-- to the resource. This date takes into account opt-in requests received
-- from the @ApplyPendingMaintenanceAction@ API operation, and also the
-- @AutoAppliedAfterDate@ and @ForcedApplyDate@ parameter values. This
-- value is blank if an opt-in request has not been received and nothing
-- has been specified for @AutoAppliedAfterDate@ or @ForcedApplyDate@.
pendingMaintenanceAction_currentApplyDate :: Lens.Lens' PendingMaintenanceAction (Prelude.Maybe Prelude.UTCTime)
pendingMaintenanceAction_currentApplyDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PendingMaintenanceAction -> f PendingMaintenanceAction
pendingMaintenanceAction_currentApplyDate = (PendingMaintenanceAction -> Maybe POSIX)
-> (PendingMaintenanceAction
    -> Maybe POSIX -> PendingMaintenanceAction)
-> Lens
     PendingMaintenanceAction
     PendingMaintenanceAction
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingMaintenanceAction' {Maybe POSIX
currentApplyDate :: Maybe POSIX
$sel:currentApplyDate:PendingMaintenanceAction' :: PendingMaintenanceAction -> Maybe POSIX
currentApplyDate} -> Maybe POSIX
currentApplyDate) (\s :: PendingMaintenanceAction
s@PendingMaintenanceAction' {} Maybe POSIX
a -> PendingMaintenanceAction
s {$sel:currentApplyDate:PendingMaintenanceAction' :: Maybe POSIX
currentApplyDate = Maybe POSIX
a} :: PendingMaintenanceAction) ((Maybe POSIX -> f (Maybe POSIX))
 -> PendingMaintenanceAction -> f PendingMaintenanceAction)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PendingMaintenanceAction
-> f PendingMaintenanceAction
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

instance Core.FromJSON PendingMaintenanceAction where
  parseJSON :: Value -> Parser PendingMaintenanceAction
parseJSON =
    String
-> (Object -> Parser PendingMaintenanceAction)
-> Value
-> Parser PendingMaintenanceAction
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"PendingMaintenanceAction"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> PendingMaintenanceAction
PendingMaintenanceAction'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe POSIX
 -> PendingMaintenanceAction)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe POSIX
      -> PendingMaintenanceAction)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AutoAppliedAfterDate")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe POSIX
   -> PendingMaintenanceAction)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe POSIX
      -> PendingMaintenanceAction)
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
"Action")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe POSIX
   -> PendingMaintenanceAction)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX -> Maybe POSIX -> PendingMaintenanceAction)
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
"OptInStatus")
            Parser
  (Maybe Text
   -> Maybe POSIX -> Maybe POSIX -> PendingMaintenanceAction)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> Maybe POSIX -> PendingMaintenanceAction)
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
"Description")
            Parser (Maybe POSIX -> Maybe POSIX -> PendingMaintenanceAction)
-> Parser (Maybe POSIX)
-> Parser (Maybe POSIX -> PendingMaintenanceAction)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ForcedApplyDate")
            Parser (Maybe POSIX -> PendingMaintenanceAction)
-> Parser (Maybe POSIX) -> Parser PendingMaintenanceAction
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CurrentApplyDate")
      )

instance Prelude.Hashable PendingMaintenanceAction

instance Prelude.NFData PendingMaintenanceAction