{-# 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.UpdateFileSystemWindowsConfiguration
-- 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.UpdateFileSystemWindowsConfiguration 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.SelfManagedActiveDirectoryConfigurationUpdates
import Amazonka.FSx.Types.WindowsAuditLogCreateConfiguration
import qualified Amazonka.Prelude as Prelude

-- | Updates the configuration for an existing Amazon FSx for Windows File
-- Server file system. Amazon FSx only overwrites existing properties with
-- non-null values provided in the request.
--
-- /See:/ 'newUpdateFileSystemWindowsConfiguration' smart constructor.
data UpdateFileSystemWindowsConfiguration = UpdateFileSystemWindowsConfiguration'
  { -- | The configuration that Amazon FSx for Windows File Server uses to audit
    -- and log user accesses of files, folders, and file shares on the Amazon
    -- FSx for Windows File Server file system..
    UpdateFileSystemWindowsConfiguration
-> Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration :: Prelude.Maybe WindowsAuditLogCreateConfiguration,
    -- | The number of days to retain automatic daily backups. Setting this to
    -- zero (0) disables automatic daily backups. You can retain automatic
    -- daily backups for a maximum of 90 days. For more information, see
    -- <https://docs.aws.amazon.com/fsx/latest/WindowsGuide/using-backups.html#automatic-backups Working with Automatic Daily Backups>.
    UpdateFileSystemWindowsConfiguration -> Maybe Natural
automaticBackupRetentionDays :: Prelude.Maybe Prelude.Natural,
    -- | The preferred time to start the daily automatic backup, in the UTC time
    -- zone, for example, @02:00@
    UpdateFileSystemWindowsConfiguration -> Maybe Text
dailyAutomaticBackupStartTime :: Prelude.Maybe Prelude.Text,
    -- | The configuration Amazon FSx uses to join the Windows File Server
    -- instance to the self-managed Microsoft AD directory. You cannot make a
    -- self-managed Microsoft AD update request if there is an existing
    -- self-managed Microsoft AD update request in progress.
    UpdateFileSystemWindowsConfiguration
-> Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration :: Prelude.Maybe SelfManagedActiveDirectoryConfigurationUpdates,
    -- | Sets the target value for a file system\'s throughput capacity, in
    -- MB\/s, that you are updating the file system to. Valid values are 8, 16,
    -- 32, 64, 128, 256, 512, 1024, 2048. You cannot make a throughput capacity
    -- update request if there is an existing throughput capacity update
    -- request in progress. For more information, see
    -- <https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-throughput-capacity.html Managing Throughput Capacity>.
    UpdateFileSystemWindowsConfiguration -> Maybe Natural
throughputCapacity :: Prelude.Maybe Prelude.Natural,
    -- | The preferred start time to perform weekly maintenance, formatted
    -- d:HH:MM in the UTC time zone. Where d is the weekday number, from 1
    -- through 7, with 1 = Monday and 7 = Sunday.
    UpdateFileSystemWindowsConfiguration -> Maybe Text
weeklyMaintenanceStartTime :: Prelude.Maybe Prelude.Text
  }
  deriving (UpdateFileSystemWindowsConfiguration
-> UpdateFileSystemWindowsConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFileSystemWindowsConfiguration
-> UpdateFileSystemWindowsConfiguration -> Bool
$c/= :: UpdateFileSystemWindowsConfiguration
-> UpdateFileSystemWindowsConfiguration -> Bool
== :: UpdateFileSystemWindowsConfiguration
-> UpdateFileSystemWindowsConfiguration -> Bool
$c== :: UpdateFileSystemWindowsConfiguration
-> UpdateFileSystemWindowsConfiguration -> Bool
Prelude.Eq, Int -> UpdateFileSystemWindowsConfiguration -> ShowS
[UpdateFileSystemWindowsConfiguration] -> ShowS
UpdateFileSystemWindowsConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFileSystemWindowsConfiguration] -> ShowS
$cshowList :: [UpdateFileSystemWindowsConfiguration] -> ShowS
show :: UpdateFileSystemWindowsConfiguration -> String
$cshow :: UpdateFileSystemWindowsConfiguration -> String
showsPrec :: Int -> UpdateFileSystemWindowsConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateFileSystemWindowsConfiguration -> ShowS
Prelude.Show, forall x.
Rep UpdateFileSystemWindowsConfiguration x
-> UpdateFileSystemWindowsConfiguration
forall x.
UpdateFileSystemWindowsConfiguration
-> Rep UpdateFileSystemWindowsConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateFileSystemWindowsConfiguration x
-> UpdateFileSystemWindowsConfiguration
$cfrom :: forall x.
UpdateFileSystemWindowsConfiguration
-> Rep UpdateFileSystemWindowsConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'UpdateFileSystemWindowsConfiguration' 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:
--
-- 'auditLogConfiguration', 'updateFileSystemWindowsConfiguration_auditLogConfiguration' - The configuration that Amazon FSx for Windows File Server uses to audit
-- and log user accesses of files, folders, and file shares on the Amazon
-- FSx for Windows File Server file system..
--
-- 'automaticBackupRetentionDays', 'updateFileSystemWindowsConfiguration_automaticBackupRetentionDays' - The number of days to retain automatic daily backups. Setting this to
-- zero (0) disables automatic daily backups. You can retain automatic
-- daily backups for a maximum of 90 days. For more information, see
-- <https://docs.aws.amazon.com/fsx/latest/WindowsGuide/using-backups.html#automatic-backups Working with Automatic Daily Backups>.
--
-- 'dailyAutomaticBackupStartTime', 'updateFileSystemWindowsConfiguration_dailyAutomaticBackupStartTime' - The preferred time to start the daily automatic backup, in the UTC time
-- zone, for example, @02:00@
--
-- 'selfManagedActiveDirectoryConfiguration', 'updateFileSystemWindowsConfiguration_selfManagedActiveDirectoryConfiguration' - The configuration Amazon FSx uses to join the Windows File Server
-- instance to the self-managed Microsoft AD directory. You cannot make a
-- self-managed Microsoft AD update request if there is an existing
-- self-managed Microsoft AD update request in progress.
--
-- 'throughputCapacity', 'updateFileSystemWindowsConfiguration_throughputCapacity' - Sets the target value for a file system\'s throughput capacity, in
-- MB\/s, that you are updating the file system to. Valid values are 8, 16,
-- 32, 64, 128, 256, 512, 1024, 2048. You cannot make a throughput capacity
-- update request if there is an existing throughput capacity update
-- request in progress. For more information, see
-- <https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-throughput-capacity.html Managing Throughput Capacity>.
--
-- 'weeklyMaintenanceStartTime', 'updateFileSystemWindowsConfiguration_weeklyMaintenanceStartTime' - The preferred start time to perform weekly maintenance, formatted
-- d:HH:MM in the UTC time zone. Where d is the weekday number, from 1
-- through 7, with 1 = Monday and 7 = Sunday.
newUpdateFileSystemWindowsConfiguration ::
  UpdateFileSystemWindowsConfiguration
newUpdateFileSystemWindowsConfiguration :: UpdateFileSystemWindowsConfiguration
newUpdateFileSystemWindowsConfiguration =
  UpdateFileSystemWindowsConfiguration'
    { $sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration =
        forall a. Maybe a
Prelude.Nothing,
      $sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: Maybe Natural
automaticBackupRetentionDays =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime =
        forall a. Maybe a
Prelude.Nothing,
      $sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration =
        forall a. Maybe a
Prelude.Nothing,
      $sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: Maybe Natural
throughputCapacity = forall a. Maybe a
Prelude.Nothing,
      $sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: Maybe Text
weeklyMaintenanceStartTime =
        forall a. Maybe a
Prelude.Nothing
    }

-- | The configuration that Amazon FSx for Windows File Server uses to audit
-- and log user accesses of files, folders, and file shares on the Amazon
-- FSx for Windows File Server file system..
updateFileSystemWindowsConfiguration_auditLogConfiguration :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe WindowsAuditLogCreateConfiguration)
updateFileSystemWindowsConfiguration_auditLogConfiguration :: Lens'
  UpdateFileSystemWindowsConfiguration
  (Maybe WindowsAuditLogCreateConfiguration)
updateFileSystemWindowsConfiguration_auditLogConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration :: Maybe WindowsAuditLogCreateConfiguration
$sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration} -> Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe WindowsAuditLogCreateConfiguration
a -> UpdateFileSystemWindowsConfiguration
s {$sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration = Maybe WindowsAuditLogCreateConfiguration
a} :: UpdateFileSystemWindowsConfiguration)

-- | The number of days to retain automatic daily backups. Setting this to
-- zero (0) disables automatic daily backups. You can retain automatic
-- daily backups for a maximum of 90 days. For more information, see
-- <https://docs.aws.amazon.com/fsx/latest/WindowsGuide/using-backups.html#automatic-backups Working with Automatic Daily Backups>.
updateFileSystemWindowsConfiguration_automaticBackupRetentionDays :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe Prelude.Natural)
updateFileSystemWindowsConfiguration_automaticBackupRetentionDays :: Lens' UpdateFileSystemWindowsConfiguration (Maybe Natural)
updateFileSystemWindowsConfiguration_automaticBackupRetentionDays = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe Natural
automaticBackupRetentionDays :: Maybe Natural
$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
automaticBackupRetentionDays} -> Maybe Natural
automaticBackupRetentionDays) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe Natural
a -> UpdateFileSystemWindowsConfiguration
s {$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: Maybe Natural
automaticBackupRetentionDays = Maybe Natural
a} :: UpdateFileSystemWindowsConfiguration)

-- | The preferred time to start the daily automatic backup, in the UTC time
-- zone, for example, @02:00@
updateFileSystemWindowsConfiguration_dailyAutomaticBackupStartTime :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemWindowsConfiguration_dailyAutomaticBackupStartTime :: Lens' UpdateFileSystemWindowsConfiguration (Maybe Text)
updateFileSystemWindowsConfiguration_dailyAutomaticBackupStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe Text
dailyAutomaticBackupStartTime :: Maybe Text
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
dailyAutomaticBackupStartTime} -> Maybe Text
dailyAutomaticBackupStartTime) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe Text
a -> UpdateFileSystemWindowsConfiguration
s {$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: Maybe Text
dailyAutomaticBackupStartTime = Maybe Text
a} :: UpdateFileSystemWindowsConfiguration)

-- | The configuration Amazon FSx uses to join the Windows File Server
-- instance to the self-managed Microsoft AD directory. You cannot make a
-- self-managed Microsoft AD update request if there is an existing
-- self-managed Microsoft AD update request in progress.
updateFileSystemWindowsConfiguration_selfManagedActiveDirectoryConfiguration :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe SelfManagedActiveDirectoryConfigurationUpdates)
updateFileSystemWindowsConfiguration_selfManagedActiveDirectoryConfiguration :: Lens'
  UpdateFileSystemWindowsConfiguration
  (Maybe SelfManagedActiveDirectoryConfigurationUpdates)
updateFileSystemWindowsConfiguration_selfManagedActiveDirectoryConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration} -> Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe SelfManagedActiveDirectoryConfigurationUpdates
a -> UpdateFileSystemWindowsConfiguration
s {$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration = Maybe SelfManagedActiveDirectoryConfigurationUpdates
a} :: UpdateFileSystemWindowsConfiguration)

-- | Sets the target value for a file system\'s throughput capacity, in
-- MB\/s, that you are updating the file system to. Valid values are 8, 16,
-- 32, 64, 128, 256, 512, 1024, 2048. You cannot make a throughput capacity
-- update request if there is an existing throughput capacity update
-- request in progress. For more information, see
-- <https://docs.aws.amazon.com/fsx/latest/WindowsGuide/managing-throughput-capacity.html Managing Throughput Capacity>.
updateFileSystemWindowsConfiguration_throughputCapacity :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe Prelude.Natural)
updateFileSystemWindowsConfiguration_throughputCapacity :: Lens' UpdateFileSystemWindowsConfiguration (Maybe Natural)
updateFileSystemWindowsConfiguration_throughputCapacity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe Natural
throughputCapacity :: Maybe Natural
$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
throughputCapacity} -> Maybe Natural
throughputCapacity) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe Natural
a -> UpdateFileSystemWindowsConfiguration
s {$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: Maybe Natural
throughputCapacity = Maybe Natural
a} :: UpdateFileSystemWindowsConfiguration)

-- | The preferred start time to perform weekly maintenance, formatted
-- d:HH:MM in the UTC time zone. Where d is the weekday number, from 1
-- through 7, with 1 = Monday and 7 = Sunday.
updateFileSystemWindowsConfiguration_weeklyMaintenanceStartTime :: Lens.Lens' UpdateFileSystemWindowsConfiguration (Prelude.Maybe Prelude.Text)
updateFileSystemWindowsConfiguration_weeklyMaintenanceStartTime :: Lens' UpdateFileSystemWindowsConfiguration (Maybe Text)
updateFileSystemWindowsConfiguration_weeklyMaintenanceStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileSystemWindowsConfiguration' {Maybe Text
weeklyMaintenanceStartTime :: Maybe Text
$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
weeklyMaintenanceStartTime} -> Maybe Text
weeklyMaintenanceStartTime) (\s :: UpdateFileSystemWindowsConfiguration
s@UpdateFileSystemWindowsConfiguration' {} Maybe Text
a -> UpdateFileSystemWindowsConfiguration
s {$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: Maybe Text
weeklyMaintenanceStartTime = Maybe Text
a} :: UpdateFileSystemWindowsConfiguration)

instance
  Prelude.Hashable
    UpdateFileSystemWindowsConfiguration
  where
  hashWithSalt :: Int -> UpdateFileSystemWindowsConfiguration -> Int
hashWithSalt
    Int
_salt
    UpdateFileSystemWindowsConfiguration' {Maybe Natural
Maybe Text
Maybe SelfManagedActiveDirectoryConfigurationUpdates
Maybe WindowsAuditLogCreateConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
selfManagedActiveDirectoryConfiguration :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
auditLogConfiguration :: Maybe WindowsAuditLogCreateConfiguration
$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe SelfManagedActiveDirectoryConfigurationUpdates
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe WindowsAuditLogCreateConfiguration
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration
        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 SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration
        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
    UpdateFileSystemWindowsConfiguration
  where
  rnf :: UpdateFileSystemWindowsConfiguration -> ()
rnf UpdateFileSystemWindowsConfiguration' {Maybe Natural
Maybe Text
Maybe SelfManagedActiveDirectoryConfigurationUpdates
Maybe WindowsAuditLogCreateConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
selfManagedActiveDirectoryConfiguration :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
auditLogConfiguration :: Maybe WindowsAuditLogCreateConfiguration
$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe SelfManagedActiveDirectoryConfigurationUpdates
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe WindowsAuditLogCreateConfiguration
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe WindowsAuditLogCreateConfiguration
auditLogConfiguration
      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 SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration
      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
    UpdateFileSystemWindowsConfiguration
  where
  toJSON :: UpdateFileSystemWindowsConfiguration -> Value
toJSON UpdateFileSystemWindowsConfiguration' {Maybe Natural
Maybe Text
Maybe SelfManagedActiveDirectoryConfigurationUpdates
Maybe WindowsAuditLogCreateConfiguration
weeklyMaintenanceStartTime :: Maybe Text
throughputCapacity :: Maybe Natural
selfManagedActiveDirectoryConfiguration :: Maybe SelfManagedActiveDirectoryConfigurationUpdates
dailyAutomaticBackupStartTime :: Maybe Text
automaticBackupRetentionDays :: Maybe Natural
auditLogConfiguration :: Maybe WindowsAuditLogCreateConfiguration
$sel:weeklyMaintenanceStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:throughputCapacity:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:selfManagedActiveDirectoryConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe SelfManagedActiveDirectoryConfigurationUpdates
$sel:dailyAutomaticBackupStartTime:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Text
$sel:automaticBackupRetentionDays:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration -> Maybe Natural
$sel:auditLogConfiguration:UpdateFileSystemWindowsConfiguration' :: UpdateFileSystemWindowsConfiguration
-> Maybe WindowsAuditLogCreateConfiguration
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"AuditLogConfiguration" 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 WindowsAuditLogCreateConfiguration
auditLogConfiguration,
            (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
"SelfManagedActiveDirectoryConfiguration" 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 SelfManagedActiveDirectoryConfigurationUpdates
selfManagedActiveDirectoryConfiguration,
            (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
          ]
      )