{-# 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.Backup.Types.ReportPlan where
import Amazonka.Backup.Types.ReportDeliveryChannel
import Amazonka.Backup.Types.ReportSetting
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ReportPlan = ReportPlan'
{
ReportPlan -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
ReportPlan -> Maybe Text
reportPlanName :: Prelude.Maybe Prelude.Text,
ReportPlan -> Maybe Text
reportPlanArn :: Prelude.Maybe Prelude.Text,
ReportPlan -> Maybe ReportSetting
reportSetting :: Prelude.Maybe ReportSetting,
ReportPlan -> Maybe Text
reportPlanDescription :: Prelude.Maybe Prelude.Text,
ReportPlan -> Maybe POSIX
lastAttemptedExecutionTime :: Prelude.Maybe Core.POSIX,
ReportPlan -> Maybe Text
deploymentStatus :: Prelude.Maybe Prelude.Text,
ReportPlan -> Maybe POSIX
lastSuccessfulExecutionTime :: Prelude.Maybe Core.POSIX,
ReportPlan -> Maybe ReportDeliveryChannel
reportDeliveryChannel :: Prelude.Maybe ReportDeliveryChannel
}
deriving (ReportPlan -> ReportPlan -> Bool
(ReportPlan -> ReportPlan -> Bool)
-> (ReportPlan -> ReportPlan -> Bool) -> Eq ReportPlan
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReportPlan -> ReportPlan -> Bool
$c/= :: ReportPlan -> ReportPlan -> Bool
== :: ReportPlan -> ReportPlan -> Bool
$c== :: ReportPlan -> ReportPlan -> Bool
Prelude.Eq, ReadPrec [ReportPlan]
ReadPrec ReportPlan
Int -> ReadS ReportPlan
ReadS [ReportPlan]
(Int -> ReadS ReportPlan)
-> ReadS [ReportPlan]
-> ReadPrec ReportPlan
-> ReadPrec [ReportPlan]
-> Read ReportPlan
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ReportPlan]
$creadListPrec :: ReadPrec [ReportPlan]
readPrec :: ReadPrec ReportPlan
$creadPrec :: ReadPrec ReportPlan
readList :: ReadS [ReportPlan]
$creadList :: ReadS [ReportPlan]
readsPrec :: Int -> ReadS ReportPlan
$creadsPrec :: Int -> ReadS ReportPlan
Prelude.Read, Int -> ReportPlan -> ShowS
[ReportPlan] -> ShowS
ReportPlan -> String
(Int -> ReportPlan -> ShowS)
-> (ReportPlan -> String)
-> ([ReportPlan] -> ShowS)
-> Show ReportPlan
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReportPlan] -> ShowS
$cshowList :: [ReportPlan] -> ShowS
show :: ReportPlan -> String
$cshow :: ReportPlan -> String
showsPrec :: Int -> ReportPlan -> ShowS
$cshowsPrec :: Int -> ReportPlan -> ShowS
Prelude.Show, (forall x. ReportPlan -> Rep ReportPlan x)
-> (forall x. Rep ReportPlan x -> ReportPlan) -> Generic ReportPlan
forall x. Rep ReportPlan x -> ReportPlan
forall x. ReportPlan -> Rep ReportPlan x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ReportPlan x -> ReportPlan
$cfrom :: forall x. ReportPlan -> Rep ReportPlan x
Prelude.Generic)
newReportPlan ::
ReportPlan
newReportPlan :: ReportPlan
newReportPlan =
ReportPlan' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ReportSetting
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan
ReportPlan'
{ $sel:creationTime:ReportPlan' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:reportPlanName:ReportPlan' :: Maybe Text
reportPlanName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:reportPlanArn:ReportPlan' :: Maybe Text
reportPlanArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:reportSetting:ReportPlan' :: Maybe ReportSetting
reportSetting = Maybe ReportSetting
forall a. Maybe a
Prelude.Nothing,
$sel:reportPlanDescription:ReportPlan' :: Maybe Text
reportPlanDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastAttemptedExecutionTime:ReportPlan' :: Maybe POSIX
lastAttemptedExecutionTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:deploymentStatus:ReportPlan' :: Maybe Text
deploymentStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastSuccessfulExecutionTime:ReportPlan' :: Maybe POSIX
lastSuccessfulExecutionTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:reportDeliveryChannel:ReportPlan' :: Maybe ReportDeliveryChannel
reportDeliveryChannel = Maybe ReportDeliveryChannel
forall a. Maybe a
Prelude.Nothing
}
reportPlan_creationTime :: Lens.Lens' ReportPlan (Prelude.Maybe Prelude.UTCTime)
reportPlan_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> ReportPlan -> f ReportPlan
reportPlan_creationTime = (ReportPlan -> Maybe POSIX)
-> (ReportPlan -> Maybe POSIX -> ReportPlan)
-> Lens ReportPlan ReportPlan (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReportPlan' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:ReportPlan' :: ReportPlan -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: ReportPlan
s@ReportPlan' {} Maybe POSIX
a -> ReportPlan
s {$sel:creationTime:ReportPlan' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: ReportPlan) ((Maybe POSIX -> f (Maybe POSIX)) -> ReportPlan -> f ReportPlan)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ReportPlan
-> f ReportPlan
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
reportPlan_reportPlanName :: Lens.Lens' ReportPlan (Prelude.Maybe Prelude.Text)
reportPlan_reportPlanName :: (Maybe Text -> f (Maybe Text)) -> ReportPlan -> f ReportPlan
reportPlan_reportPlanName = (ReportPlan -> Maybe Text)
-> (ReportPlan -> Maybe Text -> ReportPlan)
-> Lens ReportPlan ReportPlan (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReportPlan' {Maybe Text
reportPlanName :: Maybe Text
$sel:reportPlanName:ReportPlan' :: ReportPlan -> Maybe Text
reportPlanName} -> Maybe Text
reportPlanName) (\s :: ReportPlan
s@ReportPlan' {} Maybe Text
a -> ReportPlan
s {$sel:reportPlanName:ReportPlan' :: Maybe Text
reportPlanName = Maybe Text
a} :: ReportPlan)
reportPlan_reportPlanArn :: Lens.Lens' ReportPlan (Prelude.Maybe Prelude.Text)
reportPlan_reportPlanArn :: (Maybe Text -> f (Maybe Text)) -> ReportPlan -> f ReportPlan
reportPlan_reportPlanArn = (ReportPlan -> Maybe Text)
-> (ReportPlan -> Maybe Text -> ReportPlan)
-> Lens ReportPlan ReportPlan (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReportPlan' {Maybe Text
reportPlanArn :: Maybe Text
$sel:reportPlanArn:ReportPlan' :: ReportPlan -> Maybe Text
reportPlanArn} -> Maybe Text
reportPlanArn) (\s :: ReportPlan
s@ReportPlan' {} Maybe Text
a -> ReportPlan
s {$sel:reportPlanArn:ReportPlan' :: Maybe Text
reportPlanArn = Maybe Text
a} :: ReportPlan)
reportPlan_reportSetting :: Lens.Lens' ReportPlan (Prelude.Maybe ReportSetting)
reportPlan_reportSetting :: (Maybe ReportSetting -> f (Maybe ReportSetting))
-> ReportPlan -> f ReportPlan
reportPlan_reportSetting = (ReportPlan -> Maybe ReportSetting)
-> (ReportPlan -> Maybe ReportSetting -> ReportPlan)
-> Lens
ReportPlan ReportPlan (Maybe ReportSetting) (Maybe ReportSetting)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReportPlan' {Maybe ReportSetting
reportSetting :: Maybe ReportSetting
$sel:reportSetting:ReportPlan' :: ReportPlan -> Maybe ReportSetting
reportSetting} -> Maybe ReportSetting
reportSetting) (\s :: ReportPlan
s@ReportPlan' {} Maybe ReportSetting
a -> ReportPlan
s {$sel:reportSetting:ReportPlan' :: Maybe ReportSetting
reportSetting = Maybe ReportSetting
a} :: ReportPlan)
reportPlan_reportPlanDescription :: Lens.Lens' ReportPlan (Prelude.Maybe Prelude.Text)
reportPlan_reportPlanDescription :: (Maybe Text -> f (Maybe Text)) -> ReportPlan -> f ReportPlan
reportPlan_reportPlanDescription = (ReportPlan -> Maybe Text)
-> (ReportPlan -> Maybe Text -> ReportPlan)
-> Lens ReportPlan ReportPlan (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReportPlan' {Maybe Text
reportPlanDescription :: Maybe Text
$sel:reportPlanDescription:ReportPlan' :: ReportPlan -> Maybe Text
reportPlanDescription} -> Maybe Text
reportPlanDescription) (\s :: ReportPlan
s@ReportPlan' {} Maybe Text
a -> ReportPlan
s {$sel:reportPlanDescription:ReportPlan' :: Maybe Text
reportPlanDescription = Maybe Text
a} :: ReportPlan)
reportPlan_lastAttemptedExecutionTime :: Lens.Lens' ReportPlan (Prelude.Maybe Prelude.UTCTime)
reportPlan_lastAttemptedExecutionTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> ReportPlan -> f ReportPlan
reportPlan_lastAttemptedExecutionTime = (ReportPlan -> Maybe POSIX)
-> (ReportPlan -> Maybe POSIX -> ReportPlan)
-> Lens ReportPlan ReportPlan (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReportPlan' {Maybe POSIX
lastAttemptedExecutionTime :: Maybe POSIX
$sel:lastAttemptedExecutionTime:ReportPlan' :: ReportPlan -> Maybe POSIX
lastAttemptedExecutionTime} -> Maybe POSIX
lastAttemptedExecutionTime) (\s :: ReportPlan
s@ReportPlan' {} Maybe POSIX
a -> ReportPlan
s {$sel:lastAttemptedExecutionTime:ReportPlan' :: Maybe POSIX
lastAttemptedExecutionTime = Maybe POSIX
a} :: ReportPlan) ((Maybe POSIX -> f (Maybe POSIX)) -> ReportPlan -> f ReportPlan)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ReportPlan
-> f ReportPlan
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
reportPlan_deploymentStatus :: Lens.Lens' ReportPlan (Prelude.Maybe Prelude.Text)
reportPlan_deploymentStatus :: (Maybe Text -> f (Maybe Text)) -> ReportPlan -> f ReportPlan
reportPlan_deploymentStatus = (ReportPlan -> Maybe Text)
-> (ReportPlan -> Maybe Text -> ReportPlan)
-> Lens ReportPlan ReportPlan (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReportPlan' {Maybe Text
deploymentStatus :: Maybe Text
$sel:deploymentStatus:ReportPlan' :: ReportPlan -> Maybe Text
deploymentStatus} -> Maybe Text
deploymentStatus) (\s :: ReportPlan
s@ReportPlan' {} Maybe Text
a -> ReportPlan
s {$sel:deploymentStatus:ReportPlan' :: Maybe Text
deploymentStatus = Maybe Text
a} :: ReportPlan)
reportPlan_lastSuccessfulExecutionTime :: Lens.Lens' ReportPlan (Prelude.Maybe Prelude.UTCTime)
reportPlan_lastSuccessfulExecutionTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> ReportPlan -> f ReportPlan
reportPlan_lastSuccessfulExecutionTime = (ReportPlan -> Maybe POSIX)
-> (ReportPlan -> Maybe POSIX -> ReportPlan)
-> Lens ReportPlan ReportPlan (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReportPlan' {Maybe POSIX
lastSuccessfulExecutionTime :: Maybe POSIX
$sel:lastSuccessfulExecutionTime:ReportPlan' :: ReportPlan -> Maybe POSIX
lastSuccessfulExecutionTime} -> Maybe POSIX
lastSuccessfulExecutionTime) (\s :: ReportPlan
s@ReportPlan' {} Maybe POSIX
a -> ReportPlan
s {$sel:lastSuccessfulExecutionTime:ReportPlan' :: Maybe POSIX
lastSuccessfulExecutionTime = Maybe POSIX
a} :: ReportPlan) ((Maybe POSIX -> f (Maybe POSIX)) -> ReportPlan -> f ReportPlan)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ReportPlan
-> f ReportPlan
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
reportPlan_reportDeliveryChannel :: Lens.Lens' ReportPlan (Prelude.Maybe ReportDeliveryChannel)
reportPlan_reportDeliveryChannel :: (Maybe ReportDeliveryChannel -> f (Maybe ReportDeliveryChannel))
-> ReportPlan -> f ReportPlan
reportPlan_reportDeliveryChannel = (ReportPlan -> Maybe ReportDeliveryChannel)
-> (ReportPlan -> Maybe ReportDeliveryChannel -> ReportPlan)
-> Lens
ReportPlan
ReportPlan
(Maybe ReportDeliveryChannel)
(Maybe ReportDeliveryChannel)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReportPlan' {Maybe ReportDeliveryChannel
reportDeliveryChannel :: Maybe ReportDeliveryChannel
$sel:reportDeliveryChannel:ReportPlan' :: ReportPlan -> Maybe ReportDeliveryChannel
reportDeliveryChannel} -> Maybe ReportDeliveryChannel
reportDeliveryChannel) (\s :: ReportPlan
s@ReportPlan' {} Maybe ReportDeliveryChannel
a -> ReportPlan
s {$sel:reportDeliveryChannel:ReportPlan' :: Maybe ReportDeliveryChannel
reportDeliveryChannel = Maybe ReportDeliveryChannel
a} :: ReportPlan)
instance Core.FromJSON ReportPlan where
parseJSON :: Value -> Parser ReportPlan
parseJSON =
String
-> (Object -> Parser ReportPlan) -> Value -> Parser ReportPlan
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ReportPlan"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ReportSetting
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan
ReportPlan'
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ReportSetting
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe ReportSetting
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
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
"CreationTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe ReportSetting
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe ReportSetting
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
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
"ReportPlanName")
Parser
(Maybe Text
-> Maybe ReportSetting
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
-> Parser (Maybe Text)
-> Parser
(Maybe ReportSetting
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
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
"ReportPlanArn")
Parser
(Maybe ReportSetting
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
-> Parser (Maybe ReportSetting)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ReportSetting)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReportSetting")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
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
"ReportPlanDescription")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe ReportDeliveryChannel
-> ReportPlan)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe POSIX -> Maybe ReportDeliveryChannel -> ReportPlan)
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
"LastAttemptedExecutionTime")
Parser
(Maybe Text
-> Maybe POSIX -> Maybe ReportDeliveryChannel -> ReportPlan)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX -> Maybe ReportDeliveryChannel -> ReportPlan)
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
"DeploymentStatus")
Parser (Maybe POSIX -> Maybe ReportDeliveryChannel -> ReportPlan)
-> Parser (Maybe POSIX)
-> Parser (Maybe ReportDeliveryChannel -> ReportPlan)
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
"LastSuccessfulExecutionTime")
Parser (Maybe ReportDeliveryChannel -> ReportPlan)
-> Parser (Maybe ReportDeliveryChannel) -> Parser ReportPlan
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ReportDeliveryChannel)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReportDeliveryChannel")
)
instance Prelude.Hashable ReportPlan
instance Prelude.NFData ReportPlan