{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.FSx.Types.UpdateFileSystemOpenZFSConfiguration
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.FSx.Types.UpdateFileSystemOpenZFSConfiguration 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.DiskIopsConfiguration
import qualified Amazonka.Prelude as Prelude

-- | The configuration updates for an Amazon FSx for OpenZFS file system.
--
-- /See:/ 'newUpdateFileSystemOpenZFSConfiguration' smart constructor.
data UpdateFileSystemOpenZFSConfiguration = UpdateFileSystemOpenZFSConfiguration'
  { UpdateFileSystemOpenZFSConfiguration -> Maybe Natural
automaticBackupRetentionDays :: Prelude.Maybe Prelude.Natural,
    -- | A Boolean value indicating whether tags for the file system should be
    -- copied to backups. This value defaults to @false@. If it\'s set to
    -- @true@, all tags for the file system are copied to all automatic and
    -- user-initiated backups where the user doesn\'t specify tags. If this
    -- value is @true@ and you specify one or more tags, only the specified
    -- tags are copied to backups. If you specify one or more tags when
    -- creating a user-initiated backup, no tags are copied from the file
    -- system, regardless of this value.
    UpdateFileSystemOpenZFSConfiguration -> Maybe Bool
copyTagsToBackups :: Prelude.Maybe Prelude.Bool,
    -- | A Boolean value indicating whether tags for the volume should be copied
    -- to snapshots. This value defaults to @false@. If it\'s set to @true@,
    -- all tags for the volume are copied to snapshots where the user doesn\'t
    -- specify tags. If this value is @true@ and you specify one or more tags,
    -- only the specified tags are copied to snapshots. If you specify one or
    -- more tags when creating the snapshot, no tags are copied from the
    -- volume, regardless of this value.
    UpdateFileSystemOpenZFSConfiguration -> Maybe Bool
copyTagsToVolumes :: Prelude.Maybe Prelude.Bool,
    UpdateFileSystemOpenZFSConfiguration -> Maybe Text
dailyAutomaticBackupStartTime :: Prelude.Maybe Prelude.Text,
    UpdateFileSystemOpenZFSConfiguration -> Maybe DiskIopsConfiguration
diskIopsConfiguration :: Prelude.Maybe DiskIopsConfiguration,
    -- | The throughput of an Amazon FSx for OpenZFS file system, measured in
    -- megabytes per second
 (MB\/s). Valid values depend on the DeploymentType
    -- you choose, as follows:
    --
    -- -   For @SINGLE_AZ_1@, valid values are 64, 128, 256, 512, 1024, 2048,
    --     3072, or 4096 MB\/s.
    --
    -- -   For @SINGLE_AZ_2@, valid values are 160, 320, 640, 1280, 2560, 3840,
    --     5120, 7680, or 10240 MB\/s.
    UpdateFileSystemOpenZFSConfiguration -> Maybe Natural
throughputCapacity :: Prelude.Maybe Prelude.Natural,
    UpdateFileSystemOpenZFSConfiguration -> Maybe Text
weeklyMaintenanceStartTime :: Prelude.Maybe Prelude.Text
  }
  deriving (UpdateFileSystemOpenZFSConfiguration
-> UpdateFileSystemOpenZFSConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFileSystemOpenZFSConfiguration
-> UpdateFileSystemOpenZFSConfiguration -> Bool
$c/= :: UpdateFileSystemOpenZFSConfiguration
-> UpdateFileSystemOpenZFSConfiguration -> Bool
== :: UpdateFileSystemOpenZFSConfiguration
-> UpdateFileSystemOpenZFSConfiguration -> Bool
$c== :: UpdateFileSystemOpenZFSConfiguration
-> UpdateFileSystemOpenZFSConfiguration -> Bool
Prelude.Eq, ReadPrec [UpdateFileSystemOpenZFSConfiguration]
ReadPrec UpdateFileSystemOpenZFSConfiguration
Int -> ReadS UpdateFileSystemOpenZFSConfiguration
ReadS [UpdateFileSystemOpenZFSConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateFileSystemOpenZFSConfiguration]
$creadListPrec :: ReadPrec [UpdateFileSystemOpenZFSConfiguration]
readPrec :: ReadPrec UpdateFileSystemOpenZFSConfiguration
$creadPrec :: ReadPrec UpdateFileSystemOpenZFSConfiguration
readList :: ReadS [UpdateFileSystemOpenZFSConfiguration]
$creadList :: ReadS [UpdateFileSystemOpenZFSConfiguration]
readsPrec :: Int -> ReadS UpdateFileSystemOpenZFSConfiguration
$creadsPrec :: Int -> ReadS UpdateFileSystemOpenZFSConfiguration
Prelude.Read, Int -> UpdateFileSystemOpenZFSConfiguration -> ShowS
[UpdateFileSystemOpenZFSConfiguration] -> ShowS
UpdateFileSystemOpenZFSConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFileSystemOpenZFSConfiguration] -> ShowS
$cshowList :: [UpdateFileSystemOpenZFSConfiguration] -> ShowS
show :: UpdateFileSystemOpenZFSConfiguration -> String
$cshow :: UpdateFileSystemOpenZFSConfiguration -> String
showsPrec :: Int -> UpdateFileSystemOpenZFSConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateFileSystemOpenZFSConfiguration -> ShowS
Prelude.Show, forall x.
Rep UpdateFileSystemOpenZFSConfiguration x
-> UpdateFileSystemOpenZFSConfiguration
forall x.
UpdateFileSystemOpenZFSConfiguration
-> Rep UpdateFileSystemOpenZFSConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateFileSystemOpenZFSConfiguration x
-> UpdateFileSystemOpenZFSConfiguration
$cfrom :: forall x.
UpdateFileSystemOpenZFSConfiguration
-> Rep UpdateFileSystemOpenZFSConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'UpdateFileSystemOpenZFSConfiguration' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'automaticBackupRetentionDays', 'updateFileSystemOpenZFSConfiguration_automaticBackupRetentionDays' - Undocumented member.
--
-- 'copyTagsToBackups', 'updateFileSystemOpenZFSConfiguration_copyTagsToBackups' - A Boolean value indicating whether tags for the file system should be
-- copied to backups. This value defaults to @false@. If it\'s set to
-- @true@, all tags for the file system are copied to all automatic and
-- user-initiated backups where the user doesn\'t specify tags. If this
-- value is @true@ and you specify one or more tags, only the specified
-- tags are copied to backups. If you specify one or more tags when
-- creating a user-initiated backup, no tags are copied from the file
-- system, regardless of this value.
--
-- 'copyTagsToVolumes', 'updateFileSystemOpenZFSConfiguration_copyTagsToVolumes' - A Boolean value indicating whether tags for the volume should be copied
-- to snapshots. This value defaults to @false@. If it\'s set to @true@,
-- all tags for the volume are copied to snapshots where the user doesn\'t
-- specify tags. If this value is @true@ and you specify one or more tags,
-- only the specified tags are copied to snapshots. If you specify one or
-- more tags when creating the snapshot, no tags are copied from the
-- volume, regardless of this value.
--
-- 'dailyAutomaticBackupStartTime', 'updateFileSystemOpenZFSConfiguration_dailyAutomaticBackupStartTime' - Undocumented member.
--
-- 'diskIopsConfiguration', 'updateFileSystemOpenZFSConfiguration_diskIopsConfiguration' - Undocumented member.
--
-- 'throughputCapacity', 'updateFileSystemOpenZFSConfiguration_throughputCapacity' - The throughput of an Amazon FSx for OpenZFS file system, measured in
-- megabytes per second
 (MB\/s). Valid values depend on the DeploymentType
-- you choose, as follows:
--
-- -   For @SINGLE_AZ_1@, valid values are 64, 128, 256, 512, 1024, 2048,
--     3072, or 4096 MB\/s.
--
-- -   For @SINGLE_AZ_2@, valid values are 160, 320, 640, 1280, 2560, 3840,
--     5120, 7680, or 10240 MB\/s.
--
-- 'weeklyMaintenanceStartTime', 'updateFileSystemOpenZFSConfiguration_weeklyMaintenanceStartTime' - Undocumented member.
newUpdateFileSystemOpenZFSConfiguration ::
  UpdateFileSystemOpenZFSConfiguration
newUpdateFileSystemOpenZFSConfiguration :: UpdateFileSystemOpenZFSConfiguration
newUpdateFileSystemOpenZFSConfiguration =
  UpdateFileSystemOpenZFSConfiguration'
    { $sel:automaticBackupRetentionDays:UpdateFileSystemOpenZFSConfiguration' :: Maybe Natural
automaticBackupRetentionDays =
        forall a. Maybe a
Prelude.Nothing,
      $sel:copyTagsToBackups:UpdateFileSystemOpenZFSConfiguration' :: Maybe Bool
copyTagsToBackups = forall a. Maybe a
Prelude.Nothing,
      $sel:copyTagsToVolumes:UpdateFileSystemOpenZFSConfiguration' :: Maybe Bool
copyTagsToVolumes = forall a. Maybe a
Prelude.Nothing,
      $sel:dailyAutomaticBackupStartTime:UpdateFileSystemOpenZFSConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime =
        forall a. Maybe a
Prelude.Nothing,
      $sel:diskIopsConfiguration:UpdateFileSystemOpenZFSConfiguration' :: Maybe DiskIopsConfiguration
diskIopsConfiguration =
        forall a. Maybe a
Prelude.Nothing,
      $sel:throughputCapacity:UpdateFileSystemOpenZFSConfiguration' :: Maybe Natural
throughputCapacity = forall a. Maybe a
Prelude.Nothing,
      $sel:weeklyMaintenanceStartTime:UpdateFileSystemOpenZFSConfiguration' :: Maybe Text
weeklyMaintenanceStartTime =
        forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
updateFileSystemOpenZFSConfiguration_automaticBackupRetentionDays :: Lens.Lens' UpdateFileSystemOpenZFSConfiguration (Prelude.Maybe Prelude.Natural)
updateFileSystemOpenZFSConfiguration_automaticBackupRetentionDays :: Lens' UpdateFileSystemOpenZFSConfiguration (Maybe Natural)
updateFileSystemOpenZFSConfiguration_automaticBackupRetentionDays = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOpenZFSConfiguration' {Maybe Natural
automaticBackupRetentionDays :: Maybe Natural
$sel:automaticBackupRetentionDays:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Natural
automaticBackupRetentionDays} -> Maybe Natural
automaticBackupRetentionDays) (\s :: UpdateFileSystemOpenZFSConfiguration
s@UpdateFileSystemOpenZFSConfiguration' {} Maybe Natural
a -> UpdateFileSystemOpenZFSConfiguration
s {$sel:automaticBackupRetentionDays:UpdateFileSystemOpenZFSConfiguration' :: Maybe Natural
automaticBackupRetentionDays = Maybe Natural
a} :: UpdateFileSystemOpenZFSConfiguration)

-- | A Boolean value indicating whether tags for the file system should be
-- copied to backups. This value defaults to @false@. If it\'s set to
-- @true@, all tags for the file system are copied to all automatic and
-- user-initiated backups where the user doesn\'t specify tags. If this
-- value is @true@ and you specify one or more tags, only the specified
-- tags are copied to backups. If you specify one or more tags when
-- creating a user-initiated backup, no tags are copied from the file
-- system, regardless of this value.
updateFileSystemOpenZFSConfiguration_copyTagsToBackups :: Lens.Lens' UpdateFileSystemOpenZFSConfiguration (Prelude.Maybe Prelude.Bool)
updateFileSystemOpenZFSConfiguration_copyTagsToBackups :: Lens' UpdateFileSystemOpenZFSConfiguration (Maybe Bool)
updateFileSystemOpenZFSConfiguration_copyTagsToBackups = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOpenZFSConfiguration' {Maybe Bool
copyTagsToBackups :: Maybe Bool
$sel:copyTagsToBackups:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Bool
copyTagsToBackups} -> Maybe Bool
copyTagsToBackups) (\s :: UpdateFileSystemOpenZFSConfiguration
s@UpdateFileSystemOpenZFSConfiguration' {} Maybe Bool
a -> UpdateFileSystemOpenZFSConfiguration
s {$sel:copyTagsToBackups:UpdateFileSystemOpenZFSConfiguration' :: Maybe Bool
copyTagsToBackups = Maybe Bool
a} :: UpdateFileSystemOpenZFSConfiguration)

-- | A Boolean value indicating whether tags for the volume should be copied
-- to snapshots. This value defaults to @false@. If it\'s set to @true@,
-- all tags for the volume are copied to snapshots where the user doesn\'t
-- specify tags. If this value is @true@ and you specify one or more tags,
-- only the specified tags are copied to snapshots. If you specify one or
-- more tags when creating the snapshot, no tags are copied from the
-- volume, regardless of this value.
updateFileSystemOpenZFSConfiguration_copyTagsToVolumes :: Lens.Lens' UpdateFileSystemOpenZFSConfiguration (Prelude.Maybe Prelude.Bool)
updateFileSystemOpenZFSConfiguration_copyTagsToVolumes :: Lens' UpdateFileSystemOpenZFSConfiguration (Maybe Bool)
updateFileSystemOpenZFSConfiguration_copyTagsToVolumes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOpenZFSConfiguration' {Maybe Bool
copyTagsToVolumes :: Maybe Bool
$sel:copyTagsToVolumes:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Bool
copyTagsToVolumes} -> Maybe Bool
copyTagsToVolumes) (\s :: UpdateFileSystemOpenZFSConfiguration
s@UpdateFileSystemOpenZFSConfiguration' {} Maybe Bool
a -> UpdateFileSystemOpenZFSConfiguration
s {$sel:copyTagsToVolumes:UpdateFileSystemOpenZFSConfiguration' :: Maybe Bool
copyTagsToVolumes = Maybe Bool
a} :: UpdateFileSystemOpenZFSConfiguration)

-- | Undocumented member.
updateFileSystemOpenZFSConfiguration_dailyAutomaticBackupStartTime :: Lens.Lens' UpdateFileSystemOpenZFSConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemOpenZFSConfiguration_dailyAutomaticBackupStartTime :: Lens' UpdateFileSystemOpenZFSConfiguration (Maybe Text)
updateFileSystemOpenZFSConfiguration_dailyAutomaticBackupStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOpenZFSConfiguration' {Maybe Text
dailyAutomaticBackupStartTime :: Maybe Text
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Text
dailyAutomaticBackupStartTime} -> Maybe Text
dailyAutomaticBackupStartTime) (\s :: UpdateFileSystemOpenZFSConfiguration
s@UpdateFileSystemOpenZFSConfiguration' {} Maybe Text
a -> UpdateFileSystemOpenZFSConfiguration
s {$sel:dailyAutomaticBackupStartTime:UpdateFileSystemOpenZFSConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime = Maybe Text
a} :: UpdateFileSystemOpenZFSConfiguration)

-- | Undocumented member.
updateFileSystemOpenZFSConfiguration_diskIopsConfiguration :: Lens.Lens' UpdateFileSystemOpenZFSConfiguration (Prelude.Maybe DiskIopsConfiguration)
updateFileSystemOpenZFSConfiguration_diskIopsConfiguration :: Lens'
  UpdateFileSystemOpenZFSConfiguration (Maybe DiskIopsConfiguration)
updateFileSystemOpenZFSConfiguration_diskIopsConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOpenZFSConfiguration' {Maybe DiskIopsConfiguration
diskIopsConfiguration :: Maybe DiskIopsConfiguration
$sel:diskIopsConfiguration:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe DiskIopsConfiguration
diskIopsConfiguration} -> Maybe DiskIopsConfiguration
diskIopsConfiguration) (\s :: UpdateFileSystemOpenZFSConfiguration
s@UpdateFileSystemOpenZFSConfiguration' {} Maybe DiskIopsConfiguration
a -> UpdateFileSystemOpenZFSConfiguration
s {$sel:diskIopsConfiguration:UpdateFileSystemOpenZFSConfiguration' :: Maybe DiskIopsConfiguration
diskIopsConfiguration = Maybe DiskIopsConfiguration
a} :: UpdateFileSystemOpenZFSConfiguration)

-- | The throughput of an Amazon FSx for OpenZFS file system, measured in
-- megabytes per second
 (MB\/s). Valid values depend on the DeploymentType
-- you choose, as follows:
--
-- -   For @SINGLE_AZ_1@, valid values are 64, 128, 256, 512, 1024, 2048,
--     3072, or 4096 MB\/s.
--
-- -   For @SINGLE_AZ_2@, valid values are 160, 320, 640, 1280, 2560, 3840,
--     5120, 7680, or 10240 MB\/s.
updateFileSystemOpenZFSConfiguration_throughputCapacity :: Lens.Lens' UpdateFileSystemOpenZFSConfiguration (Prelude.Maybe Prelude.Natural)
updateFileSystemOpenZFSConfiguration_throughputCapacity :: Lens' UpdateFileSystemOpenZFSConfiguration (Maybe Natural)
updateFileSystemOpenZFSConfiguration_throughputCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOpenZFSConfiguration' {Maybe Natural
throughputCapacity :: Maybe Natural
$sel:throughputCapacity:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Natural
throughputCapacity} -> Maybe Natural
throughputCapacity) (\s :: UpdateFileSystemOpenZFSConfiguration
s@UpdateFileSystemOpenZFSConfiguration' {} Maybe Natural
a -> UpdateFileSystemOpenZFSConfiguration
s {$sel:throughputCapacity:UpdateFileSystemOpenZFSConfiguration' :: Maybe Natural
throughputCapacity = Maybe Natural
a} :: UpdateFileSystemOpenZFSConfiguration)

-- | Undocumented member.
updateFileSystemOpenZFSConfiguration_weeklyMaintenanceStartTime :: Lens.Lens' UpdateFileSystemOpenZFSConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemOpenZFSConfiguration_weeklyMaintenanceStartTime :: Lens' UpdateFileSystemOpenZFSConfiguration (Maybe Text)
updateFileSystemOpenZFSConfiguration_weeklyMaintenanceStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOpenZFSConfiguration' {Maybe Text
weeklyMaintenanceStartTime :: Maybe Text
$sel:weeklyMaintenanceStartTime:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Text
weeklyMaintenanceStartTime} -> Maybe Text
weeklyMaintenanceStartTime) (\s :: UpdateFileSystemOpenZFSConfiguration
s@UpdateFileSystemOpenZFSConfiguration' {} Maybe Text
a -> UpdateFileSystemOpenZFSConfiguration
s {$sel:weeklyMaintenanceStartTime:UpdateFileSystemOpenZFSConfiguration' :: Maybe Text
weeklyMaintenanceStartTime = Maybe Text
a} :: UpdateFileSystemOpenZFSConfiguration)

instance
  Prelude.Hashable
    UpdateFileSystemOpenZFSConfiguration
  where
  hashWithSalt :: Int -> UpdateFileSystemOpenZFSConfiguration -> Int
hashWithSalt
    Int
_salt
    UpdateFileSystemOpenZFSConfiguration' {Maybe Bool
Maybe Natural
Maybe Text
Maybe DiskIopsConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
diskIopsConfiguration :: Maybe DiskIopsConfiguration
dailyAutomaticBackupStartTime :: Maybe Text
copyTagsToVolumes :: Maybe Bool
copyTagsToBackups :: Maybe Bool
automaticBackupRetentionDays :: Maybe Natural
$sel:weeklyMaintenanceStartTime:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Natural
$sel:diskIopsConfiguration:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe DiskIopsConfiguration
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Text
$sel:copyTagsToVolumes:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Bool
$sel:copyTagsToBackups:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Bool
$sel:automaticBackupRetentionDays:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Natural
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
automaticBackupRetentionDays
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
copyTagsToBackups
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
copyTagsToVolumes
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dailyAutomaticBackupStartTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DiskIopsConfiguration
diskIopsConfiguration
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
throughputCapacity
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
weeklyMaintenanceStartTime

instance
  Prelude.NFData
    UpdateFileSystemOpenZFSConfiguration
  where
  rnf :: UpdateFileSystemOpenZFSConfiguration -> ()
rnf UpdateFileSystemOpenZFSConfiguration' {Maybe Bool
Maybe Natural
Maybe Text
Maybe DiskIopsConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
diskIopsConfiguration :: Maybe DiskIopsConfiguration
dailyAutomaticBackupStartTime :: Maybe Text
copyTagsToVolumes :: Maybe Bool
copyTagsToBackups :: Maybe Bool
automaticBackupRetentionDays :: Maybe Natural
$sel:weeklyMaintenanceStartTime:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Natural
$sel:diskIopsConfiguration:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe DiskIopsConfiguration
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Text
$sel:copyTagsToVolumes:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Bool
$sel:copyTagsToBackups:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Bool
$sel:automaticBackupRetentionDays:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
automaticBackupRetentionDays
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
copyTagsToBackups
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
copyTagsToVolumes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dailyAutomaticBackupStartTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DiskIopsConfiguration
diskIopsConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
throughputCapacity
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
weeklyMaintenanceStartTime

instance
  Data.ToJSON
    UpdateFileSystemOpenZFSConfiguration
  where
  toJSON :: UpdateFileSystemOpenZFSConfiguration -> Value
toJSON UpdateFileSystemOpenZFSConfiguration' {Maybe Bool
Maybe Natural
Maybe Text
Maybe DiskIopsConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
diskIopsConfiguration :: Maybe DiskIopsConfiguration
dailyAutomaticBackupStartTime :: Maybe Text
copyTagsToVolumes :: Maybe Bool
copyTagsToBackups :: Maybe Bool
automaticBackupRetentionDays :: Maybe Natural
$sel:weeklyMaintenanceStartTime:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Natural
$sel:diskIopsConfiguration:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe DiskIopsConfiguration
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Text
$sel:copyTagsToVolumes:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Bool
$sel:copyTagsToBackups:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Bool
$sel:automaticBackupRetentionDays:UpdateFileSystemOpenZFSConfiguration' :: UpdateFileSystemOpenZFSConfiguration -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"AutomaticBackupRetentionDays" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
automaticBackupRetentionDays,
            (Key
"CopyTagsToBackups" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
copyTagsToBackups,
            (Key
"CopyTagsToVolumes" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
copyTagsToVolumes,
            (Key
"DailyAutomaticBackupStartTime" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
dailyAutomaticBackupStartTime,
            (Key
"DiskIopsConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DiskIopsConfiguration
diskIopsConfiguration,
            (Key
"ThroughputCapacity" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
throughputCapacity,
            (Key
"WeeklyMaintenanceStartTime" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
weeklyMaintenanceStartTime
          ]
      )