{-# 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.FSx.Types.Backup where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FSx.Types.ActiveDirectoryBackupAttributes
import Amazonka.FSx.Types.BackupFailureDetails
import Amazonka.FSx.Types.BackupLifecycle
import Amazonka.FSx.Types.BackupType
import Amazonka.FSx.Types.FileSystem
import Amazonka.FSx.Types.ResourceType
import Amazonka.FSx.Types.Tag
import Amazonka.FSx.Types.Volume
import qualified Amazonka.Prelude as Prelude
data Backup = Backup'
{
Backup -> Maybe ActiveDirectoryBackupAttributes
directoryInformation :: Prelude.Maybe ActiveDirectoryBackupAttributes,
Backup -> Maybe BackupFailureDetails
failureDetails :: Prelude.Maybe BackupFailureDetails,
Backup -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
Backup -> Maybe Text
ownerId :: Prelude.Maybe Prelude.Text,
Backup -> Maybe Natural
progressPercent :: Prelude.Maybe Prelude.Natural,
Backup -> Maybe Text
resourceARN :: Prelude.Maybe Prelude.Text,
Backup -> Maybe ResourceType
resourceType :: Prelude.Maybe ResourceType,
Backup -> Maybe Text
sourceBackupId :: Prelude.Maybe Prelude.Text,
Backup -> Maybe Text
sourceBackupRegion :: Prelude.Maybe Prelude.Text,
Backup -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
Backup -> Maybe Volume
volume :: Prelude.Maybe Volume,
Backup -> Text
backupId :: Prelude.Text,
Backup -> BackupLifecycle
lifecycle :: BackupLifecycle,
Backup -> BackupType
type' :: BackupType,
Backup -> POSIX
creationTime :: Data.POSIX,
Backup -> FileSystem
fileSystem :: FileSystem
}
deriving (Backup -> Backup -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Backup -> Backup -> Bool
$c/= :: Backup -> Backup -> Bool
== :: Backup -> Backup -> Bool
$c== :: Backup -> Backup -> Bool
Prelude.Eq, ReadPrec [Backup]
ReadPrec Backup
Int -> ReadS Backup
ReadS [Backup]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Backup]
$creadListPrec :: ReadPrec [Backup]
readPrec :: ReadPrec Backup
$creadPrec :: ReadPrec Backup
readList :: ReadS [Backup]
$creadList :: ReadS [Backup]
readsPrec :: Int -> ReadS Backup
$creadsPrec :: Int -> ReadS Backup
Prelude.Read, Int -> Backup -> ShowS
[Backup] -> ShowS
Backup -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Backup] -> ShowS
$cshowList :: [Backup] -> ShowS
show :: Backup -> String
$cshow :: Backup -> String
showsPrec :: Int -> Backup -> ShowS
$cshowsPrec :: Int -> Backup -> ShowS
Prelude.Show, forall x. Rep Backup x -> Backup
forall x. Backup -> Rep Backup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Backup x -> Backup
$cfrom :: forall x. Backup -> Rep Backup x
Prelude.Generic)
newBackup ::
Prelude.Text ->
BackupLifecycle ->
BackupType ->
Prelude.UTCTime ->
FileSystem ->
Backup
newBackup :: Text
-> BackupLifecycle -> BackupType -> UTCTime -> FileSystem -> Backup
newBackup
Text
pBackupId_
BackupLifecycle
pLifecycle_
BackupType
pType_
UTCTime
pCreationTime_
FileSystem
pFileSystem_ =
Backup'
{ $sel:directoryInformation:Backup' :: Maybe ActiveDirectoryBackupAttributes
directoryInformation = forall a. Maybe a
Prelude.Nothing,
$sel:failureDetails:Backup' :: Maybe BackupFailureDetails
failureDetails = forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:Backup' :: Maybe Text
kmsKeyId = forall a. Maybe a
Prelude.Nothing,
$sel:ownerId:Backup' :: Maybe Text
ownerId = forall a. Maybe a
Prelude.Nothing,
$sel:progressPercent:Backup' :: Maybe Natural
progressPercent = forall a. Maybe a
Prelude.Nothing,
$sel:resourceARN:Backup' :: Maybe Text
resourceARN = forall a. Maybe a
Prelude.Nothing,
$sel:resourceType:Backup' :: Maybe ResourceType
resourceType = forall a. Maybe a
Prelude.Nothing,
$sel:sourceBackupId:Backup' :: Maybe Text
sourceBackupId = forall a. Maybe a
Prelude.Nothing,
$sel:sourceBackupRegion:Backup' :: Maybe Text
sourceBackupRegion = forall a. Maybe a
Prelude.Nothing,
$sel:tags:Backup' :: Maybe (NonEmpty Tag)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:volume:Backup' :: Maybe Volume
volume = forall a. Maybe a
Prelude.Nothing,
$sel:backupId:Backup' :: Text
backupId = Text
pBackupId_,
$sel:lifecycle:Backup' :: BackupLifecycle
lifecycle = BackupLifecycle
pLifecycle_,
$sel:type':Backup' :: BackupType
type' = BackupType
pType_,
$sel:creationTime:Backup' :: POSIX
creationTime = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
$sel:fileSystem:Backup' :: FileSystem
fileSystem = FileSystem
pFileSystem_
}
backup_directoryInformation :: Lens.Lens' Backup (Prelude.Maybe ActiveDirectoryBackupAttributes)
backup_directoryInformation :: Lens' Backup (Maybe ActiveDirectoryBackupAttributes)
backup_directoryInformation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe ActiveDirectoryBackupAttributes
directoryInformation :: Maybe ActiveDirectoryBackupAttributes
$sel:directoryInformation:Backup' :: Backup -> Maybe ActiveDirectoryBackupAttributes
directoryInformation} -> Maybe ActiveDirectoryBackupAttributes
directoryInformation) (\s :: Backup
s@Backup' {} Maybe ActiveDirectoryBackupAttributes
a -> Backup
s {$sel:directoryInformation:Backup' :: Maybe ActiveDirectoryBackupAttributes
directoryInformation = Maybe ActiveDirectoryBackupAttributes
a} :: Backup)
backup_failureDetails :: Lens.Lens' Backup (Prelude.Maybe BackupFailureDetails)
backup_failureDetails :: Lens' Backup (Maybe BackupFailureDetails)
backup_failureDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe BackupFailureDetails
failureDetails :: Maybe BackupFailureDetails
$sel:failureDetails:Backup' :: Backup -> Maybe BackupFailureDetails
failureDetails} -> Maybe BackupFailureDetails
failureDetails) (\s :: Backup
s@Backup' {} Maybe BackupFailureDetails
a -> Backup
s {$sel:failureDetails:Backup' :: Maybe BackupFailureDetails
failureDetails = Maybe BackupFailureDetails
a} :: Backup)
backup_kmsKeyId :: Lens.Lens' Backup (Prelude.Maybe Prelude.Text)
backup_kmsKeyId :: Lens' Backup (Maybe Text)
backup_kmsKeyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:Backup' :: Backup -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: Backup
s@Backup' {} Maybe Text
a -> Backup
s {$sel:kmsKeyId:Backup' :: Maybe Text
kmsKeyId = Maybe Text
a} :: Backup)
backup_ownerId :: Lens.Lens' Backup (Prelude.Maybe Prelude.Text)
backup_ownerId :: Lens' Backup (Maybe Text)
backup_ownerId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe Text
ownerId :: Maybe Text
$sel:ownerId:Backup' :: Backup -> Maybe Text
ownerId} -> Maybe Text
ownerId) (\s :: Backup
s@Backup' {} Maybe Text
a -> Backup
s {$sel:ownerId:Backup' :: Maybe Text
ownerId = Maybe Text
a} :: Backup)
backup_progressPercent :: Lens.Lens' Backup (Prelude.Maybe Prelude.Natural)
backup_progressPercent :: Lens' Backup (Maybe Natural)
backup_progressPercent = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe Natural
progressPercent :: Maybe Natural
$sel:progressPercent:Backup' :: Backup -> Maybe Natural
progressPercent} -> Maybe Natural
progressPercent) (\s :: Backup
s@Backup' {} Maybe Natural
a -> Backup
s {$sel:progressPercent:Backup' :: Maybe Natural
progressPercent = Maybe Natural
a} :: Backup)
backup_resourceARN :: Lens.Lens' Backup (Prelude.Maybe Prelude.Text)
backup_resourceARN :: Lens' Backup (Maybe Text)
backup_resourceARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe Text
resourceARN :: Maybe Text
$sel:resourceARN:Backup' :: Backup -> Maybe Text
resourceARN} -> Maybe Text
resourceARN) (\s :: Backup
s@Backup' {} Maybe Text
a -> Backup
s {$sel:resourceARN:Backup' :: Maybe Text
resourceARN = Maybe Text
a} :: Backup)
backup_resourceType :: Lens.Lens' Backup (Prelude.Maybe ResourceType)
backup_resourceType :: Lens' Backup (Maybe ResourceType)
backup_resourceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe ResourceType
resourceType :: Maybe ResourceType
$sel:resourceType:Backup' :: Backup -> Maybe ResourceType
resourceType} -> Maybe ResourceType
resourceType) (\s :: Backup
s@Backup' {} Maybe ResourceType
a -> Backup
s {$sel:resourceType:Backup' :: Maybe ResourceType
resourceType = Maybe ResourceType
a} :: Backup)
backup_sourceBackupId :: Lens.Lens' Backup (Prelude.Maybe Prelude.Text)
backup_sourceBackupId :: Lens' Backup (Maybe Text)
backup_sourceBackupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe Text
sourceBackupId :: Maybe Text
$sel:sourceBackupId:Backup' :: Backup -> Maybe Text
sourceBackupId} -> Maybe Text
sourceBackupId) (\s :: Backup
s@Backup' {} Maybe Text
a -> Backup
s {$sel:sourceBackupId:Backup' :: Maybe Text
sourceBackupId = Maybe Text
a} :: Backup)
backup_sourceBackupRegion :: Lens.Lens' Backup (Prelude.Maybe Prelude.Text)
backup_sourceBackupRegion :: Lens' Backup (Maybe Text)
backup_sourceBackupRegion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe Text
sourceBackupRegion :: Maybe Text
$sel:sourceBackupRegion:Backup' :: Backup -> Maybe Text
sourceBackupRegion} -> Maybe Text
sourceBackupRegion) (\s :: Backup
s@Backup' {} Maybe Text
a -> Backup
s {$sel:sourceBackupRegion:Backup' :: Maybe Text
sourceBackupRegion = Maybe Text
a} :: Backup)
backup_tags :: Lens.Lens' Backup (Prelude.Maybe (Prelude.NonEmpty Tag))
backup_tags :: Lens' Backup (Maybe (NonEmpty Tag))
backup_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:Backup' :: Backup -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: Backup
s@Backup' {} Maybe (NonEmpty Tag)
a -> Backup
s {$sel:tags:Backup' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: Backup) 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
backup_volume :: Lens.Lens' Backup (Prelude.Maybe Volume)
backup_volume :: Lens' Backup (Maybe Volume)
backup_volume = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Maybe Volume
volume :: Maybe Volume
$sel:volume:Backup' :: Backup -> Maybe Volume
volume} -> Maybe Volume
volume) (\s :: Backup
s@Backup' {} Maybe Volume
a -> Backup
s {$sel:volume:Backup' :: Maybe Volume
volume = Maybe Volume
a} :: Backup)
backup_backupId :: Lens.Lens' Backup Prelude.Text
backup_backupId :: Lens' Backup Text
backup_backupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {Text
backupId :: Text
$sel:backupId:Backup' :: Backup -> Text
backupId} -> Text
backupId) (\s :: Backup
s@Backup' {} Text
a -> Backup
s {$sel:backupId:Backup' :: Text
backupId = Text
a} :: Backup)
backup_lifecycle :: Lens.Lens' Backup BackupLifecycle
backup_lifecycle :: Lens' Backup BackupLifecycle
backup_lifecycle = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {BackupLifecycle
lifecycle :: BackupLifecycle
$sel:lifecycle:Backup' :: Backup -> BackupLifecycle
lifecycle} -> BackupLifecycle
lifecycle) (\s :: Backup
s@Backup' {} BackupLifecycle
a -> Backup
s {$sel:lifecycle:Backup' :: BackupLifecycle
lifecycle = BackupLifecycle
a} :: Backup)
backup_type :: Lens.Lens' Backup BackupType
backup_type :: Lens' Backup BackupType
backup_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {BackupType
type' :: BackupType
$sel:type':Backup' :: Backup -> BackupType
type'} -> BackupType
type') (\s :: Backup
s@Backup' {} BackupType
a -> Backup
s {$sel:type':Backup' :: BackupType
type' = BackupType
a} :: Backup)
backup_creationTime :: Lens.Lens' Backup Prelude.UTCTime
backup_creationTime :: Lens' Backup UTCTime
backup_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {POSIX
creationTime :: POSIX
$sel:creationTime:Backup' :: Backup -> POSIX
creationTime} -> POSIX
creationTime) (\s :: Backup
s@Backup' {} POSIX
a -> Backup
s {$sel:creationTime:Backup' :: POSIX
creationTime = POSIX
a} :: Backup) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
backup_fileSystem :: Lens.Lens' Backup FileSystem
backup_fileSystem :: Lens' Backup FileSystem
backup_fileSystem = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Backup' {FileSystem
fileSystem :: FileSystem
$sel:fileSystem:Backup' :: Backup -> FileSystem
fileSystem} -> FileSystem
fileSystem) (\s :: Backup
s@Backup' {} FileSystem
a -> Backup
s {$sel:fileSystem:Backup' :: FileSystem
fileSystem = FileSystem
a} :: Backup)
instance Data.FromJSON Backup where
parseJSON :: Value -> Parser Backup
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"Backup"
( \Object
x ->
Maybe ActiveDirectoryBackupAttributes
-> Maybe BackupFailureDetails
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe ResourceType
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Tag)
-> Maybe Volume
-> Text
-> BackupLifecycle
-> BackupType
-> POSIX
-> FileSystem
-> Backup
Backup'
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
"DirectoryInformation")
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
"FailureDetails")
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
"KmsKeyId")
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
"OwnerId")
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
"ProgressPercent")
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
"SourceBackupId")
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
"SourceBackupRegion")
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
"Tags")
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
"Volume")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"BackupId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Lifecycle")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Type")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CreationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"FileSystem")
)
instance Prelude.Hashable Backup where
hashWithSalt :: Int -> Backup -> Int
hashWithSalt Int
_salt Backup' {Maybe Natural
Maybe (NonEmpty Tag)
Maybe Text
Maybe ActiveDirectoryBackupAttributes
Maybe BackupFailureDetails
Maybe ResourceType
Maybe Volume
Text
POSIX
BackupLifecycle
BackupType
FileSystem
fileSystem :: FileSystem
creationTime :: POSIX
type' :: BackupType
lifecycle :: BackupLifecycle
backupId :: Text
volume :: Maybe Volume
tags :: Maybe (NonEmpty Tag)
sourceBackupRegion :: Maybe Text
sourceBackupId :: Maybe Text
resourceType :: Maybe ResourceType
resourceARN :: Maybe Text
progressPercent :: Maybe Natural
ownerId :: Maybe Text
kmsKeyId :: Maybe Text
failureDetails :: Maybe BackupFailureDetails
directoryInformation :: Maybe ActiveDirectoryBackupAttributes
$sel:fileSystem:Backup' :: Backup -> FileSystem
$sel:creationTime:Backup' :: Backup -> POSIX
$sel:type':Backup' :: Backup -> BackupType
$sel:lifecycle:Backup' :: Backup -> BackupLifecycle
$sel:backupId:Backup' :: Backup -> Text
$sel:volume:Backup' :: Backup -> Maybe Volume
$sel:tags:Backup' :: Backup -> Maybe (NonEmpty Tag)
$sel:sourceBackupRegion:Backup' :: Backup -> Maybe Text
$sel:sourceBackupId:Backup' :: Backup -> Maybe Text
$sel:resourceType:Backup' :: Backup -> Maybe ResourceType
$sel:resourceARN:Backup' :: Backup -> Maybe Text
$sel:progressPercent:Backup' :: Backup -> Maybe Natural
$sel:ownerId:Backup' :: Backup -> Maybe Text
$sel:kmsKeyId:Backup' :: Backup -> Maybe Text
$sel:failureDetails:Backup' :: Backup -> Maybe BackupFailureDetails
$sel:directoryInformation:Backup' :: Backup -> Maybe ActiveDirectoryBackupAttributes
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ActiveDirectoryBackupAttributes
directoryInformation
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe BackupFailureDetails
failureDetails
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
kmsKeyId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ownerId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
progressPercent
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceARN
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceType
resourceType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourceBackupId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourceBackupRegion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Tag)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Volume
volume
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
backupId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` BackupLifecycle
lifecycle
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` BackupType
type'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
creationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` FileSystem
fileSystem
instance Prelude.NFData Backup where
rnf :: Backup -> ()
rnf Backup' {Maybe Natural
Maybe (NonEmpty Tag)
Maybe Text
Maybe ActiveDirectoryBackupAttributes
Maybe BackupFailureDetails
Maybe ResourceType
Maybe Volume
Text
POSIX
BackupLifecycle
BackupType
FileSystem
fileSystem :: FileSystem
creationTime :: POSIX
type' :: BackupType
lifecycle :: BackupLifecycle
backupId :: Text
volume :: Maybe Volume
tags :: Maybe (NonEmpty Tag)
sourceBackupRegion :: Maybe Text
sourceBackupId :: Maybe Text
resourceType :: Maybe ResourceType
resourceARN :: Maybe Text
progressPercent :: Maybe Natural
ownerId :: Maybe Text
kmsKeyId :: Maybe Text
failureDetails :: Maybe BackupFailureDetails
directoryInformation :: Maybe ActiveDirectoryBackupAttributes
$sel:fileSystem:Backup' :: Backup -> FileSystem
$sel:creationTime:Backup' :: Backup -> POSIX
$sel:type':Backup' :: Backup -> BackupType
$sel:lifecycle:Backup' :: Backup -> BackupLifecycle
$sel:backupId:Backup' :: Backup -> Text
$sel:volume:Backup' :: Backup -> Maybe Volume
$sel:tags:Backup' :: Backup -> Maybe (NonEmpty Tag)
$sel:sourceBackupRegion:Backup' :: Backup -> Maybe Text
$sel:sourceBackupId:Backup' :: Backup -> Maybe Text
$sel:resourceType:Backup' :: Backup -> Maybe ResourceType
$sel:resourceARN:Backup' :: Backup -> Maybe Text
$sel:progressPercent:Backup' :: Backup -> Maybe Natural
$sel:ownerId:Backup' :: Backup -> Maybe Text
$sel:kmsKeyId:Backup' :: Backup -> Maybe Text
$sel:failureDetails:Backup' :: Backup -> Maybe BackupFailureDetails
$sel:directoryInformation:Backup' :: Backup -> Maybe ActiveDirectoryBackupAttributes
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ActiveDirectoryBackupAttributes
directoryInformation
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BackupFailureDetails
failureDetails
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
kmsKeyId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ownerId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
progressPercent
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 ResourceType
resourceType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceBackupId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceBackupRegion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Tag)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Volume
volume
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
backupId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf BackupLifecycle
lifecycle
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf BackupType
type'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf FileSystem
fileSystem