{-# 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.Neptune.Types.PendingModifiedValues
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Neptune.Types.PendingModifiedValues where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Neptune.Types.PendingCloudwatchLogsExports
import qualified Amazonka.Prelude as Prelude

-- | This data type is used as a response element in the ModifyDBInstance
-- action.
--
-- /See:/ 'newPendingModifiedValues' smart constructor.
data PendingModifiedValues = PendingModifiedValues'
  { -- | Indicates the database engine version.
    PendingModifiedValues -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
    -- | Not supported by Neptune.
    PendingModifiedValues -> Maybe Text
masterUserPassword :: Prelude.Maybe Prelude.Text,
    -- | The new DB subnet group for the DB instance.
    PendingModifiedValues -> Maybe Text
dbSubnetGroupName :: Prelude.Maybe Prelude.Text,
    -- | Specifies the new Provisioned IOPS value for the DB instance that will
    -- be applied or is currently being applied.
    PendingModifiedValues -> Maybe Int
iops :: Prelude.Maybe Prelude.Int,
    -- | Contains the new @DBInstanceClass@ for the DB instance that will be
    -- applied or is currently being applied.
    PendingModifiedValues -> Maybe Text
dbInstanceClass :: Prelude.Maybe Prelude.Text,
    -- | Not supported by Neptune.
    PendingModifiedValues -> Maybe Text
licenseModel :: Prelude.Maybe Prelude.Text,
    -- | Specifies the identifier of the CA certificate for the DB instance.
    PendingModifiedValues -> Maybe Text
cACertificateIdentifier :: Prelude.Maybe Prelude.Text,
    -- | Contains the new @DBInstanceIdentifier@ for the DB instance that will be
    -- applied or is currently being applied.
    PendingModifiedValues -> Maybe Text
dbInstanceIdentifier :: Prelude.Maybe Prelude.Text,
    -- | This @PendingCloudwatchLogsExports@ structure specifies pending changes
    -- to which CloudWatch logs are enabled and which are disabled.
    PendingModifiedValues -> Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports :: Prelude.Maybe PendingCloudwatchLogsExports,
    -- | Specifies the pending number of days for which automated backups are
    -- retained.
    PendingModifiedValues -> Maybe Int
backupRetentionPeriod :: Prelude.Maybe Prelude.Int,
    -- | Indicates that the Single-AZ DB instance is to change to a Multi-AZ
    -- deployment.
    PendingModifiedValues -> Maybe Bool
multiAZ :: Prelude.Maybe Prelude.Bool,
    -- | Contains the new @AllocatedStorage@ size for the DB instance that will
    -- be applied or is currently being applied.
    PendingModifiedValues -> Maybe Int
allocatedStorage :: Prelude.Maybe Prelude.Int,
    -- | Specifies the pending port for the DB instance.
    PendingModifiedValues -> Maybe Int
port :: Prelude.Maybe Prelude.Int,
    -- | Specifies the storage type to be associated with the DB instance.
    PendingModifiedValues -> Maybe Text
storageType :: Prelude.Maybe Prelude.Text
  }
  deriving (PendingModifiedValues -> PendingModifiedValues -> Bool
(PendingModifiedValues -> PendingModifiedValues -> Bool)
-> (PendingModifiedValues -> PendingModifiedValues -> Bool)
-> Eq PendingModifiedValues
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PendingModifiedValues -> PendingModifiedValues -> Bool
$c/= :: PendingModifiedValues -> PendingModifiedValues -> Bool
== :: PendingModifiedValues -> PendingModifiedValues -> Bool
$c== :: PendingModifiedValues -> PendingModifiedValues -> Bool
Prelude.Eq, ReadPrec [PendingModifiedValues]
ReadPrec PendingModifiedValues
Int -> ReadS PendingModifiedValues
ReadS [PendingModifiedValues]
(Int -> ReadS PendingModifiedValues)
-> ReadS [PendingModifiedValues]
-> ReadPrec PendingModifiedValues
-> ReadPrec [PendingModifiedValues]
-> Read PendingModifiedValues
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PendingModifiedValues]
$creadListPrec :: ReadPrec [PendingModifiedValues]
readPrec :: ReadPrec PendingModifiedValues
$creadPrec :: ReadPrec PendingModifiedValues
readList :: ReadS [PendingModifiedValues]
$creadList :: ReadS [PendingModifiedValues]
readsPrec :: Int -> ReadS PendingModifiedValues
$creadsPrec :: Int -> ReadS PendingModifiedValues
Prelude.Read, Int -> PendingModifiedValues -> ShowS
[PendingModifiedValues] -> ShowS
PendingModifiedValues -> String
(Int -> PendingModifiedValues -> ShowS)
-> (PendingModifiedValues -> String)
-> ([PendingModifiedValues] -> ShowS)
-> Show PendingModifiedValues
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PendingModifiedValues] -> ShowS
$cshowList :: [PendingModifiedValues] -> ShowS
show :: PendingModifiedValues -> String
$cshow :: PendingModifiedValues -> String
showsPrec :: Int -> PendingModifiedValues -> ShowS
$cshowsPrec :: Int -> PendingModifiedValues -> ShowS
Prelude.Show, (forall x. PendingModifiedValues -> Rep PendingModifiedValues x)
-> (forall x. Rep PendingModifiedValues x -> PendingModifiedValues)
-> Generic PendingModifiedValues
forall x. Rep PendingModifiedValues x -> PendingModifiedValues
forall x. PendingModifiedValues -> Rep PendingModifiedValues x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PendingModifiedValues x -> PendingModifiedValues
$cfrom :: forall x. PendingModifiedValues -> Rep PendingModifiedValues x
Prelude.Generic)

-- |
-- Create a value of 'PendingModifiedValues' 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:
--
-- 'engineVersion', 'pendingModifiedValues_engineVersion' - Indicates the database engine version.
--
-- 'masterUserPassword', 'pendingModifiedValues_masterUserPassword' - Not supported by Neptune.
--
-- 'dbSubnetGroupName', 'pendingModifiedValues_dbSubnetGroupName' - The new DB subnet group for the DB instance.
--
-- 'iops', 'pendingModifiedValues_iops' - Specifies the new Provisioned IOPS value for the DB instance that will
-- be applied or is currently being applied.
--
-- 'dbInstanceClass', 'pendingModifiedValues_dbInstanceClass' - Contains the new @DBInstanceClass@ for the DB instance that will be
-- applied or is currently being applied.
--
-- 'licenseModel', 'pendingModifiedValues_licenseModel' - Not supported by Neptune.
--
-- 'cACertificateIdentifier', 'pendingModifiedValues_cACertificateIdentifier' - Specifies the identifier of the CA certificate for the DB instance.
--
-- 'dbInstanceIdentifier', 'pendingModifiedValues_dbInstanceIdentifier' - Contains the new @DBInstanceIdentifier@ for the DB instance that will be
-- applied or is currently being applied.
--
-- 'pendingCloudwatchLogsExports', 'pendingModifiedValues_pendingCloudwatchLogsExports' - This @PendingCloudwatchLogsExports@ structure specifies pending changes
-- to which CloudWatch logs are enabled and which are disabled.
--
-- 'backupRetentionPeriod', 'pendingModifiedValues_backupRetentionPeriod' - Specifies the pending number of days for which automated backups are
-- retained.
--
-- 'multiAZ', 'pendingModifiedValues_multiAZ' - Indicates that the Single-AZ DB instance is to change to a Multi-AZ
-- deployment.
--
-- 'allocatedStorage', 'pendingModifiedValues_allocatedStorage' - Contains the new @AllocatedStorage@ size for the DB instance that will
-- be applied or is currently being applied.
--
-- 'port', 'pendingModifiedValues_port' - Specifies the pending port for the DB instance.
--
-- 'storageType', 'pendingModifiedValues_storageType' - Specifies the storage type to be associated with the DB instance.
newPendingModifiedValues ::
  PendingModifiedValues
newPendingModifiedValues :: PendingModifiedValues
newPendingModifiedValues =
  PendingModifiedValues' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe PendingCloudwatchLogsExports
-> Maybe Int
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> PendingModifiedValues
PendingModifiedValues'
    { $sel:engineVersion:PendingModifiedValues' :: Maybe Text
engineVersion =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:masterUserPassword:PendingModifiedValues' :: Maybe Text
masterUserPassword = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dbSubnetGroupName:PendingModifiedValues' :: Maybe Text
dbSubnetGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:iops:PendingModifiedValues' :: Maybe Int
iops = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:dbInstanceClass:PendingModifiedValues' :: Maybe Text
dbInstanceClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:licenseModel:PendingModifiedValues' :: Maybe Text
licenseModel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:cACertificateIdentifier:PendingModifiedValues' :: Maybe Text
cACertificateIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dbInstanceIdentifier:PendingModifiedValues' :: Maybe Text
dbInstanceIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pendingCloudwatchLogsExports:PendingModifiedValues' :: Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports = Maybe PendingCloudwatchLogsExports
forall a. Maybe a
Prelude.Nothing,
      $sel:backupRetentionPeriod:PendingModifiedValues' :: Maybe Int
backupRetentionPeriod = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:multiAZ:PendingModifiedValues' :: Maybe Bool
multiAZ = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:allocatedStorage:PendingModifiedValues' :: Maybe Int
allocatedStorage = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:port:PendingModifiedValues' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:storageType:PendingModifiedValues' :: Maybe Text
storageType = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Indicates the database engine version.
pendingModifiedValues_engineVersion :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_engineVersion :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_engineVersion = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:engineVersion:PendingModifiedValues' :: Maybe Text
engineVersion = Maybe Text
a} :: PendingModifiedValues)

-- | Not supported by Neptune.
pendingModifiedValues_masterUserPassword :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_masterUserPassword :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_masterUserPassword = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
masterUserPassword :: Maybe Text
$sel:masterUserPassword:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
masterUserPassword} -> Maybe Text
masterUserPassword) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:masterUserPassword:PendingModifiedValues' :: Maybe Text
masterUserPassword = Maybe Text
a} :: PendingModifiedValues)

-- | The new DB subnet group for the DB instance.
pendingModifiedValues_dbSubnetGroupName :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_dbSubnetGroupName :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_dbSubnetGroupName = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
dbSubnetGroupName :: Maybe Text
$sel:dbSubnetGroupName:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
dbSubnetGroupName} -> Maybe Text
dbSubnetGroupName) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:dbSubnetGroupName:PendingModifiedValues' :: Maybe Text
dbSubnetGroupName = Maybe Text
a} :: PendingModifiedValues)

-- | Specifies the new Provisioned IOPS value for the DB instance that will
-- be applied or is currently being applied.
pendingModifiedValues_iops :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Int)
pendingModifiedValues_iops :: (Maybe Int -> f (Maybe Int))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_iops = (PendingModifiedValues -> Maybe Int)
-> (PendingModifiedValues -> Maybe Int -> PendingModifiedValues)
-> Lens
     PendingModifiedValues PendingModifiedValues (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Int
iops :: Maybe Int
$sel:iops:PendingModifiedValues' :: PendingModifiedValues -> Maybe Int
iops} -> Maybe Int
iops) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Int
a -> PendingModifiedValues
s {$sel:iops:PendingModifiedValues' :: Maybe Int
iops = Maybe Int
a} :: PendingModifiedValues)

-- | Contains the new @DBInstanceClass@ for the DB instance that will be
-- applied or is currently being applied.
pendingModifiedValues_dbInstanceClass :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_dbInstanceClass :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_dbInstanceClass = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
dbInstanceClass :: Maybe Text
$sel:dbInstanceClass:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
dbInstanceClass} -> Maybe Text
dbInstanceClass) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:dbInstanceClass:PendingModifiedValues' :: Maybe Text
dbInstanceClass = Maybe Text
a} :: PendingModifiedValues)

-- | Not supported by Neptune.
pendingModifiedValues_licenseModel :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_licenseModel :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_licenseModel = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
licenseModel :: Maybe Text
$sel:licenseModel:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
licenseModel} -> Maybe Text
licenseModel) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:licenseModel:PendingModifiedValues' :: Maybe Text
licenseModel = Maybe Text
a} :: PendingModifiedValues)

-- | Specifies the identifier of the CA certificate for the DB instance.
pendingModifiedValues_cACertificateIdentifier :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_cACertificateIdentifier :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_cACertificateIdentifier = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
cACertificateIdentifier :: Maybe Text
$sel:cACertificateIdentifier:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
cACertificateIdentifier} -> Maybe Text
cACertificateIdentifier) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:cACertificateIdentifier:PendingModifiedValues' :: Maybe Text
cACertificateIdentifier = Maybe Text
a} :: PendingModifiedValues)

-- | Contains the new @DBInstanceIdentifier@ for the DB instance that will be
-- applied or is currently being applied.
pendingModifiedValues_dbInstanceIdentifier :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_dbInstanceIdentifier :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_dbInstanceIdentifier = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
dbInstanceIdentifier :: Maybe Text
$sel:dbInstanceIdentifier:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
dbInstanceIdentifier} -> Maybe Text
dbInstanceIdentifier) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:dbInstanceIdentifier:PendingModifiedValues' :: Maybe Text
dbInstanceIdentifier = Maybe Text
a} :: PendingModifiedValues)

-- | This @PendingCloudwatchLogsExports@ structure specifies pending changes
-- to which CloudWatch logs are enabled and which are disabled.
pendingModifiedValues_pendingCloudwatchLogsExports :: Lens.Lens' PendingModifiedValues (Prelude.Maybe PendingCloudwatchLogsExports)
pendingModifiedValues_pendingCloudwatchLogsExports :: (Maybe PendingCloudwatchLogsExports
 -> f (Maybe PendingCloudwatchLogsExports))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_pendingCloudwatchLogsExports = (PendingModifiedValues -> Maybe PendingCloudwatchLogsExports)
-> (PendingModifiedValues
    -> Maybe PendingCloudwatchLogsExports -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe PendingCloudwatchLogsExports)
     (Maybe PendingCloudwatchLogsExports)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports :: Maybe PendingCloudwatchLogsExports
$sel:pendingCloudwatchLogsExports:PendingModifiedValues' :: PendingModifiedValues -> Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports} -> Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe PendingCloudwatchLogsExports
a -> PendingModifiedValues
s {$sel:pendingCloudwatchLogsExports:PendingModifiedValues' :: Maybe PendingCloudwatchLogsExports
pendingCloudwatchLogsExports = Maybe PendingCloudwatchLogsExports
a} :: PendingModifiedValues)

-- | Specifies the pending number of days for which automated backups are
-- retained.
pendingModifiedValues_backupRetentionPeriod :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Int)
pendingModifiedValues_backupRetentionPeriod :: (Maybe Int -> f (Maybe Int))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_backupRetentionPeriod = (PendingModifiedValues -> Maybe Int)
-> (PendingModifiedValues -> Maybe Int -> PendingModifiedValues)
-> Lens
     PendingModifiedValues PendingModifiedValues (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Int
backupRetentionPeriod :: Maybe Int
$sel:backupRetentionPeriod:PendingModifiedValues' :: PendingModifiedValues -> Maybe Int
backupRetentionPeriod} -> Maybe Int
backupRetentionPeriod) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Int
a -> PendingModifiedValues
s {$sel:backupRetentionPeriod:PendingModifiedValues' :: Maybe Int
backupRetentionPeriod = Maybe Int
a} :: PendingModifiedValues)

-- | Indicates that the Single-AZ DB instance is to change to a Multi-AZ
-- deployment.
pendingModifiedValues_multiAZ :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Bool)
pendingModifiedValues_multiAZ :: (Maybe Bool -> f (Maybe Bool))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_multiAZ = (PendingModifiedValues -> Maybe Bool)
-> (PendingModifiedValues -> Maybe Bool -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Bool
multiAZ :: Maybe Bool
$sel:multiAZ:PendingModifiedValues' :: PendingModifiedValues -> Maybe Bool
multiAZ} -> Maybe Bool
multiAZ) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Bool
a -> PendingModifiedValues
s {$sel:multiAZ:PendingModifiedValues' :: Maybe Bool
multiAZ = Maybe Bool
a} :: PendingModifiedValues)

-- | Contains the new @AllocatedStorage@ size for the DB instance that will
-- be applied or is currently being applied.
pendingModifiedValues_allocatedStorage :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Int)
pendingModifiedValues_allocatedStorage :: (Maybe Int -> f (Maybe Int))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_allocatedStorage = (PendingModifiedValues -> Maybe Int)
-> (PendingModifiedValues -> Maybe Int -> PendingModifiedValues)
-> Lens
     PendingModifiedValues PendingModifiedValues (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Int
allocatedStorage :: Maybe Int
$sel:allocatedStorage:PendingModifiedValues' :: PendingModifiedValues -> Maybe Int
allocatedStorage} -> Maybe Int
allocatedStorage) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Int
a -> PendingModifiedValues
s {$sel:allocatedStorage:PendingModifiedValues' :: Maybe Int
allocatedStorage = Maybe Int
a} :: PendingModifiedValues)

-- | Specifies the pending port for the DB instance.
pendingModifiedValues_port :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Int)
pendingModifiedValues_port :: (Maybe Int -> f (Maybe Int))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_port = (PendingModifiedValues -> Maybe Int)
-> (PendingModifiedValues -> Maybe Int -> PendingModifiedValues)
-> Lens
     PendingModifiedValues PendingModifiedValues (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Int
port :: Maybe Int
$sel:port:PendingModifiedValues' :: PendingModifiedValues -> Maybe Int
port} -> Maybe Int
port) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Int
a -> PendingModifiedValues
s {$sel:port:PendingModifiedValues' :: Maybe Int
port = Maybe Int
a} :: PendingModifiedValues)

-- | Specifies the storage type to be associated with the DB instance.
pendingModifiedValues_storageType :: Lens.Lens' PendingModifiedValues (Prelude.Maybe Prelude.Text)
pendingModifiedValues_storageType :: (Maybe Text -> f (Maybe Text))
-> PendingModifiedValues -> f PendingModifiedValues
pendingModifiedValues_storageType = (PendingModifiedValues -> Maybe Text)
-> (PendingModifiedValues -> Maybe Text -> PendingModifiedValues)
-> Lens
     PendingModifiedValues
     PendingModifiedValues
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PendingModifiedValues' {Maybe Text
storageType :: Maybe Text
$sel:storageType:PendingModifiedValues' :: PendingModifiedValues -> Maybe Text
storageType} -> Maybe Text
storageType) (\s :: PendingModifiedValues
s@PendingModifiedValues' {} Maybe Text
a -> PendingModifiedValues
s {$sel:storageType:PendingModifiedValues' :: Maybe Text
storageType = Maybe Text
a} :: PendingModifiedValues)

instance Core.FromXML PendingModifiedValues where
  parseXML :: [Node] -> Either String PendingModifiedValues
parseXML [Node]
x =
    Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe PendingCloudwatchLogsExports
-> Maybe Int
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> PendingModifiedValues
PendingModifiedValues'
      (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe PendingCloudwatchLogsExports
 -> Maybe Int
 -> Maybe Bool
 -> Maybe Int
 -> Maybe Int
 -> Maybe Text
 -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe PendingCloudwatchLogsExports
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EngineVersion")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe PendingCloudwatchLogsExports
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe PendingCloudwatchLogsExports
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MasterUserPassword")
      Either
  String
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe PendingCloudwatchLogsExports
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe PendingCloudwatchLogsExports
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBSubnetGroupName")
      Either
  String
  (Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe PendingCloudwatchLogsExports
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe PendingCloudwatchLogsExports
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Iops")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe PendingCloudwatchLogsExports
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe PendingCloudwatchLogsExports
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBInstanceClass")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe PendingCloudwatchLogsExports
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe PendingCloudwatchLogsExports
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"LicenseModel")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe PendingCloudwatchLogsExports
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe PendingCloudwatchLogsExports
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CACertificateIdentifier")
      Either
  String
  (Maybe Text
   -> Maybe PendingCloudwatchLogsExports
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe PendingCloudwatchLogsExports
      -> Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBInstanceIdentifier")
      Either
  String
  (Maybe PendingCloudwatchLogsExports
   -> Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe PendingCloudwatchLogsExports)
-> Either
     String
     (Maybe Int
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node]
-> Text -> Either String (Maybe PendingCloudwatchLogsExports)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PendingCloudwatchLogsExports")
      Either
  String
  (Maybe Int
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> PendingModifiedValues)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe Bool
      -> Maybe Int -> Maybe Int -> Maybe Text -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"BackupRetentionPeriod")
      Either
  String
  (Maybe Bool
   -> Maybe Int -> Maybe Int -> Maybe Text -> PendingModifiedValues)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Int -> Maybe Int -> Maybe Text -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MultiAZ")
      Either
  String
  (Maybe Int -> Maybe Int -> Maybe Text -> PendingModifiedValues)
-> Either String (Maybe Int)
-> Either String (Maybe Int -> Maybe Text -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AllocatedStorage")
      Either String (Maybe Int -> Maybe Text -> PendingModifiedValues)
-> Either String (Maybe Int)
-> Either String (Maybe Text -> PendingModifiedValues)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Port")
      Either String (Maybe Text -> PendingModifiedValues)
-> Either String (Maybe Text)
-> Either String PendingModifiedValues
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"StorageType")

instance Prelude.Hashable PendingModifiedValues

instance Prelude.NFData PendingModifiedValues