{-# 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.RDS.Types.ClusterPendingModifiedValues 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
import Amazonka.RDS.Types.PendingCloudwatchLogsExports
data ClusterPendingModifiedValues = ClusterPendingModifiedValues'
{
ClusterPendingModifiedValues -> Maybe Int
allocatedStorage :: Prelude.Maybe Prelude.Int,
ClusterPendingModifiedValues -> Maybe Int
backupRetentionPeriod :: Prelude.Maybe Prelude.Int,
ClusterPendingModifiedValues -> Maybe Text
dbClusterIdentifier :: Prelude.Maybe Prelude.Text,
ClusterPendingModifiedValues -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
ClusterPendingModifiedValues -> Maybe Bool
iAMDatabaseAuthenticationEnabled :: Prelude.Maybe Prelude.Bool,
ClusterPendingModifiedValues -> Maybe Int
iops :: Prelude.Maybe Prelude.Int,
ClusterPendingModifiedValues -> Maybe Text
masterUserPassword :: Prelude.Maybe Prelude.Text,
ClusterPendingModifiedValues -> Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports :: Prelude.Maybe PendingCloudwatchLogsExports
}
deriving (ClusterPendingModifiedValues
-> ClusterPendingModifiedValues -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClusterPendingModifiedValues
-> ClusterPendingModifiedValues -> Bool
$c/= :: ClusterPendingModifiedValues
-> ClusterPendingModifiedValues -> Bool
== :: ClusterPendingModifiedValues
-> ClusterPendingModifiedValues -> Bool
$c== :: ClusterPendingModifiedValues
-> ClusterPendingModifiedValues -> Bool
Prelude.Eq, ReadPrec [ClusterPendingModifiedValues]
ReadPrec ClusterPendingModifiedValues
Int -> ReadS ClusterPendingModifiedValues
ReadS [ClusterPendingModifiedValues]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ClusterPendingModifiedValues]
$creadListPrec :: ReadPrec [ClusterPendingModifiedValues]
readPrec :: ReadPrec ClusterPendingModifiedValues
$creadPrec :: ReadPrec ClusterPendingModifiedValues
readList :: ReadS [ClusterPendingModifiedValues]
$creadList :: ReadS [ClusterPendingModifiedValues]
readsPrec :: Int -> ReadS ClusterPendingModifiedValues
$creadsPrec :: Int -> ReadS ClusterPendingModifiedValues
Prelude.Read, Int -> ClusterPendingModifiedValues -> ShowS
[ClusterPendingModifiedValues] -> ShowS
ClusterPendingModifiedValues -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClusterPendingModifiedValues] -> ShowS
$cshowList :: [ClusterPendingModifiedValues] -> ShowS
show :: ClusterPendingModifiedValues -> String
$cshow :: ClusterPendingModifiedValues -> String
showsPrec :: Int -> ClusterPendingModifiedValues -> ShowS
$cshowsPrec :: Int -> ClusterPendingModifiedValues -> ShowS
Prelude.Show, forall x.
Rep ClusterPendingModifiedValues x -> ClusterPendingModifiedValues
forall x.
ClusterPendingModifiedValues -> Rep ClusterPendingModifiedValues x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ClusterPendingModifiedValues x -> ClusterPendingModifiedValues
$cfrom :: forall x.
ClusterPendingModifiedValues -> Rep ClusterPendingModifiedValues x
Prelude.Generic)
newClusterPendingModifiedValues ::
ClusterPendingModifiedValues
newClusterPendingModifiedValues :: ClusterPendingModifiedValues
newClusterPendingModifiedValues =
ClusterPendingModifiedValues'
{ $sel:allocatedStorage:ClusterPendingModifiedValues' :: Maybe Int
allocatedStorage =
forall a. Maybe a
Prelude.Nothing,
$sel:backupRetentionPeriod:ClusterPendingModifiedValues' :: Maybe Int
backupRetentionPeriod = forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterIdentifier:ClusterPendingModifiedValues' :: Maybe Text
dbClusterIdentifier = forall a. Maybe a
Prelude.Nothing,
$sel:engineVersion:ClusterPendingModifiedValues' :: Maybe Text
engineVersion = forall a. Maybe a
Prelude.Nothing,
$sel:iAMDatabaseAuthenticationEnabled:ClusterPendingModifiedValues' :: Maybe Bool
iAMDatabaseAuthenticationEnabled =
forall a. Maybe a
Prelude.Nothing,
$sel:iops:ClusterPendingModifiedValues' :: Maybe Int
iops = forall a. Maybe a
Prelude.Nothing,
$sel:masterUserPassword:ClusterPendingModifiedValues' :: Maybe Text
masterUserPassword = forall a. Maybe a
Prelude.Nothing,
$sel:pendingCloudwatchLogsExports:ClusterPendingModifiedValues' :: Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports =
forall a. Maybe a
Prelude.Nothing
}
clusterPendingModifiedValues_allocatedStorage :: Lens.Lens' ClusterPendingModifiedValues (Prelude.Maybe Prelude.Int)
clusterPendingModifiedValues_allocatedStorage :: Lens' ClusterPendingModifiedValues (Maybe Int)
clusterPendingModifiedValues_allocatedStorage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterPendingModifiedValues' {Maybe Int
allocatedStorage :: Maybe Int
$sel:allocatedStorage:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Int
allocatedStorage} -> Maybe Int
allocatedStorage) (\s :: ClusterPendingModifiedValues
s@ClusterPendingModifiedValues' {} Maybe Int
a -> ClusterPendingModifiedValues
s {$sel:allocatedStorage:ClusterPendingModifiedValues' :: Maybe Int
allocatedStorage = Maybe Int
a} :: ClusterPendingModifiedValues)
clusterPendingModifiedValues_backupRetentionPeriod :: Lens.Lens' ClusterPendingModifiedValues (Prelude.Maybe Prelude.Int)
clusterPendingModifiedValues_backupRetentionPeriod :: Lens' ClusterPendingModifiedValues (Maybe Int)
clusterPendingModifiedValues_backupRetentionPeriod = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterPendingModifiedValues' {Maybe Int
backupRetentionPeriod :: Maybe Int
$sel:backupRetentionPeriod:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Int
backupRetentionPeriod} -> Maybe Int
backupRetentionPeriod) (\s :: ClusterPendingModifiedValues
s@ClusterPendingModifiedValues' {} Maybe Int
a -> ClusterPendingModifiedValues
s {$sel:backupRetentionPeriod:ClusterPendingModifiedValues' :: Maybe Int
backupRetentionPeriod = Maybe Int
a} :: ClusterPendingModifiedValues)
clusterPendingModifiedValues_dbClusterIdentifier :: Lens.Lens' ClusterPendingModifiedValues (Prelude.Maybe Prelude.Text)
clusterPendingModifiedValues_dbClusterIdentifier :: Lens' ClusterPendingModifiedValues (Maybe Text)
clusterPendingModifiedValues_dbClusterIdentifier = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterPendingModifiedValues' {Maybe Text
dbClusterIdentifier :: Maybe Text
$sel:dbClusterIdentifier:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Text
dbClusterIdentifier} -> Maybe Text
dbClusterIdentifier) (\s :: ClusterPendingModifiedValues
s@ClusterPendingModifiedValues' {} Maybe Text
a -> ClusterPendingModifiedValues
s {$sel:dbClusterIdentifier:ClusterPendingModifiedValues' :: Maybe Text
dbClusterIdentifier = Maybe Text
a} :: ClusterPendingModifiedValues)
clusterPendingModifiedValues_engineVersion :: Lens.Lens' ClusterPendingModifiedValues (Prelude.Maybe Prelude.Text)
clusterPendingModifiedValues_engineVersion :: Lens' ClusterPendingModifiedValues (Maybe Text)
clusterPendingModifiedValues_engineVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterPendingModifiedValues' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: ClusterPendingModifiedValues
s@ClusterPendingModifiedValues' {} Maybe Text
a -> ClusterPendingModifiedValues
s {$sel:engineVersion:ClusterPendingModifiedValues' :: Maybe Text
engineVersion = Maybe Text
a} :: ClusterPendingModifiedValues)
clusterPendingModifiedValues_iAMDatabaseAuthenticationEnabled :: Lens.Lens' ClusterPendingModifiedValues (Prelude.Maybe Prelude.Bool)
clusterPendingModifiedValues_iAMDatabaseAuthenticationEnabled :: Lens' ClusterPendingModifiedValues (Maybe Bool)
clusterPendingModifiedValues_iAMDatabaseAuthenticationEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterPendingModifiedValues' {Maybe Bool
iAMDatabaseAuthenticationEnabled :: Maybe Bool
$sel:iAMDatabaseAuthenticationEnabled:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Bool
iAMDatabaseAuthenticationEnabled} -> Maybe Bool
iAMDatabaseAuthenticationEnabled) (\s :: ClusterPendingModifiedValues
s@ClusterPendingModifiedValues' {} Maybe Bool
a -> ClusterPendingModifiedValues
s {$sel:iAMDatabaseAuthenticationEnabled:ClusterPendingModifiedValues' :: Maybe Bool
iAMDatabaseAuthenticationEnabled = Maybe Bool
a} :: ClusterPendingModifiedValues)
clusterPendingModifiedValues_iops :: Lens.Lens' ClusterPendingModifiedValues (Prelude.Maybe Prelude.Int)
clusterPendingModifiedValues_iops :: Lens' ClusterPendingModifiedValues (Maybe Int)
clusterPendingModifiedValues_iops = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterPendingModifiedValues' {Maybe Int
iops :: Maybe Int
$sel:iops:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Int
iops} -> Maybe Int
iops) (\s :: ClusterPendingModifiedValues
s@ClusterPendingModifiedValues' {} Maybe Int
a -> ClusterPendingModifiedValues
s {$sel:iops:ClusterPendingModifiedValues' :: Maybe Int
iops = Maybe Int
a} :: ClusterPendingModifiedValues)
clusterPendingModifiedValues_masterUserPassword :: Lens.Lens' ClusterPendingModifiedValues (Prelude.Maybe Prelude.Text)
clusterPendingModifiedValues_masterUserPassword :: Lens' ClusterPendingModifiedValues (Maybe Text)
clusterPendingModifiedValues_masterUserPassword = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterPendingModifiedValues' {Maybe Text
masterUserPassword :: Maybe Text
$sel:masterUserPassword:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Text
masterUserPassword} -> Maybe Text
masterUserPassword) (\s :: ClusterPendingModifiedValues
s@ClusterPendingModifiedValues' {} Maybe Text
a -> ClusterPendingModifiedValues
s {$sel:masterUserPassword:ClusterPendingModifiedValues' :: Maybe Text
masterUserPassword = Maybe Text
a} :: ClusterPendingModifiedValues)
clusterPendingModifiedValues_pendingCloudwatchLogsExports :: Lens.Lens' ClusterPendingModifiedValues (Prelude.Maybe PendingCloudwatchLogsExports)
clusterPendingModifiedValues_pendingCloudwatchLogsExports :: Lens'
ClusterPendingModifiedValues (Maybe PendingCloudwatchLogsExports)
clusterPendingModifiedValues_pendingCloudwatchLogsExports = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClusterPendingModifiedValues' {Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports :: Maybe PendingCloudwatchLogsExports
$sel:pendingCloudwatchLogsExports:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports} -> Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports) (\s :: ClusterPendingModifiedValues
s@ClusterPendingModifiedValues' {} Maybe PendingCloudwatchLogsExports
a -> ClusterPendingModifiedValues
s {$sel:pendingCloudwatchLogsExports:ClusterPendingModifiedValues' :: Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports = Maybe PendingCloudwatchLogsExports
a} :: ClusterPendingModifiedValues)
instance Data.FromXML ClusterPendingModifiedValues where
parseXML :: [Node] -> Either String ClusterPendingModifiedValues
parseXML [Node]
x =
Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe PendingCloudwatchLogsExports
-> ClusterPendingModifiedValues
ClusterPendingModifiedValues'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"AllocatedStorage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"BackupRetentionPeriod")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"DBClusterIdentifier")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"EngineVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"IAMDatabaseAuthenticationEnabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Iops")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"MasterUserPassword")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"PendingCloudwatchLogsExports")
instance
Prelude.Hashable
ClusterPendingModifiedValues
where
hashWithSalt :: Int -> ClusterPendingModifiedValues -> Int
hashWithSalt Int
_salt ClusterPendingModifiedValues' {Maybe Bool
Maybe Int
Maybe Text
Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports :: Maybe PendingCloudwatchLogsExports
masterUserPassword :: Maybe Text
iops :: Maybe Int
iAMDatabaseAuthenticationEnabled :: Maybe Bool
engineVersion :: Maybe Text
dbClusterIdentifier :: Maybe Text
backupRetentionPeriod :: Maybe Int
allocatedStorage :: Maybe Int
$sel:pendingCloudwatchLogsExports:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe PendingCloudwatchLogsExports
$sel:masterUserPassword:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Text
$sel:iops:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Int
$sel:iAMDatabaseAuthenticationEnabled:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Bool
$sel:engineVersion:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Text
$sel:dbClusterIdentifier:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Text
$sel:backupRetentionPeriod:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Int
$sel:allocatedStorage:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Int
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
allocatedStorage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
backupRetentionPeriod
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dbClusterIdentifier
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
engineVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
iAMDatabaseAuthenticationEnabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
iops
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
masterUserPassword
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports
instance Prelude.NFData ClusterPendingModifiedValues where
rnf :: ClusterPendingModifiedValues -> ()
rnf ClusterPendingModifiedValues' {Maybe Bool
Maybe Int
Maybe Text
Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports :: Maybe PendingCloudwatchLogsExports
masterUserPassword :: Maybe Text
iops :: Maybe Int
iAMDatabaseAuthenticationEnabled :: Maybe Bool
engineVersion :: Maybe Text
dbClusterIdentifier :: Maybe Text
backupRetentionPeriod :: Maybe Int
allocatedStorage :: Maybe Int
$sel:pendingCloudwatchLogsExports:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe PendingCloudwatchLogsExports
$sel:masterUserPassword:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Text
$sel:iops:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Int
$sel:iAMDatabaseAuthenticationEnabled:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Bool
$sel:engineVersion:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Text
$sel:dbClusterIdentifier:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Text
$sel:backupRetentionPeriod:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Int
$sel:allocatedStorage:ClusterPendingModifiedValues' :: ClusterPendingModifiedValues -> Maybe Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
allocatedStorage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
backupRetentionPeriod
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dbClusterIdentifier
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
engineVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
iAMDatabaseAuthenticationEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
iops
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
masterUserPassword
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports