{-# 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.UpdateFileSystemOntapConfiguration
-- 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.UpdateFileSystemOntapConfiguration 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 NetApp ONTAP file
-- system.
--
-- /See:/ 'newUpdateFileSystemOntapConfiguration' smart constructor.
data UpdateFileSystemOntapConfiguration = UpdateFileSystemOntapConfiguration'
  { -- | (Multi-AZ only) A list of IDs of new virtual private cloud (VPC) route
    -- tables to associate (add) with your Amazon FSx for NetApp ONTAP file
    -- system.
    UpdateFileSystemOntapConfiguration -> Maybe [Text]
addRouteTableIds :: Prelude.Maybe [Prelude.Text],
    UpdateFileSystemOntapConfiguration -> Maybe Natural
automaticBackupRetentionDays :: Prelude.Maybe Prelude.Natural,
    UpdateFileSystemOntapConfiguration -> Maybe Text
dailyAutomaticBackupStartTime :: Prelude.Maybe Prelude.Text,
    -- | The SSD IOPS (input\/output operations per second) configuration for an
    -- Amazon FSx for NetApp ONTAP file system. The default is 3 IOPS per GB of
    -- storage capacity, but you can provision additional IOPS per GB of
    -- storage. The configuration consists of an IOPS mode (@AUTOMATIC@ or
    -- @USER_PROVISIONED@), and in the case of @USER_PROVISIONED@ IOPS, the
    -- total number of SSD IOPS provisioned.
    UpdateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
diskIopsConfiguration :: Prelude.Maybe DiskIopsConfiguration,
    -- | The ONTAP administrative password for the @fsxadmin@ user.
    UpdateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
fsxAdminPassword :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | (Multi-AZ only) A list of IDs of existing virtual private cloud (VPC)
    -- route tables to disassociate (remove) from your Amazon FSx for NetApp
    -- ONTAP file system. You can use the API operation to retrieve the list of
    -- VPC route table IDs for a file system.
    UpdateFileSystemOntapConfiguration -> Maybe [Text]
removeRouteTableIds :: Prelude.Maybe [Prelude.Text],
    -- | Specifies the throughput of an FSx for NetApp ONTAP file system,
    -- measured in megabytes per second (MBps). Valid values are 128, 256, 512,
    -- 1024, 2048, and 4096 MBps.
    UpdateFileSystemOntapConfiguration -> Maybe Natural
throughputCapacity :: Prelude.Maybe Prelude.Natural,
    UpdateFileSystemOntapConfiguration -> Maybe Text
weeklyMaintenanceStartTime :: Prelude.Maybe Prelude.Text
  }
  deriving (UpdateFileSystemOntapConfiguration
-> UpdateFileSystemOntapConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFileSystemOntapConfiguration
-> UpdateFileSystemOntapConfiguration -> Bool
$c/= :: UpdateFileSystemOntapConfiguration
-> UpdateFileSystemOntapConfiguration -> Bool
== :: UpdateFileSystemOntapConfiguration
-> UpdateFileSystemOntapConfiguration -> Bool
$c== :: UpdateFileSystemOntapConfiguration
-> UpdateFileSystemOntapConfiguration -> Bool
Prelude.Eq, Int -> UpdateFileSystemOntapConfiguration -> ShowS
[UpdateFileSystemOntapConfiguration] -> ShowS
UpdateFileSystemOntapConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFileSystemOntapConfiguration] -> ShowS
$cshowList :: [UpdateFileSystemOntapConfiguration] -> ShowS
show :: UpdateFileSystemOntapConfiguration -> String
$cshow :: UpdateFileSystemOntapConfiguration -> String
showsPrec :: Int -> UpdateFileSystemOntapConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateFileSystemOntapConfiguration -> ShowS
Prelude.Show, forall x.
Rep UpdateFileSystemOntapConfiguration x
-> UpdateFileSystemOntapConfiguration
forall x.
UpdateFileSystemOntapConfiguration
-> Rep UpdateFileSystemOntapConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateFileSystemOntapConfiguration x
-> UpdateFileSystemOntapConfiguration
$cfrom :: forall x.
UpdateFileSystemOntapConfiguration
-> Rep UpdateFileSystemOntapConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'UpdateFileSystemOntapConfiguration' 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:
--
-- 'addRouteTableIds', 'updateFileSystemOntapConfiguration_addRouteTableIds' - (Multi-AZ only) A list of IDs of new virtual private cloud (VPC) route
-- tables to associate (add) with your Amazon FSx for NetApp ONTAP file
-- system.
--
-- 'automaticBackupRetentionDays', 'updateFileSystemOntapConfiguration_automaticBackupRetentionDays' - Undocumented member.
--
-- 'dailyAutomaticBackupStartTime', 'updateFileSystemOntapConfiguration_dailyAutomaticBackupStartTime' - Undocumented member.
--
-- 'diskIopsConfiguration', 'updateFileSystemOntapConfiguration_diskIopsConfiguration' - The SSD IOPS (input\/output operations per second) configuration for an
-- Amazon FSx for NetApp ONTAP file system. The default is 3 IOPS per GB of
-- storage capacity, but you can provision additional IOPS per GB of
-- storage. The configuration consists of an IOPS mode (@AUTOMATIC@ or
-- @USER_PROVISIONED@), and in the case of @USER_PROVISIONED@ IOPS, the
-- total number of SSD IOPS provisioned.
--
-- 'fsxAdminPassword', 'updateFileSystemOntapConfiguration_fsxAdminPassword' - The ONTAP administrative password for the @fsxadmin@ user.
--
-- 'removeRouteTableIds', 'updateFileSystemOntapConfiguration_removeRouteTableIds' - (Multi-AZ only) A list of IDs of existing virtual private cloud (VPC)
-- route tables to disassociate (remove) from your Amazon FSx for NetApp
-- ONTAP file system. You can use the API operation to retrieve the list of
-- VPC route table IDs for a file system.
--
-- 'throughputCapacity', 'updateFileSystemOntapConfiguration_throughputCapacity' - Specifies the throughput of an FSx for NetApp ONTAP file system,
-- measured in megabytes per second (MBps). Valid values are 128, 256, 512,
-- 1024, 2048, and 4096 MBps.
--
-- 'weeklyMaintenanceStartTime', 'updateFileSystemOntapConfiguration_weeklyMaintenanceStartTime' - Undocumented member.
newUpdateFileSystemOntapConfiguration ::
  UpdateFileSystemOntapConfiguration
newUpdateFileSystemOntapConfiguration :: UpdateFileSystemOntapConfiguration
newUpdateFileSystemOntapConfiguration =
  UpdateFileSystemOntapConfiguration'
    { $sel:addRouteTableIds:UpdateFileSystemOntapConfiguration' :: Maybe [Text]
addRouteTableIds =
        forall a. Maybe a
Prelude.Nothing,
      $sel:automaticBackupRetentionDays:UpdateFileSystemOntapConfiguration' :: Maybe Natural
automaticBackupRetentionDays =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dailyAutomaticBackupStartTime:UpdateFileSystemOntapConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime =
        forall a. Maybe a
Prelude.Nothing,
      $sel:diskIopsConfiguration:UpdateFileSystemOntapConfiguration' :: Maybe DiskIopsConfiguration
diskIopsConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:fsxAdminPassword:UpdateFileSystemOntapConfiguration' :: Maybe (Sensitive Text)
fsxAdminPassword = forall a. Maybe a
Prelude.Nothing,
      $sel:removeRouteTableIds:UpdateFileSystemOntapConfiguration' :: Maybe [Text]
removeRouteTableIds = forall a. Maybe a
Prelude.Nothing,
      $sel:throughputCapacity:UpdateFileSystemOntapConfiguration' :: Maybe Natural
throughputCapacity = forall a. Maybe a
Prelude.Nothing,
      $sel:weeklyMaintenanceStartTime:UpdateFileSystemOntapConfiguration' :: Maybe Text
weeklyMaintenanceStartTime =
        forall a. Maybe a
Prelude.Nothing
    }

-- | (Multi-AZ only) A list of IDs of new virtual private cloud (VPC) route
-- tables to associate (add) with your Amazon FSx for NetApp ONTAP file
-- system.
updateFileSystemOntapConfiguration_addRouteTableIds :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe [Prelude.Text])
updateFileSystemOntapConfiguration_addRouteTableIds :: Lens' UpdateFileSystemOntapConfiguration (Maybe [Text])
updateFileSystemOntapConfiguration_addRouteTableIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOntapConfiguration' {Maybe [Text]
addRouteTableIds :: Maybe [Text]
$sel:addRouteTableIds:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe [Text]
addRouteTableIds} -> Maybe [Text]
addRouteTableIds) (\s :: UpdateFileSystemOntapConfiguration
s@UpdateFileSystemOntapConfiguration' {} Maybe [Text]
a -> UpdateFileSystemOntapConfiguration
s {$sel:addRouteTableIds:UpdateFileSystemOntapConfiguration' :: Maybe [Text]
addRouteTableIds = Maybe [Text]
a} :: UpdateFileSystemOntapConfiguration) 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

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

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

-- | The SSD IOPS (input\/output operations per second) configuration for an
-- Amazon FSx for NetApp ONTAP file system. The default is 3 IOPS per GB of
-- storage capacity, but you can provision additional IOPS per GB of
-- storage. The configuration consists of an IOPS mode (@AUTOMATIC@ or
-- @USER_PROVISIONED@), and in the case of @USER_PROVISIONED@ IOPS, the
-- total number of SSD IOPS provisioned.
updateFileSystemOntapConfiguration_diskIopsConfiguration :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe DiskIopsConfiguration)
updateFileSystemOntapConfiguration_diskIopsConfiguration :: Lens'
  UpdateFileSystemOntapConfiguration (Maybe DiskIopsConfiguration)
updateFileSystemOntapConfiguration_diskIopsConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOntapConfiguration' {Maybe DiskIopsConfiguration
diskIopsConfiguration :: Maybe DiskIopsConfiguration
$sel:diskIopsConfiguration:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
diskIopsConfiguration} -> Maybe DiskIopsConfiguration
diskIopsConfiguration) (\s :: UpdateFileSystemOntapConfiguration
s@UpdateFileSystemOntapConfiguration' {} Maybe DiskIopsConfiguration
a -> UpdateFileSystemOntapConfiguration
s {$sel:diskIopsConfiguration:UpdateFileSystemOntapConfiguration' :: Maybe DiskIopsConfiguration
diskIopsConfiguration = Maybe DiskIopsConfiguration
a} :: UpdateFileSystemOntapConfiguration)

-- | The ONTAP administrative password for the @fsxadmin@ user.
updateFileSystemOntapConfiguration_fsxAdminPassword :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemOntapConfiguration_fsxAdminPassword :: Lens' UpdateFileSystemOntapConfiguration (Maybe Text)
updateFileSystemOntapConfiguration_fsxAdminPassword = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOntapConfiguration' {Maybe (Sensitive Text)
fsxAdminPassword :: Maybe (Sensitive Text)
$sel:fsxAdminPassword:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
fsxAdminPassword} -> Maybe (Sensitive Text)
fsxAdminPassword) (\s :: UpdateFileSystemOntapConfiguration
s@UpdateFileSystemOntapConfiguration' {} Maybe (Sensitive Text)
a -> UpdateFileSystemOntapConfiguration
s {$sel:fsxAdminPassword:UpdateFileSystemOntapConfiguration' :: Maybe (Sensitive Text)
fsxAdminPassword = Maybe (Sensitive Text)
a} :: UpdateFileSystemOntapConfiguration) 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. Iso' (Sensitive a) a
Data._Sensitive

-- | (Multi-AZ only) A list of IDs of existing virtual private cloud (VPC)
-- route tables to disassociate (remove) from your Amazon FSx for NetApp
-- ONTAP file system. You can use the API operation to retrieve the list of
-- VPC route table IDs for a file system.
updateFileSystemOntapConfiguration_removeRouteTableIds :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe [Prelude.Text])
updateFileSystemOntapConfiguration_removeRouteTableIds :: Lens' UpdateFileSystemOntapConfiguration (Maybe [Text])
updateFileSystemOntapConfiguration_removeRouteTableIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOntapConfiguration' {Maybe [Text]
removeRouteTableIds :: Maybe [Text]
$sel:removeRouteTableIds:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe [Text]
removeRouteTableIds} -> Maybe [Text]
removeRouteTableIds) (\s :: UpdateFileSystemOntapConfiguration
s@UpdateFileSystemOntapConfiguration' {} Maybe [Text]
a -> UpdateFileSystemOntapConfiguration
s {$sel:removeRouteTableIds:UpdateFileSystemOntapConfiguration' :: Maybe [Text]
removeRouteTableIds = Maybe [Text]
a} :: UpdateFileSystemOntapConfiguration) 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

-- | Specifies the throughput of an FSx for NetApp ONTAP file system,
-- measured in megabytes per second (MBps). Valid values are 128, 256, 512,
-- 1024, 2048, and 4096 MBps.
updateFileSystemOntapConfiguration_throughputCapacity :: Lens.Lens' UpdateFileSystemOntapConfiguration (Prelude.Maybe Prelude.Natural)
updateFileSystemOntapConfiguration_throughputCapacity :: Lens' UpdateFileSystemOntapConfiguration (Maybe Natural)
updateFileSystemOntapConfiguration_throughputCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemOntapConfiguration' {Maybe Natural
throughputCapacity :: Maybe Natural
$sel:throughputCapacity:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Natural
throughputCapacity} -> Maybe Natural
throughputCapacity) (\s :: UpdateFileSystemOntapConfiguration
s@UpdateFileSystemOntapConfiguration' {} Maybe Natural
a -> UpdateFileSystemOntapConfiguration
s {$sel:throughputCapacity:UpdateFileSystemOntapConfiguration' :: Maybe Natural
throughputCapacity = Maybe Natural
a} :: UpdateFileSystemOntapConfiguration)

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

instance
  Prelude.Hashable
    UpdateFileSystemOntapConfiguration
  where
  hashWithSalt :: Int -> UpdateFileSystemOntapConfiguration -> Int
hashWithSalt
    Int
_salt
    UpdateFileSystemOntapConfiguration' {Maybe Natural
Maybe [Text]
Maybe Text
Maybe (Sensitive Text)
Maybe DiskIopsConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
removeRouteTableIds :: Maybe [Text]
fsxAdminPassword :: Maybe (Sensitive Text)
diskIopsConfiguration :: Maybe DiskIopsConfiguration
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
addRouteTableIds :: Maybe [Text]
$sel:weeklyMaintenanceStartTime:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Natural
$sel:removeRouteTableIds:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe [Text]
$sel:fsxAdminPassword:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
$sel:diskIopsConfiguration:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Natural
$sel:addRouteTableIds:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe [Text]
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
addRouteTableIds
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
automaticBackupRetentionDays
        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 (Sensitive Text)
fsxAdminPassword
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
removeRouteTableIds
        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
    UpdateFileSystemOntapConfiguration
  where
  rnf :: UpdateFileSystemOntapConfiguration -> ()
rnf UpdateFileSystemOntapConfiguration' {Maybe Natural
Maybe [Text]
Maybe Text
Maybe (Sensitive Text)
Maybe DiskIopsConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
removeRouteTableIds :: Maybe [Text]
fsxAdminPassword :: Maybe (Sensitive Text)
diskIopsConfiguration :: Maybe DiskIopsConfiguration
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
addRouteTableIds :: Maybe [Text]
$sel:weeklyMaintenanceStartTime:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Natural
$sel:removeRouteTableIds:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe [Text]
$sel:fsxAdminPassword:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
$sel:diskIopsConfiguration:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Natural
$sel:addRouteTableIds:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe [Text]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
addRouteTableIds
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 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 (Sensitive Text)
fsxAdminPassword
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
removeRouteTableIds
      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
    UpdateFileSystemOntapConfiguration
  where
  toJSON :: UpdateFileSystemOntapConfiguration -> Value
toJSON UpdateFileSystemOntapConfiguration' {Maybe Natural
Maybe [Text]
Maybe Text
Maybe (Sensitive Text)
Maybe DiskIopsConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
removeRouteTableIds :: Maybe [Text]
fsxAdminPassword :: Maybe (Sensitive Text)
diskIopsConfiguration :: Maybe DiskIopsConfiguration
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
addRouteTableIds :: Maybe [Text]
$sel:weeklyMaintenanceStartTime:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Natural
$sel:removeRouteTableIds:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe [Text]
$sel:fsxAdminPassword:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe (Sensitive Text)
$sel:diskIopsConfiguration:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe DiskIopsConfiguration
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe Natural
$sel:addRouteTableIds:UpdateFileSystemOntapConfiguration' :: UpdateFileSystemOntapConfiguration -> Maybe [Text]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"AddRouteTableIds" 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]
addRouteTableIds,
            (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
"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
"FsxAdminPassword" 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 (Sensitive Text)
fsxAdminPassword,
            (Key
"RemoveRouteTableIds" 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]
removeRouteTableIds,
            (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
          ]
      )