{-# 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.CopyJob where
import Amazonka.Backup.Types.CopyJobState
import Amazonka.Backup.Types.RecoveryPointCreator
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 CopyJob = CopyJob'
{
CopyJob -> Maybe Text
accountId :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe Integer
backupSizeInBytes :: Prelude.Maybe Prelude.Integer,
CopyJob -> Maybe (HashMap CopyJobState Integer)
childJobsInState :: Prelude.Maybe (Prelude.HashMap CopyJobState Prelude.Integer),
CopyJob -> Maybe POSIX
completionDate :: Prelude.Maybe Data.POSIX,
CopyJob -> Maybe Text
compositeMemberIdentifier :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe Text
copyJobId :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe RecoveryPointCreator
createdBy :: Prelude.Maybe RecoveryPointCreator,
CopyJob -> Maybe POSIX
creationDate :: Prelude.Maybe Data.POSIX,
CopyJob -> Maybe Text
destinationBackupVaultArn :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe Text
destinationRecoveryPointArn :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe Text
iamRoleArn :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe Bool
isParent :: Prelude.Maybe Prelude.Bool,
CopyJob -> Maybe Integer
numberOfChildJobs :: Prelude.Maybe Prelude.Integer,
CopyJob -> Maybe Text
parentJobId :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe Text
resourceArn :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe Text
resourceType :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe Text
sourceBackupVaultArn :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe Text
sourceRecoveryPointArn :: Prelude.Maybe Prelude.Text,
CopyJob -> Maybe CopyJobState
state :: Prelude.Maybe CopyJobState,
CopyJob -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text
}
deriving (CopyJob -> CopyJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CopyJob -> CopyJob -> Bool
$c/= :: CopyJob -> CopyJob -> Bool
== :: CopyJob -> CopyJob -> Bool
$c== :: CopyJob -> CopyJob -> Bool
Prelude.Eq, ReadPrec [CopyJob]
ReadPrec CopyJob
Int -> ReadS CopyJob
ReadS [CopyJob]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CopyJob]
$creadListPrec :: ReadPrec [CopyJob]
readPrec :: ReadPrec CopyJob
$creadPrec :: ReadPrec CopyJob
readList :: ReadS [CopyJob]
$creadList :: ReadS [CopyJob]
readsPrec :: Int -> ReadS CopyJob
$creadsPrec :: Int -> ReadS CopyJob
Prelude.Read, Int -> CopyJob -> ShowS
[CopyJob] -> ShowS
CopyJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CopyJob] -> ShowS
$cshowList :: [CopyJob] -> ShowS
show :: CopyJob -> String
$cshow :: CopyJob -> String
showsPrec :: Int -> CopyJob -> ShowS
$cshowsPrec :: Int -> CopyJob -> ShowS
Prelude.Show, forall x. Rep CopyJob x -> CopyJob
forall x. CopyJob -> Rep CopyJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CopyJob x -> CopyJob
$cfrom :: forall x. CopyJob -> Rep CopyJob x
Prelude.Generic)
newCopyJob ::
CopyJob
newCopyJob :: CopyJob
newCopyJob =
CopyJob'
{ $sel:accountId:CopyJob' :: Maybe Text
accountId = forall a. Maybe a
Prelude.Nothing,
$sel:backupSizeInBytes:CopyJob' :: Maybe Integer
backupSizeInBytes = forall a. Maybe a
Prelude.Nothing,
$sel:childJobsInState:CopyJob' :: Maybe (HashMap CopyJobState Integer)
childJobsInState = forall a. Maybe a
Prelude.Nothing,
$sel:completionDate:CopyJob' :: Maybe POSIX
completionDate = forall a. Maybe a
Prelude.Nothing,
$sel:compositeMemberIdentifier:CopyJob' :: Maybe Text
compositeMemberIdentifier = forall a. Maybe a
Prelude.Nothing,
$sel:copyJobId:CopyJob' :: Maybe Text
copyJobId = forall a. Maybe a
Prelude.Nothing,
$sel:createdBy:CopyJob' :: Maybe RecoveryPointCreator
createdBy = forall a. Maybe a
Prelude.Nothing,
$sel:creationDate:CopyJob' :: Maybe POSIX
creationDate = forall a. Maybe a
Prelude.Nothing,
$sel:destinationBackupVaultArn:CopyJob' :: Maybe Text
destinationBackupVaultArn = forall a. Maybe a
Prelude.Nothing,
$sel:destinationRecoveryPointArn:CopyJob' :: Maybe Text
destinationRecoveryPointArn = forall a. Maybe a
Prelude.Nothing,
$sel:iamRoleArn:CopyJob' :: Maybe Text
iamRoleArn = forall a. Maybe a
Prelude.Nothing,
$sel:isParent:CopyJob' :: Maybe Bool
isParent = forall a. Maybe a
Prelude.Nothing,
$sel:numberOfChildJobs:CopyJob' :: Maybe Integer
numberOfChildJobs = forall a. Maybe a
Prelude.Nothing,
$sel:parentJobId:CopyJob' :: Maybe Text
parentJobId = forall a. Maybe a
Prelude.Nothing,
$sel:resourceArn:CopyJob' :: Maybe Text
resourceArn = forall a. Maybe a
Prelude.Nothing,
$sel:resourceType:CopyJob' :: Maybe Text
resourceType = forall a. Maybe a
Prelude.Nothing,
$sel:sourceBackupVaultArn:CopyJob' :: Maybe Text
sourceBackupVaultArn = forall a. Maybe a
Prelude.Nothing,
$sel:sourceRecoveryPointArn:CopyJob' :: Maybe Text
sourceRecoveryPointArn = forall a. Maybe a
Prelude.Nothing,
$sel:state:CopyJob' :: Maybe CopyJobState
state = forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:CopyJob' :: Maybe Text
statusMessage = forall a. Maybe a
Prelude.Nothing
}
copyJob_accountId :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_accountId :: Lens' CopyJob (Maybe Text)
copyJob_accountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
accountId :: Maybe Text
$sel:accountId:CopyJob' :: CopyJob -> Maybe Text
accountId} -> Maybe Text
accountId) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:accountId:CopyJob' :: Maybe Text
accountId = Maybe Text
a} :: CopyJob)
copyJob_backupSizeInBytes :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Integer)
copyJob_backupSizeInBytes :: Lens' CopyJob (Maybe Integer)
copyJob_backupSizeInBytes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Integer
backupSizeInBytes :: Maybe Integer
$sel:backupSizeInBytes:CopyJob' :: CopyJob -> Maybe Integer
backupSizeInBytes} -> Maybe Integer
backupSizeInBytes) (\s :: CopyJob
s@CopyJob' {} Maybe Integer
a -> CopyJob
s {$sel:backupSizeInBytes:CopyJob' :: Maybe Integer
backupSizeInBytes = Maybe Integer
a} :: CopyJob)
copyJob_childJobsInState :: Lens.Lens' CopyJob (Prelude.Maybe (Prelude.HashMap CopyJobState Prelude.Integer))
copyJob_childJobsInState :: Lens' CopyJob (Maybe (HashMap CopyJobState Integer))
copyJob_childJobsInState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe (HashMap CopyJobState Integer)
childJobsInState :: Maybe (HashMap CopyJobState Integer)
$sel:childJobsInState:CopyJob' :: CopyJob -> Maybe (HashMap CopyJobState Integer)
childJobsInState} -> Maybe (HashMap CopyJobState Integer)
childJobsInState) (\s :: CopyJob
s@CopyJob' {} Maybe (HashMap CopyJobState Integer)
a -> CopyJob
s {$sel:childJobsInState:CopyJob' :: Maybe (HashMap CopyJobState Integer)
childJobsInState = Maybe (HashMap CopyJobState Integer)
a} :: CopyJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
copyJob_completionDate :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.UTCTime)
copyJob_completionDate :: Lens' CopyJob (Maybe UTCTime)
copyJob_completionDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe POSIX
completionDate :: Maybe POSIX
$sel:completionDate:CopyJob' :: CopyJob -> Maybe POSIX
completionDate} -> Maybe POSIX
completionDate) (\s :: CopyJob
s@CopyJob' {} Maybe POSIX
a -> CopyJob
s {$sel:completionDate:CopyJob' :: Maybe POSIX
completionDate = Maybe POSIX
a} :: CopyJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
copyJob_compositeMemberIdentifier :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_compositeMemberIdentifier :: Lens' CopyJob (Maybe Text)
copyJob_compositeMemberIdentifier = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
compositeMemberIdentifier :: Maybe Text
$sel:compositeMemberIdentifier:CopyJob' :: CopyJob -> Maybe Text
compositeMemberIdentifier} -> Maybe Text
compositeMemberIdentifier) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:compositeMemberIdentifier:CopyJob' :: Maybe Text
compositeMemberIdentifier = Maybe Text
a} :: CopyJob)
copyJob_copyJobId :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_copyJobId :: Lens' CopyJob (Maybe Text)
copyJob_copyJobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
copyJobId :: Maybe Text
$sel:copyJobId:CopyJob' :: CopyJob -> Maybe Text
copyJobId} -> Maybe Text
copyJobId) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:copyJobId:CopyJob' :: Maybe Text
copyJobId = Maybe Text
a} :: CopyJob)
copyJob_createdBy :: Lens.Lens' CopyJob (Prelude.Maybe RecoveryPointCreator)
copyJob_createdBy :: Lens' CopyJob (Maybe RecoveryPointCreator)
copyJob_createdBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe RecoveryPointCreator
createdBy :: Maybe RecoveryPointCreator
$sel:createdBy:CopyJob' :: CopyJob -> Maybe RecoveryPointCreator
createdBy} -> Maybe RecoveryPointCreator
createdBy) (\s :: CopyJob
s@CopyJob' {} Maybe RecoveryPointCreator
a -> CopyJob
s {$sel:createdBy:CopyJob' :: Maybe RecoveryPointCreator
createdBy = Maybe RecoveryPointCreator
a} :: CopyJob)
copyJob_creationDate :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.UTCTime)
copyJob_creationDate :: Lens' CopyJob (Maybe UTCTime)
copyJob_creationDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:CopyJob' :: CopyJob -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: CopyJob
s@CopyJob' {} Maybe POSIX
a -> CopyJob
s {$sel:creationDate:CopyJob' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: CopyJob) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
copyJob_destinationBackupVaultArn :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_destinationBackupVaultArn :: Lens' CopyJob (Maybe Text)
copyJob_destinationBackupVaultArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
destinationBackupVaultArn :: Maybe Text
$sel:destinationBackupVaultArn:CopyJob' :: CopyJob -> Maybe Text
destinationBackupVaultArn} -> Maybe Text
destinationBackupVaultArn) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:destinationBackupVaultArn:CopyJob' :: Maybe Text
destinationBackupVaultArn = Maybe Text
a} :: CopyJob)
copyJob_destinationRecoveryPointArn :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_destinationRecoveryPointArn :: Lens' CopyJob (Maybe Text)
copyJob_destinationRecoveryPointArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
destinationRecoveryPointArn :: Maybe Text
$sel:destinationRecoveryPointArn:CopyJob' :: CopyJob -> Maybe Text
destinationRecoveryPointArn} -> Maybe Text
destinationRecoveryPointArn) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:destinationRecoveryPointArn:CopyJob' :: Maybe Text
destinationRecoveryPointArn = Maybe Text
a} :: CopyJob)
copyJob_iamRoleArn :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_iamRoleArn :: Lens' CopyJob (Maybe Text)
copyJob_iamRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
iamRoleArn :: Maybe Text
$sel:iamRoleArn:CopyJob' :: CopyJob -> Maybe Text
iamRoleArn} -> Maybe Text
iamRoleArn) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:iamRoleArn:CopyJob' :: Maybe Text
iamRoleArn = Maybe Text
a} :: CopyJob)
copyJob_isParent :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Bool)
copyJob_isParent :: Lens' CopyJob (Maybe Bool)
copyJob_isParent = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Bool
isParent :: Maybe Bool
$sel:isParent:CopyJob' :: CopyJob -> Maybe Bool
isParent} -> Maybe Bool
isParent) (\s :: CopyJob
s@CopyJob' {} Maybe Bool
a -> CopyJob
s {$sel:isParent:CopyJob' :: Maybe Bool
isParent = Maybe Bool
a} :: CopyJob)
copyJob_numberOfChildJobs :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Integer)
copyJob_numberOfChildJobs :: Lens' CopyJob (Maybe Integer)
copyJob_numberOfChildJobs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Integer
numberOfChildJobs :: Maybe Integer
$sel:numberOfChildJobs:CopyJob' :: CopyJob -> Maybe Integer
numberOfChildJobs} -> Maybe Integer
numberOfChildJobs) (\s :: CopyJob
s@CopyJob' {} Maybe Integer
a -> CopyJob
s {$sel:numberOfChildJobs:CopyJob' :: Maybe Integer
numberOfChildJobs = Maybe Integer
a} :: CopyJob)
copyJob_parentJobId :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_parentJobId :: Lens' CopyJob (Maybe Text)
copyJob_parentJobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
parentJobId :: Maybe Text
$sel:parentJobId:CopyJob' :: CopyJob -> Maybe Text
parentJobId} -> Maybe Text
parentJobId) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:parentJobId:CopyJob' :: Maybe Text
parentJobId = Maybe Text
a} :: CopyJob)
copyJob_resourceArn :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_resourceArn :: Lens' CopyJob (Maybe Text)
copyJob_resourceArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
resourceArn :: Maybe Text
$sel:resourceArn:CopyJob' :: CopyJob -> Maybe Text
resourceArn} -> Maybe Text
resourceArn) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:resourceArn:CopyJob' :: Maybe Text
resourceArn = Maybe Text
a} :: CopyJob)
copyJob_resourceType :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_resourceType :: Lens' CopyJob (Maybe Text)
copyJob_resourceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
resourceType :: Maybe Text
$sel:resourceType:CopyJob' :: CopyJob -> Maybe Text
resourceType} -> Maybe Text
resourceType) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:resourceType:CopyJob' :: Maybe Text
resourceType = Maybe Text
a} :: CopyJob)
copyJob_sourceBackupVaultArn :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_sourceBackupVaultArn :: Lens' CopyJob (Maybe Text)
copyJob_sourceBackupVaultArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
sourceBackupVaultArn :: Maybe Text
$sel:sourceBackupVaultArn:CopyJob' :: CopyJob -> Maybe Text
sourceBackupVaultArn} -> Maybe Text
sourceBackupVaultArn) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:sourceBackupVaultArn:CopyJob' :: Maybe Text
sourceBackupVaultArn = Maybe Text
a} :: CopyJob)
copyJob_sourceRecoveryPointArn :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_sourceRecoveryPointArn :: Lens' CopyJob (Maybe Text)
copyJob_sourceRecoveryPointArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
sourceRecoveryPointArn :: Maybe Text
$sel:sourceRecoveryPointArn:CopyJob' :: CopyJob -> Maybe Text
sourceRecoveryPointArn} -> Maybe Text
sourceRecoveryPointArn) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:sourceRecoveryPointArn:CopyJob' :: Maybe Text
sourceRecoveryPointArn = Maybe Text
a} :: CopyJob)
copyJob_state :: Lens.Lens' CopyJob (Prelude.Maybe CopyJobState)
copyJob_state :: Lens' CopyJob (Maybe CopyJobState)
copyJob_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe CopyJobState
state :: Maybe CopyJobState
$sel:state:CopyJob' :: CopyJob -> Maybe CopyJobState
state} -> Maybe CopyJobState
state) (\s :: CopyJob
s@CopyJob' {} Maybe CopyJobState
a -> CopyJob
s {$sel:state:CopyJob' :: Maybe CopyJobState
state = Maybe CopyJobState
a} :: CopyJob)
copyJob_statusMessage :: Lens.Lens' CopyJob (Prelude.Maybe Prelude.Text)
copyJob_statusMessage :: Lens' CopyJob (Maybe Text)
copyJob_statusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyJob' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:CopyJob' :: CopyJob -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: CopyJob
s@CopyJob' {} Maybe Text
a -> CopyJob
s {$sel:statusMessage:CopyJob' :: Maybe Text
statusMessage = Maybe Text
a} :: CopyJob)
instance Data.FromJSON CopyJob where
parseJSON :: Value -> Parser CopyJob
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"CopyJob"
( \Object
x ->
Maybe Text
-> Maybe Integer
-> Maybe (HashMap CopyJobState Integer)
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe RecoveryPointCreator
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CopyJobState
-> Maybe Text
-> CopyJob
CopyJob'
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
"AccountId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"BackupSizeInBytes")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ChildJobsInState"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CompletionDate")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CompositeMemberIdentifier")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CopyJobId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreatedBy")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreationDate")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DestinationBackupVaultArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DestinationRecoveryPointArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"IamRoleArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"IsParent")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"NumberOfChildJobs")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ParentJobId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResourceArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResourceType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SourceBackupVaultArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SourceRecoveryPointArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"State")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StatusMessage")
)
instance Prelude.Hashable CopyJob where
hashWithSalt :: Int -> CopyJob -> Int
hashWithSalt Int
_salt CopyJob' {Maybe Bool
Maybe Integer
Maybe Text
Maybe (HashMap CopyJobState Integer)
Maybe POSIX
Maybe CopyJobState
Maybe RecoveryPointCreator
statusMessage :: Maybe Text
state :: Maybe CopyJobState
sourceRecoveryPointArn :: Maybe Text
sourceBackupVaultArn :: Maybe Text
resourceType :: Maybe Text
resourceArn :: Maybe Text
parentJobId :: Maybe Text
numberOfChildJobs :: Maybe Integer
isParent :: Maybe Bool
iamRoleArn :: Maybe Text
destinationRecoveryPointArn :: Maybe Text
destinationBackupVaultArn :: Maybe Text
creationDate :: Maybe POSIX
createdBy :: Maybe RecoveryPointCreator
copyJobId :: Maybe Text
compositeMemberIdentifier :: Maybe Text
completionDate :: Maybe POSIX
childJobsInState :: Maybe (HashMap CopyJobState Integer)
backupSizeInBytes :: Maybe Integer
accountId :: Maybe Text
$sel:statusMessage:CopyJob' :: CopyJob -> Maybe Text
$sel:state:CopyJob' :: CopyJob -> Maybe CopyJobState
$sel:sourceRecoveryPointArn:CopyJob' :: CopyJob -> Maybe Text
$sel:sourceBackupVaultArn:CopyJob' :: CopyJob -> Maybe Text
$sel:resourceType:CopyJob' :: CopyJob -> Maybe Text
$sel:resourceArn:CopyJob' :: CopyJob -> Maybe Text
$sel:parentJobId:CopyJob' :: CopyJob -> Maybe Text
$sel:numberOfChildJobs:CopyJob' :: CopyJob -> Maybe Integer
$sel:isParent:CopyJob' :: CopyJob -> Maybe Bool
$sel:iamRoleArn:CopyJob' :: CopyJob -> Maybe Text
$sel:destinationRecoveryPointArn:CopyJob' :: CopyJob -> Maybe Text
$sel:destinationBackupVaultArn:CopyJob' :: CopyJob -> Maybe Text
$sel:creationDate:CopyJob' :: CopyJob -> Maybe POSIX
$sel:createdBy:CopyJob' :: CopyJob -> Maybe RecoveryPointCreator
$sel:copyJobId:CopyJob' :: CopyJob -> Maybe Text
$sel:compositeMemberIdentifier:CopyJob' :: CopyJob -> Maybe Text
$sel:completionDate:CopyJob' :: CopyJob -> Maybe POSIX
$sel:childJobsInState:CopyJob' :: CopyJob -> Maybe (HashMap CopyJobState Integer)
$sel:backupSizeInBytes:CopyJob' :: CopyJob -> Maybe Integer
$sel:accountId:CopyJob' :: CopyJob -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
accountId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
backupSizeInBytes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap CopyJobState Integer)
childJobsInState
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
completionDate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
compositeMemberIdentifier
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
copyJobId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RecoveryPointCreator
createdBy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationDate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
destinationBackupVaultArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
destinationRecoveryPointArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
iamRoleArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
isParent
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
numberOfChildJobs
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
parentJobId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourceBackupVaultArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourceRecoveryPointArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CopyJobState
state
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
statusMessage
instance Prelude.NFData CopyJob where
rnf :: CopyJob -> ()
rnf CopyJob' {Maybe Bool
Maybe Integer
Maybe Text
Maybe (HashMap CopyJobState Integer)
Maybe POSIX
Maybe CopyJobState
Maybe RecoveryPointCreator
statusMessage :: Maybe Text
state :: Maybe CopyJobState
sourceRecoveryPointArn :: Maybe Text
sourceBackupVaultArn :: Maybe Text
resourceType :: Maybe Text
resourceArn :: Maybe Text
parentJobId :: Maybe Text
numberOfChildJobs :: Maybe Integer
isParent :: Maybe Bool
iamRoleArn :: Maybe Text
destinationRecoveryPointArn :: Maybe Text
destinationBackupVaultArn :: Maybe Text
creationDate :: Maybe POSIX
createdBy :: Maybe RecoveryPointCreator
copyJobId :: Maybe Text
compositeMemberIdentifier :: Maybe Text
completionDate :: Maybe POSIX
childJobsInState :: Maybe (HashMap CopyJobState Integer)
backupSizeInBytes :: Maybe Integer
accountId :: Maybe Text
$sel:statusMessage:CopyJob' :: CopyJob -> Maybe Text
$sel:state:CopyJob' :: CopyJob -> Maybe CopyJobState
$sel:sourceRecoveryPointArn:CopyJob' :: CopyJob -> Maybe Text
$sel:sourceBackupVaultArn:CopyJob' :: CopyJob -> Maybe Text
$sel:resourceType:CopyJob' :: CopyJob -> Maybe Text
$sel:resourceArn:CopyJob' :: CopyJob -> Maybe Text
$sel:parentJobId:CopyJob' :: CopyJob -> Maybe Text
$sel:numberOfChildJobs:CopyJob' :: CopyJob -> Maybe Integer
$sel:isParent:CopyJob' :: CopyJob -> Maybe Bool
$sel:iamRoleArn:CopyJob' :: CopyJob -> Maybe Text
$sel:destinationRecoveryPointArn:CopyJob' :: CopyJob -> Maybe Text
$sel:destinationBackupVaultArn:CopyJob' :: CopyJob -> Maybe Text
$sel:creationDate:CopyJob' :: CopyJob -> Maybe POSIX
$sel:createdBy:CopyJob' :: CopyJob -> Maybe RecoveryPointCreator
$sel:copyJobId:CopyJob' :: CopyJob -> Maybe Text
$sel:compositeMemberIdentifier:CopyJob' :: CopyJob -> Maybe Text
$sel:completionDate:CopyJob' :: CopyJob -> Maybe POSIX
$sel:childJobsInState:CopyJob' :: CopyJob -> Maybe (HashMap CopyJobState Integer)
$sel:backupSizeInBytes:CopyJob' :: CopyJob -> Maybe Integer
$sel:accountId:CopyJob' :: CopyJob -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
accountId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
backupSizeInBytes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap CopyJobState Integer)
childJobsInState
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
completionDate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
compositeMemberIdentifier
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
copyJobId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RecoveryPointCreator
createdBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
destinationBackupVaultArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
destinationRecoveryPointArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
iamRoleArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isParent
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
numberOfChildJobs
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
parentJobId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceBackupVaultArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceRecoveryPointArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CopyJobState
state
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusMessage