{-# 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.RestoreJobsListMember where
import Amazonka.Backup.Types.RestoreJobStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data RestoreJobsListMember = RestoreJobsListMember'
{
RestoreJobsListMember -> Maybe RestoreJobStatus
status :: Prelude.Maybe RestoreJobStatus,
RestoreJobsListMember -> Maybe Text
iamRoleArn :: Prelude.Maybe Prelude.Text,
RestoreJobsListMember -> Maybe Integer
expectedCompletionTimeMinutes :: Prelude.Maybe Prelude.Integer,
RestoreJobsListMember -> Maybe Text
restoreJobId :: Prelude.Maybe Prelude.Text,
RestoreJobsListMember -> Maybe Text
resourceType :: Prelude.Maybe Prelude.Text,
RestoreJobsListMember -> Maybe Text
percentDone :: Prelude.Maybe Prelude.Text,
RestoreJobsListMember -> Maybe Text
accountId :: Prelude.Maybe Prelude.Text,
RestoreJobsListMember -> Maybe Text
createdResourceArn :: Prelude.Maybe Prelude.Text,
RestoreJobsListMember -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
RestoreJobsListMember -> Maybe Text
recoveryPointArn :: Prelude.Maybe Prelude.Text,
RestoreJobsListMember -> Maybe Integer
backupSizeInBytes :: Prelude.Maybe Prelude.Integer,
RestoreJobsListMember -> Maybe POSIX
creationDate :: Prelude.Maybe Core.POSIX,
RestoreJobsListMember -> Maybe POSIX
completionDate :: Prelude.Maybe Core.POSIX
}
deriving (RestoreJobsListMember -> RestoreJobsListMember -> Bool
(RestoreJobsListMember -> RestoreJobsListMember -> Bool)
-> (RestoreJobsListMember -> RestoreJobsListMember -> Bool)
-> Eq RestoreJobsListMember
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RestoreJobsListMember -> RestoreJobsListMember -> Bool
$c/= :: RestoreJobsListMember -> RestoreJobsListMember -> Bool
== :: RestoreJobsListMember -> RestoreJobsListMember -> Bool
$c== :: RestoreJobsListMember -> RestoreJobsListMember -> Bool
Prelude.Eq, ReadPrec [RestoreJobsListMember]
ReadPrec RestoreJobsListMember
Int -> ReadS RestoreJobsListMember
ReadS [RestoreJobsListMember]
(Int -> ReadS RestoreJobsListMember)
-> ReadS [RestoreJobsListMember]
-> ReadPrec RestoreJobsListMember
-> ReadPrec [RestoreJobsListMember]
-> Read RestoreJobsListMember
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RestoreJobsListMember]
$creadListPrec :: ReadPrec [RestoreJobsListMember]
readPrec :: ReadPrec RestoreJobsListMember
$creadPrec :: ReadPrec RestoreJobsListMember
readList :: ReadS [RestoreJobsListMember]
$creadList :: ReadS [RestoreJobsListMember]
readsPrec :: Int -> ReadS RestoreJobsListMember
$creadsPrec :: Int -> ReadS RestoreJobsListMember
Prelude.Read, Int -> RestoreJobsListMember -> ShowS
[RestoreJobsListMember] -> ShowS
RestoreJobsListMember -> String
(Int -> RestoreJobsListMember -> ShowS)
-> (RestoreJobsListMember -> String)
-> ([RestoreJobsListMember] -> ShowS)
-> Show RestoreJobsListMember
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RestoreJobsListMember] -> ShowS
$cshowList :: [RestoreJobsListMember] -> ShowS
show :: RestoreJobsListMember -> String
$cshow :: RestoreJobsListMember -> String
showsPrec :: Int -> RestoreJobsListMember -> ShowS
$cshowsPrec :: Int -> RestoreJobsListMember -> ShowS
Prelude.Show, (forall x. RestoreJobsListMember -> Rep RestoreJobsListMember x)
-> (forall x. Rep RestoreJobsListMember x -> RestoreJobsListMember)
-> Generic RestoreJobsListMember
forall x. Rep RestoreJobsListMember x -> RestoreJobsListMember
forall x. RestoreJobsListMember -> Rep RestoreJobsListMember x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RestoreJobsListMember x -> RestoreJobsListMember
$cfrom :: forall x. RestoreJobsListMember -> Rep RestoreJobsListMember x
Prelude.Generic)
newRestoreJobsListMember ::
RestoreJobsListMember
newRestoreJobsListMember :: RestoreJobsListMember
newRestoreJobsListMember =
RestoreJobsListMember' :: Maybe RestoreJobStatus
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember
RestoreJobsListMember'
{ $sel:status:RestoreJobsListMember' :: Maybe RestoreJobStatus
status = Maybe RestoreJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:iamRoleArn:RestoreJobsListMember' :: Maybe Text
iamRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expectedCompletionTimeMinutes:RestoreJobsListMember' :: Maybe Integer
expectedCompletionTimeMinutes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:restoreJobId:RestoreJobsListMember' :: Maybe Text
restoreJobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceType:RestoreJobsListMember' :: Maybe Text
resourceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:percentDone:RestoreJobsListMember' :: Maybe Text
percentDone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:accountId:RestoreJobsListMember' :: Maybe Text
accountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdResourceArn:RestoreJobsListMember' :: Maybe Text
createdResourceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:RestoreJobsListMember' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:recoveryPointArn:RestoreJobsListMember' :: Maybe Text
recoveryPointArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:backupSizeInBytes:RestoreJobsListMember' :: Maybe Integer
backupSizeInBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:creationDate:RestoreJobsListMember' :: Maybe POSIX
creationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:completionDate:RestoreJobsListMember' :: Maybe POSIX
completionDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
restoreJobsListMember_status :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe RestoreJobStatus)
restoreJobsListMember_status :: (Maybe RestoreJobStatus -> f (Maybe RestoreJobStatus))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_status = (RestoreJobsListMember -> Maybe RestoreJobStatus)
-> (RestoreJobsListMember
-> Maybe RestoreJobStatus -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe RestoreJobStatus)
(Maybe RestoreJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe RestoreJobStatus
status :: Maybe RestoreJobStatus
$sel:status:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe RestoreJobStatus
status} -> Maybe RestoreJobStatus
status) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe RestoreJobStatus
a -> RestoreJobsListMember
s {$sel:status:RestoreJobsListMember' :: Maybe RestoreJobStatus
status = Maybe RestoreJobStatus
a} :: RestoreJobsListMember)
restoreJobsListMember_iamRoleArn :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.Text)
restoreJobsListMember_iamRoleArn :: (Maybe Text -> f (Maybe Text))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_iamRoleArn = (RestoreJobsListMember -> Maybe Text)
-> (RestoreJobsListMember -> Maybe Text -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe Text
iamRoleArn :: Maybe Text
$sel:iamRoleArn:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe Text
iamRoleArn} -> Maybe Text
iamRoleArn) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe Text
a -> RestoreJobsListMember
s {$sel:iamRoleArn:RestoreJobsListMember' :: Maybe Text
iamRoleArn = Maybe Text
a} :: RestoreJobsListMember)
restoreJobsListMember_expectedCompletionTimeMinutes :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.Integer)
restoreJobsListMember_expectedCompletionTimeMinutes :: (Maybe Integer -> f (Maybe Integer))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_expectedCompletionTimeMinutes = (RestoreJobsListMember -> Maybe Integer)
-> (RestoreJobsListMember
-> Maybe Integer -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe Integer
expectedCompletionTimeMinutes :: Maybe Integer
$sel:expectedCompletionTimeMinutes:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe Integer
expectedCompletionTimeMinutes} -> Maybe Integer
expectedCompletionTimeMinutes) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe Integer
a -> RestoreJobsListMember
s {$sel:expectedCompletionTimeMinutes:RestoreJobsListMember' :: Maybe Integer
expectedCompletionTimeMinutes = Maybe Integer
a} :: RestoreJobsListMember)
restoreJobsListMember_restoreJobId :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.Text)
restoreJobsListMember_restoreJobId :: (Maybe Text -> f (Maybe Text))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_restoreJobId = (RestoreJobsListMember -> Maybe Text)
-> (RestoreJobsListMember -> Maybe Text -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe Text
restoreJobId :: Maybe Text
$sel:restoreJobId:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe Text
restoreJobId} -> Maybe Text
restoreJobId) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe Text
a -> RestoreJobsListMember
s {$sel:restoreJobId:RestoreJobsListMember' :: Maybe Text
restoreJobId = Maybe Text
a} :: RestoreJobsListMember)
restoreJobsListMember_resourceType :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.Text)
restoreJobsListMember_resourceType :: (Maybe Text -> f (Maybe Text))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_resourceType = (RestoreJobsListMember -> Maybe Text)
-> (RestoreJobsListMember -> Maybe Text -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe Text
resourceType :: Maybe Text
$sel:resourceType:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe Text
resourceType} -> Maybe Text
resourceType) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe Text
a -> RestoreJobsListMember
s {$sel:resourceType:RestoreJobsListMember' :: Maybe Text
resourceType = Maybe Text
a} :: RestoreJobsListMember)
restoreJobsListMember_percentDone :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.Text)
restoreJobsListMember_percentDone :: (Maybe Text -> f (Maybe Text))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_percentDone = (RestoreJobsListMember -> Maybe Text)
-> (RestoreJobsListMember -> Maybe Text -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe Text
percentDone :: Maybe Text
$sel:percentDone:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe Text
percentDone} -> Maybe Text
percentDone) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe Text
a -> RestoreJobsListMember
s {$sel:percentDone:RestoreJobsListMember' :: Maybe Text
percentDone = Maybe Text
a} :: RestoreJobsListMember)
restoreJobsListMember_accountId :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.Text)
restoreJobsListMember_accountId :: (Maybe Text -> f (Maybe Text))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_accountId = (RestoreJobsListMember -> Maybe Text)
-> (RestoreJobsListMember -> Maybe Text -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe Text
accountId :: Maybe Text
$sel:accountId:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe Text
accountId} -> Maybe Text
accountId) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe Text
a -> RestoreJobsListMember
s {$sel:accountId:RestoreJobsListMember' :: Maybe Text
accountId = Maybe Text
a} :: RestoreJobsListMember)
restoreJobsListMember_createdResourceArn :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.Text)
restoreJobsListMember_createdResourceArn :: (Maybe Text -> f (Maybe Text))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_createdResourceArn = (RestoreJobsListMember -> Maybe Text)
-> (RestoreJobsListMember -> Maybe Text -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe Text
createdResourceArn :: Maybe Text
$sel:createdResourceArn:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe Text
createdResourceArn} -> Maybe Text
createdResourceArn) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe Text
a -> RestoreJobsListMember
s {$sel:createdResourceArn:RestoreJobsListMember' :: Maybe Text
createdResourceArn = Maybe Text
a} :: RestoreJobsListMember)
restoreJobsListMember_statusMessage :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.Text)
restoreJobsListMember_statusMessage :: (Maybe Text -> f (Maybe Text))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_statusMessage = (RestoreJobsListMember -> Maybe Text)
-> (RestoreJobsListMember -> Maybe Text -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe Text
a -> RestoreJobsListMember
s {$sel:statusMessage:RestoreJobsListMember' :: Maybe Text
statusMessage = Maybe Text
a} :: RestoreJobsListMember)
restoreJobsListMember_recoveryPointArn :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.Text)
restoreJobsListMember_recoveryPointArn :: (Maybe Text -> f (Maybe Text))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_recoveryPointArn = (RestoreJobsListMember -> Maybe Text)
-> (RestoreJobsListMember -> Maybe Text -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe Text
recoveryPointArn :: Maybe Text
$sel:recoveryPointArn:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe Text
recoveryPointArn} -> Maybe Text
recoveryPointArn) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe Text
a -> RestoreJobsListMember
s {$sel:recoveryPointArn:RestoreJobsListMember' :: Maybe Text
recoveryPointArn = Maybe Text
a} :: RestoreJobsListMember)
restoreJobsListMember_backupSizeInBytes :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.Integer)
restoreJobsListMember_backupSizeInBytes :: (Maybe Integer -> f (Maybe Integer))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_backupSizeInBytes = (RestoreJobsListMember -> Maybe Integer)
-> (RestoreJobsListMember
-> Maybe Integer -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe Integer
backupSizeInBytes :: Maybe Integer
$sel:backupSizeInBytes:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe Integer
backupSizeInBytes} -> Maybe Integer
backupSizeInBytes) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe Integer
a -> RestoreJobsListMember
s {$sel:backupSizeInBytes:RestoreJobsListMember' :: Maybe Integer
backupSizeInBytes = Maybe Integer
a} :: RestoreJobsListMember)
restoreJobsListMember_creationDate :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.UTCTime)
restoreJobsListMember_creationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_creationDate = (RestoreJobsListMember -> Maybe POSIX)
-> (RestoreJobsListMember -> Maybe POSIX -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe POSIX
a -> RestoreJobsListMember
s {$sel:creationDate:RestoreJobsListMember' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: RestoreJobsListMember) ((Maybe POSIX -> f (Maybe POSIX))
-> RestoreJobsListMember -> f RestoreJobsListMember)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> RestoreJobsListMember
-> f RestoreJobsListMember
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
restoreJobsListMember_completionDate :: Lens.Lens' RestoreJobsListMember (Prelude.Maybe Prelude.UTCTime)
restoreJobsListMember_completionDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> RestoreJobsListMember -> f RestoreJobsListMember
restoreJobsListMember_completionDate = (RestoreJobsListMember -> Maybe POSIX)
-> (RestoreJobsListMember -> Maybe POSIX -> RestoreJobsListMember)
-> Lens
RestoreJobsListMember
RestoreJobsListMember
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreJobsListMember' {Maybe POSIX
completionDate :: Maybe POSIX
$sel:completionDate:RestoreJobsListMember' :: RestoreJobsListMember -> Maybe POSIX
completionDate} -> Maybe POSIX
completionDate) (\s :: RestoreJobsListMember
s@RestoreJobsListMember' {} Maybe POSIX
a -> RestoreJobsListMember
s {$sel:completionDate:RestoreJobsListMember' :: Maybe POSIX
completionDate = Maybe POSIX
a} :: RestoreJobsListMember) ((Maybe POSIX -> f (Maybe POSIX))
-> RestoreJobsListMember -> f RestoreJobsListMember)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> RestoreJobsListMember
-> f RestoreJobsListMember
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 RestoreJobsListMember where
parseJSON :: Value -> Parser RestoreJobsListMember
parseJSON =
String
-> (Object -> Parser RestoreJobsListMember)
-> Value
-> Parser RestoreJobsListMember
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"RestoreJobsListMember"
( \Object
x ->
Maybe RestoreJobStatus
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember
RestoreJobsListMember'
(Maybe RestoreJobStatus
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
-> Parser (Maybe RestoreJobStatus)
-> Parser
(Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe RestoreJobStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
-> Parser (Maybe Text)
-> Parser
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
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
"IamRoleArn")
Parser
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
-> Parser (Maybe Integer)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ExpectedCompletionTimeMinutes")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
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
"RestoreJobId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
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
"ResourceType")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
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
"PercentDone")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
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
"AccountId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
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
"CreatedResourceArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
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
"StatusMessage")
Parser
(Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe POSIX
-> RestoreJobsListMember)
-> Parser (Maybe Text)
-> Parser
(Maybe Integer
-> Maybe POSIX -> Maybe POSIX -> RestoreJobsListMember)
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
"RecoveryPointArn")
Parser
(Maybe Integer
-> Maybe POSIX -> Maybe POSIX -> RestoreJobsListMember)
-> Parser (Maybe Integer)
-> Parser (Maybe POSIX -> Maybe POSIX -> RestoreJobsListMember)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BackupSizeInBytes")
Parser (Maybe POSIX -> Maybe POSIX -> RestoreJobsListMember)
-> Parser (Maybe POSIX)
-> Parser (Maybe POSIX -> RestoreJobsListMember)
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
"CreationDate")
Parser (Maybe POSIX -> RestoreJobsListMember)
-> Parser (Maybe POSIX) -> Parser RestoreJobsListMember
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
"CompletionDate")
)
instance Prelude.Hashable RestoreJobsListMember
instance Prelude.NFData RestoreJobsListMember