{-# 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.UpdateFileCacheLustreConfiguration where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data UpdateFileCacheLustreConfiguration = UpdateFileCacheLustreConfiguration'
{ UpdateFileCacheLustreConfiguration -> Maybe Text
weeklyMaintenanceStartTime :: Prelude.Maybe Prelude.Text
}
deriving (UpdateFileCacheLustreConfiguration
-> UpdateFileCacheLustreConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFileCacheLustreConfiguration
-> UpdateFileCacheLustreConfiguration -> Bool
$c/= :: UpdateFileCacheLustreConfiguration
-> UpdateFileCacheLustreConfiguration -> Bool
== :: UpdateFileCacheLustreConfiguration
-> UpdateFileCacheLustreConfiguration -> Bool
$c== :: UpdateFileCacheLustreConfiguration
-> UpdateFileCacheLustreConfiguration -> Bool
Prelude.Eq, ReadPrec [UpdateFileCacheLustreConfiguration]
ReadPrec UpdateFileCacheLustreConfiguration
Int -> ReadS UpdateFileCacheLustreConfiguration
ReadS [UpdateFileCacheLustreConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateFileCacheLustreConfiguration]
$creadListPrec :: ReadPrec [UpdateFileCacheLustreConfiguration]
readPrec :: ReadPrec UpdateFileCacheLustreConfiguration
$creadPrec :: ReadPrec UpdateFileCacheLustreConfiguration
readList :: ReadS [UpdateFileCacheLustreConfiguration]
$creadList :: ReadS [UpdateFileCacheLustreConfiguration]
readsPrec :: Int -> ReadS UpdateFileCacheLustreConfiguration
$creadsPrec :: Int -> ReadS UpdateFileCacheLustreConfiguration
Prelude.Read, Int -> UpdateFileCacheLustreConfiguration -> ShowS
[UpdateFileCacheLustreConfiguration] -> ShowS
UpdateFileCacheLustreConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFileCacheLustreConfiguration] -> ShowS
$cshowList :: [UpdateFileCacheLustreConfiguration] -> ShowS
show :: UpdateFileCacheLustreConfiguration -> String
$cshow :: UpdateFileCacheLustreConfiguration -> String
showsPrec :: Int -> UpdateFileCacheLustreConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateFileCacheLustreConfiguration -> ShowS
Prelude.Show, forall x.
Rep UpdateFileCacheLustreConfiguration x
-> UpdateFileCacheLustreConfiguration
forall x.
UpdateFileCacheLustreConfiguration
-> Rep UpdateFileCacheLustreConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateFileCacheLustreConfiguration x
-> UpdateFileCacheLustreConfiguration
$cfrom :: forall x.
UpdateFileCacheLustreConfiguration
-> Rep UpdateFileCacheLustreConfiguration x
Prelude.Generic)
newUpdateFileCacheLustreConfiguration ::
UpdateFileCacheLustreConfiguration
newUpdateFileCacheLustreConfiguration :: UpdateFileCacheLustreConfiguration
newUpdateFileCacheLustreConfiguration =
UpdateFileCacheLustreConfiguration'
{ $sel:weeklyMaintenanceStartTime:UpdateFileCacheLustreConfiguration' :: Maybe Text
weeklyMaintenanceStartTime =
forall a. Maybe a
Prelude.Nothing
}
updateFileCacheLustreConfiguration_weeklyMaintenanceStartTime :: Lens.Lens' UpdateFileCacheLustreConfiguration (Prelude.Maybe Prelude.Text)
updateFileCacheLustreConfiguration_weeklyMaintenanceStartTime :: Lens' UpdateFileCacheLustreConfiguration (Maybe Text)
updateFileCacheLustreConfiguration_weeklyMaintenanceStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFileCacheLustreConfiguration' {Maybe Text
weeklyMaintenanceStartTime :: Maybe Text
$sel:weeklyMaintenanceStartTime:UpdateFileCacheLustreConfiguration' :: UpdateFileCacheLustreConfiguration -> Maybe Text
weeklyMaintenanceStartTime} -> Maybe Text
weeklyMaintenanceStartTime) (\s :: UpdateFileCacheLustreConfiguration
s@UpdateFileCacheLustreConfiguration' {} Maybe Text
a -> UpdateFileCacheLustreConfiguration
s {$sel:weeklyMaintenanceStartTime:UpdateFileCacheLustreConfiguration' :: Maybe Text
weeklyMaintenanceStartTime = Maybe Text
a} :: UpdateFileCacheLustreConfiguration)
instance
Prelude.Hashable
UpdateFileCacheLustreConfiguration
where
hashWithSalt :: Int -> UpdateFileCacheLustreConfiguration -> Int
hashWithSalt
Int
_salt
UpdateFileCacheLustreConfiguration' {Maybe Text
weeklyMaintenanceStartTime :: Maybe Text
$sel:weeklyMaintenanceStartTime:UpdateFileCacheLustreConfiguration' :: UpdateFileCacheLustreConfiguration -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
weeklyMaintenanceStartTime
instance
Prelude.NFData
UpdateFileCacheLustreConfiguration
where
rnf :: UpdateFileCacheLustreConfiguration -> ()
rnf UpdateFileCacheLustreConfiguration' {Maybe Text
weeklyMaintenanceStartTime :: Maybe Text
$sel:weeklyMaintenanceStartTime:UpdateFileCacheLustreConfiguration' :: UpdateFileCacheLustreConfiguration -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
weeklyMaintenanceStartTime
instance
Data.ToJSON
UpdateFileCacheLustreConfiguration
where
toJSON :: UpdateFileCacheLustreConfiguration -> Value
toJSON UpdateFileCacheLustreConfiguration' {Maybe Text
weeklyMaintenanceStartTime :: Maybe Text
$sel:weeklyMaintenanceStartTime:UpdateFileCacheLustreConfiguration' :: UpdateFileCacheLustreConfiguration -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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
]
)