{-# 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.OpenZFSVolumeConfiguration 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.OpenZFSDataCompressionType
import Amazonka.FSx.Types.OpenZFSNfsExport
import Amazonka.FSx.Types.OpenZFSOriginSnapshotConfiguration
import Amazonka.FSx.Types.OpenZFSUserOrGroupQuota
import qualified Amazonka.Prelude as Prelude
data OpenZFSVolumeConfiguration = OpenZFSVolumeConfiguration'
{
OpenZFSVolumeConfiguration -> Maybe Bool
copyTagsToSnapshots :: Prelude.Maybe Prelude.Bool,
OpenZFSVolumeConfiguration -> Maybe OpenZFSDataCompressionType
dataCompressionType :: Prelude.Maybe OpenZFSDataCompressionType,
OpenZFSVolumeConfiguration -> Maybe Bool
deleteClonedVolumes :: Prelude.Maybe Prelude.Bool,
OpenZFSVolumeConfiguration -> Maybe Bool
deleteIntermediateSnaphots :: Prelude.Maybe Prelude.Bool,
OpenZFSVolumeConfiguration -> Maybe [OpenZFSNfsExport]
nfsExports :: Prelude.Maybe [OpenZFSNfsExport],
OpenZFSVolumeConfiguration
-> Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot :: Prelude.Maybe OpenZFSOriginSnapshotConfiguration,
OpenZFSVolumeConfiguration -> Maybe Text
parentVolumeId :: Prelude.Maybe Prelude.Text,
OpenZFSVolumeConfiguration -> Maybe Bool
readOnly :: Prelude.Maybe Prelude.Bool,
OpenZFSVolumeConfiguration -> Maybe Natural
recordSizeKiB :: Prelude.Maybe Prelude.Natural,
OpenZFSVolumeConfiguration -> Maybe Text
restoreToSnapshot :: Prelude.Maybe Prelude.Text,
OpenZFSVolumeConfiguration -> Maybe Natural
storageCapacityQuotaGiB :: Prelude.Maybe Prelude.Natural,
OpenZFSVolumeConfiguration -> Maybe Natural
storageCapacityReservationGiB :: Prelude.Maybe Prelude.Natural,
OpenZFSVolumeConfiguration -> Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas :: Prelude.Maybe [OpenZFSUserOrGroupQuota],
OpenZFSVolumeConfiguration -> Maybe Text
volumePath :: Prelude.Maybe Prelude.Text
}
deriving (OpenZFSVolumeConfiguration -> OpenZFSVolumeConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OpenZFSVolumeConfiguration -> OpenZFSVolumeConfiguration -> Bool
$c/= :: OpenZFSVolumeConfiguration -> OpenZFSVolumeConfiguration -> Bool
== :: OpenZFSVolumeConfiguration -> OpenZFSVolumeConfiguration -> Bool
$c== :: OpenZFSVolumeConfiguration -> OpenZFSVolumeConfiguration -> Bool
Prelude.Eq, ReadPrec [OpenZFSVolumeConfiguration]
ReadPrec OpenZFSVolumeConfiguration
Int -> ReadS OpenZFSVolumeConfiguration
ReadS [OpenZFSVolumeConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OpenZFSVolumeConfiguration]
$creadListPrec :: ReadPrec [OpenZFSVolumeConfiguration]
readPrec :: ReadPrec OpenZFSVolumeConfiguration
$creadPrec :: ReadPrec OpenZFSVolumeConfiguration
readList :: ReadS [OpenZFSVolumeConfiguration]
$creadList :: ReadS [OpenZFSVolumeConfiguration]
readsPrec :: Int -> ReadS OpenZFSVolumeConfiguration
$creadsPrec :: Int -> ReadS OpenZFSVolumeConfiguration
Prelude.Read, Int -> OpenZFSVolumeConfiguration -> ShowS
[OpenZFSVolumeConfiguration] -> ShowS
OpenZFSVolumeConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OpenZFSVolumeConfiguration] -> ShowS
$cshowList :: [OpenZFSVolumeConfiguration] -> ShowS
show :: OpenZFSVolumeConfiguration -> String
$cshow :: OpenZFSVolumeConfiguration -> String
showsPrec :: Int -> OpenZFSVolumeConfiguration -> ShowS
$cshowsPrec :: Int -> OpenZFSVolumeConfiguration -> ShowS
Prelude.Show, forall x.
Rep OpenZFSVolumeConfiguration x -> OpenZFSVolumeConfiguration
forall x.
OpenZFSVolumeConfiguration -> Rep OpenZFSVolumeConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OpenZFSVolumeConfiguration x -> OpenZFSVolumeConfiguration
$cfrom :: forall x.
OpenZFSVolumeConfiguration -> Rep OpenZFSVolumeConfiguration x
Prelude.Generic)
newOpenZFSVolumeConfiguration ::
OpenZFSVolumeConfiguration
newOpenZFSVolumeConfiguration :: OpenZFSVolumeConfiguration
newOpenZFSVolumeConfiguration =
OpenZFSVolumeConfiguration'
{ $sel:copyTagsToSnapshots:OpenZFSVolumeConfiguration' :: Maybe Bool
copyTagsToSnapshots =
forall a. Maybe a
Prelude.Nothing,
$sel:dataCompressionType:OpenZFSVolumeConfiguration' :: Maybe OpenZFSDataCompressionType
dataCompressionType = forall a. Maybe a
Prelude.Nothing,
$sel:deleteClonedVolumes:OpenZFSVolumeConfiguration' :: Maybe Bool
deleteClonedVolumes = forall a. Maybe a
Prelude.Nothing,
$sel:deleteIntermediateSnaphots:OpenZFSVolumeConfiguration' :: Maybe Bool
deleteIntermediateSnaphots = forall a. Maybe a
Prelude.Nothing,
$sel:nfsExports:OpenZFSVolumeConfiguration' :: Maybe [OpenZFSNfsExport]
nfsExports = forall a. Maybe a
Prelude.Nothing,
$sel:originSnapshot:OpenZFSVolumeConfiguration' :: Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot = forall a. Maybe a
Prelude.Nothing,
$sel:parentVolumeId:OpenZFSVolumeConfiguration' :: Maybe Text
parentVolumeId = forall a. Maybe a
Prelude.Nothing,
$sel:readOnly:OpenZFSVolumeConfiguration' :: Maybe Bool
readOnly = forall a. Maybe a
Prelude.Nothing,
$sel:recordSizeKiB:OpenZFSVolumeConfiguration' :: Maybe Natural
recordSizeKiB = forall a. Maybe a
Prelude.Nothing,
$sel:restoreToSnapshot:OpenZFSVolumeConfiguration' :: Maybe Text
restoreToSnapshot = forall a. Maybe a
Prelude.Nothing,
$sel:storageCapacityQuotaGiB:OpenZFSVolumeConfiguration' :: Maybe Natural
storageCapacityQuotaGiB = forall a. Maybe a
Prelude.Nothing,
$sel:storageCapacityReservationGiB:OpenZFSVolumeConfiguration' :: Maybe Natural
storageCapacityReservationGiB = forall a. Maybe a
Prelude.Nothing,
$sel:userAndGroupQuotas:OpenZFSVolumeConfiguration' :: Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas = forall a. Maybe a
Prelude.Nothing,
$sel:volumePath:OpenZFSVolumeConfiguration' :: Maybe Text
volumePath = forall a. Maybe a
Prelude.Nothing
}
openZFSVolumeConfiguration_copyTagsToSnapshots :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Bool)
openZFSVolumeConfiguration_copyTagsToSnapshots :: Lens' OpenZFSVolumeConfiguration (Maybe Bool)
openZFSVolumeConfiguration_copyTagsToSnapshots = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Bool
copyTagsToSnapshots :: Maybe Bool
$sel:copyTagsToSnapshots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
copyTagsToSnapshots} -> Maybe Bool
copyTagsToSnapshots) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Bool
a -> OpenZFSVolumeConfiguration
s {$sel:copyTagsToSnapshots:OpenZFSVolumeConfiguration' :: Maybe Bool
copyTagsToSnapshots = Maybe Bool
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_dataCompressionType :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe OpenZFSDataCompressionType)
openZFSVolumeConfiguration_dataCompressionType :: Lens' OpenZFSVolumeConfiguration (Maybe OpenZFSDataCompressionType)
openZFSVolumeConfiguration_dataCompressionType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe OpenZFSDataCompressionType
dataCompressionType :: Maybe OpenZFSDataCompressionType
$sel:dataCompressionType:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe OpenZFSDataCompressionType
dataCompressionType} -> Maybe OpenZFSDataCompressionType
dataCompressionType) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe OpenZFSDataCompressionType
a -> OpenZFSVolumeConfiguration
s {$sel:dataCompressionType:OpenZFSVolumeConfiguration' :: Maybe OpenZFSDataCompressionType
dataCompressionType = Maybe OpenZFSDataCompressionType
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_deleteClonedVolumes :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Bool)
openZFSVolumeConfiguration_deleteClonedVolumes :: Lens' OpenZFSVolumeConfiguration (Maybe Bool)
openZFSVolumeConfiguration_deleteClonedVolumes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Bool
deleteClonedVolumes :: Maybe Bool
$sel:deleteClonedVolumes:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
deleteClonedVolumes} -> Maybe Bool
deleteClonedVolumes) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Bool
a -> OpenZFSVolumeConfiguration
s {$sel:deleteClonedVolumes:OpenZFSVolumeConfiguration' :: Maybe Bool
deleteClonedVolumes = Maybe Bool
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_deleteIntermediateSnaphots :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Bool)
openZFSVolumeConfiguration_deleteIntermediateSnaphots :: Lens' OpenZFSVolumeConfiguration (Maybe Bool)
openZFSVolumeConfiguration_deleteIntermediateSnaphots = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Bool
deleteIntermediateSnaphots :: Maybe Bool
$sel:deleteIntermediateSnaphots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
deleteIntermediateSnaphots} -> Maybe Bool
deleteIntermediateSnaphots) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Bool
a -> OpenZFSVolumeConfiguration
s {$sel:deleteIntermediateSnaphots:OpenZFSVolumeConfiguration' :: Maybe Bool
deleteIntermediateSnaphots = Maybe Bool
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_nfsExports :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe [OpenZFSNfsExport])
openZFSVolumeConfiguration_nfsExports :: Lens' OpenZFSVolumeConfiguration (Maybe [OpenZFSNfsExport])
openZFSVolumeConfiguration_nfsExports = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe [OpenZFSNfsExport]
nfsExports :: Maybe [OpenZFSNfsExport]
$sel:nfsExports:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSNfsExport]
nfsExports} -> Maybe [OpenZFSNfsExport]
nfsExports) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe [OpenZFSNfsExport]
a -> OpenZFSVolumeConfiguration
s {$sel:nfsExports:OpenZFSVolumeConfiguration' :: Maybe [OpenZFSNfsExport]
nfsExports = Maybe [OpenZFSNfsExport]
a} :: OpenZFSVolumeConfiguration) 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
openZFSVolumeConfiguration_originSnapshot :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe OpenZFSOriginSnapshotConfiguration)
openZFSVolumeConfiguration_originSnapshot :: Lens'
OpenZFSVolumeConfiguration
(Maybe OpenZFSOriginSnapshotConfiguration)
openZFSVolumeConfiguration_originSnapshot = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot :: Maybe OpenZFSOriginSnapshotConfiguration
$sel:originSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration
-> Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot} -> Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe OpenZFSOriginSnapshotConfiguration
a -> OpenZFSVolumeConfiguration
s {$sel:originSnapshot:OpenZFSVolumeConfiguration' :: Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot = Maybe OpenZFSOriginSnapshotConfiguration
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_parentVolumeId :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Text)
openZFSVolumeConfiguration_parentVolumeId :: Lens' OpenZFSVolumeConfiguration (Maybe Text)
openZFSVolumeConfiguration_parentVolumeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Text
parentVolumeId :: Maybe Text
$sel:parentVolumeId:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
parentVolumeId} -> Maybe Text
parentVolumeId) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Text
a -> OpenZFSVolumeConfiguration
s {$sel:parentVolumeId:OpenZFSVolumeConfiguration' :: Maybe Text
parentVolumeId = Maybe Text
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_readOnly :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Bool)
openZFSVolumeConfiguration_readOnly :: Lens' OpenZFSVolumeConfiguration (Maybe Bool)
openZFSVolumeConfiguration_readOnly = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Bool
readOnly :: Maybe Bool
$sel:readOnly:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
readOnly} -> Maybe Bool
readOnly) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Bool
a -> OpenZFSVolumeConfiguration
s {$sel:readOnly:OpenZFSVolumeConfiguration' :: Maybe Bool
readOnly = Maybe Bool
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_recordSizeKiB :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Natural)
openZFSVolumeConfiguration_recordSizeKiB :: Lens' OpenZFSVolumeConfiguration (Maybe Natural)
openZFSVolumeConfiguration_recordSizeKiB = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Natural
recordSizeKiB :: Maybe Natural
$sel:recordSizeKiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
recordSizeKiB} -> Maybe Natural
recordSizeKiB) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Natural
a -> OpenZFSVolumeConfiguration
s {$sel:recordSizeKiB:OpenZFSVolumeConfiguration' :: Maybe Natural
recordSizeKiB = Maybe Natural
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_restoreToSnapshot :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Text)
openZFSVolumeConfiguration_restoreToSnapshot :: Lens' OpenZFSVolumeConfiguration (Maybe Text)
openZFSVolumeConfiguration_restoreToSnapshot = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Text
restoreToSnapshot :: Maybe Text
$sel:restoreToSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
restoreToSnapshot} -> Maybe Text
restoreToSnapshot) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Text
a -> OpenZFSVolumeConfiguration
s {$sel:restoreToSnapshot:OpenZFSVolumeConfiguration' :: Maybe Text
restoreToSnapshot = Maybe Text
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_storageCapacityQuotaGiB :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Natural)
openZFSVolumeConfiguration_storageCapacityQuotaGiB :: Lens' OpenZFSVolumeConfiguration (Maybe Natural)
openZFSVolumeConfiguration_storageCapacityQuotaGiB = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Natural
storageCapacityQuotaGiB :: Maybe Natural
$sel:storageCapacityQuotaGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
storageCapacityQuotaGiB} -> Maybe Natural
storageCapacityQuotaGiB) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Natural
a -> OpenZFSVolumeConfiguration
s {$sel:storageCapacityQuotaGiB:OpenZFSVolumeConfiguration' :: Maybe Natural
storageCapacityQuotaGiB = Maybe Natural
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_storageCapacityReservationGiB :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Natural)
openZFSVolumeConfiguration_storageCapacityReservationGiB :: Lens' OpenZFSVolumeConfiguration (Maybe Natural)
openZFSVolumeConfiguration_storageCapacityReservationGiB = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Natural
storageCapacityReservationGiB :: Maybe Natural
$sel:storageCapacityReservationGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
storageCapacityReservationGiB} -> Maybe Natural
storageCapacityReservationGiB) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Natural
a -> OpenZFSVolumeConfiguration
s {$sel:storageCapacityReservationGiB:OpenZFSVolumeConfiguration' :: Maybe Natural
storageCapacityReservationGiB = Maybe Natural
a} :: OpenZFSVolumeConfiguration)
openZFSVolumeConfiguration_userAndGroupQuotas :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe [OpenZFSUserOrGroupQuota])
openZFSVolumeConfiguration_userAndGroupQuotas :: Lens' OpenZFSVolumeConfiguration (Maybe [OpenZFSUserOrGroupQuota])
openZFSVolumeConfiguration_userAndGroupQuotas = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas :: Maybe [OpenZFSUserOrGroupQuota]
$sel:userAndGroupQuotas:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas} -> Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe [OpenZFSUserOrGroupQuota]
a -> OpenZFSVolumeConfiguration
s {$sel:userAndGroupQuotas:OpenZFSVolumeConfiguration' :: Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas = Maybe [OpenZFSUserOrGroupQuota]
a} :: OpenZFSVolumeConfiguration) 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
openZFSVolumeConfiguration_volumePath :: Lens.Lens' OpenZFSVolumeConfiguration (Prelude.Maybe Prelude.Text)
openZFSVolumeConfiguration_volumePath :: Lens' OpenZFSVolumeConfiguration (Maybe Text)
openZFSVolumeConfiguration_volumePath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OpenZFSVolumeConfiguration' {Maybe Text
volumePath :: Maybe Text
$sel:volumePath:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
volumePath} -> Maybe Text
volumePath) (\s :: OpenZFSVolumeConfiguration
s@OpenZFSVolumeConfiguration' {} Maybe Text
a -> OpenZFSVolumeConfiguration
s {$sel:volumePath:OpenZFSVolumeConfiguration' :: Maybe Text
volumePath = Maybe Text
a} :: OpenZFSVolumeConfiguration)
instance Data.FromJSON OpenZFSVolumeConfiguration where
parseJSON :: Value -> Parser OpenZFSVolumeConfiguration
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"OpenZFSVolumeConfiguration"
( \Object
x ->
Maybe Bool
-> Maybe OpenZFSDataCompressionType
-> Maybe Bool
-> Maybe Bool
-> Maybe [OpenZFSNfsExport]
-> Maybe OpenZFSOriginSnapshotConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe [OpenZFSUserOrGroupQuota]
-> Maybe Text
-> OpenZFSVolumeConfiguration
OpenZFSVolumeConfiguration'
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
"CopyTagsToSnapshots")
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
"DataCompressionType")
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
"DeleteClonedVolumes")
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
"DeleteIntermediateSnaphots")
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
"NfsExports" 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
"OriginSnapshot")
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
"ParentVolumeId")
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
"ReadOnly")
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
"RecordSizeKiB")
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
"RestoreToSnapshot")
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
"StorageCapacityQuotaGiB")
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
"StorageCapacityReservationGiB")
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
"UserAndGroupQuotas"
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
"VolumePath")
)
instance Prelude.Hashable OpenZFSVolumeConfiguration where
hashWithSalt :: Int -> OpenZFSVolumeConfiguration -> Int
hashWithSalt Int
_salt OpenZFSVolumeConfiguration' {Maybe Bool
Maybe Natural
Maybe [OpenZFSNfsExport]
Maybe [OpenZFSUserOrGroupQuota]
Maybe Text
Maybe OpenZFSDataCompressionType
Maybe OpenZFSOriginSnapshotConfiguration
volumePath :: Maybe Text
userAndGroupQuotas :: Maybe [OpenZFSUserOrGroupQuota]
storageCapacityReservationGiB :: Maybe Natural
storageCapacityQuotaGiB :: Maybe Natural
restoreToSnapshot :: Maybe Text
recordSizeKiB :: Maybe Natural
readOnly :: Maybe Bool
parentVolumeId :: Maybe Text
originSnapshot :: Maybe OpenZFSOriginSnapshotConfiguration
nfsExports :: Maybe [OpenZFSNfsExport]
deleteIntermediateSnaphots :: Maybe Bool
deleteClonedVolumes :: Maybe Bool
dataCompressionType :: Maybe OpenZFSDataCompressionType
copyTagsToSnapshots :: Maybe Bool
$sel:volumePath:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:userAndGroupQuotas:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSUserOrGroupQuota]
$sel:storageCapacityReservationGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:storageCapacityQuotaGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:restoreToSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:recordSizeKiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:readOnly:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:parentVolumeId:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:originSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration
-> Maybe OpenZFSOriginSnapshotConfiguration
$sel:nfsExports:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSNfsExport]
$sel:deleteIntermediateSnaphots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:deleteClonedVolumes:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:dataCompressionType:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe OpenZFSDataCompressionType
$sel:copyTagsToSnapshots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
copyTagsToSnapshots
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OpenZFSDataCompressionType
dataCompressionType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
deleteClonedVolumes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
deleteIntermediateSnaphots
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [OpenZFSNfsExport]
nfsExports
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
parentVolumeId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
readOnly
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
recordSizeKiB
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
restoreToSnapshot
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
storageCapacityQuotaGiB
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
storageCapacityReservationGiB
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
volumePath
instance Prelude.NFData OpenZFSVolumeConfiguration where
rnf :: OpenZFSVolumeConfiguration -> ()
rnf OpenZFSVolumeConfiguration' {Maybe Bool
Maybe Natural
Maybe [OpenZFSNfsExport]
Maybe [OpenZFSUserOrGroupQuota]
Maybe Text
Maybe OpenZFSDataCompressionType
Maybe OpenZFSOriginSnapshotConfiguration
volumePath :: Maybe Text
userAndGroupQuotas :: Maybe [OpenZFSUserOrGroupQuota]
storageCapacityReservationGiB :: Maybe Natural
storageCapacityQuotaGiB :: Maybe Natural
restoreToSnapshot :: Maybe Text
recordSizeKiB :: Maybe Natural
readOnly :: Maybe Bool
parentVolumeId :: Maybe Text
originSnapshot :: Maybe OpenZFSOriginSnapshotConfiguration
nfsExports :: Maybe [OpenZFSNfsExport]
deleteIntermediateSnaphots :: Maybe Bool
deleteClonedVolumes :: Maybe Bool
dataCompressionType :: Maybe OpenZFSDataCompressionType
copyTagsToSnapshots :: Maybe Bool
$sel:volumePath:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:userAndGroupQuotas:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSUserOrGroupQuota]
$sel:storageCapacityReservationGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:storageCapacityQuotaGiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:restoreToSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:recordSizeKiB:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Natural
$sel:readOnly:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:parentVolumeId:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Text
$sel:originSnapshot:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration
-> Maybe OpenZFSOriginSnapshotConfiguration
$sel:nfsExports:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe [OpenZFSNfsExport]
$sel:deleteIntermediateSnaphots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:deleteClonedVolumes:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
$sel:dataCompressionType:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe OpenZFSDataCompressionType
$sel:copyTagsToSnapshots:OpenZFSVolumeConfiguration' :: OpenZFSVolumeConfiguration -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
copyTagsToSnapshots
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OpenZFSDataCompressionType
dataCompressionType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
deleteClonedVolumes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
deleteIntermediateSnaphots
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [OpenZFSNfsExport]
nfsExports
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OpenZFSOriginSnapshotConfiguration
originSnapshot
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
parentVolumeId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
readOnly
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
recordSizeKiB
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
restoreToSnapshot
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
storageCapacityQuotaGiB
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
storageCapacityReservationGiB
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [OpenZFSUserOrGroupQuota]
userAndGroupQuotas
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
volumePath