{-# 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.MinimumEngineVersionPerAllowedValue where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data MinimumEngineVersionPerAllowedValue = MinimumEngineVersionPerAllowedValue'
{
MinimumEngineVersionPerAllowedValue -> Maybe Text
minimumEngineVersion :: Prelude.Maybe Prelude.Text,
MinimumEngineVersionPerAllowedValue -> Maybe Text
allowedValue :: Prelude.Maybe Prelude.Text
}
deriving (MinimumEngineVersionPerAllowedValue
-> MinimumEngineVersionPerAllowedValue -> Bool
(MinimumEngineVersionPerAllowedValue
-> MinimumEngineVersionPerAllowedValue -> Bool)
-> (MinimumEngineVersionPerAllowedValue
-> MinimumEngineVersionPerAllowedValue -> Bool)
-> Eq MinimumEngineVersionPerAllowedValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MinimumEngineVersionPerAllowedValue
-> MinimumEngineVersionPerAllowedValue -> Bool
$c/= :: MinimumEngineVersionPerAllowedValue
-> MinimumEngineVersionPerAllowedValue -> Bool
== :: MinimumEngineVersionPerAllowedValue
-> MinimumEngineVersionPerAllowedValue -> Bool
$c== :: MinimumEngineVersionPerAllowedValue
-> MinimumEngineVersionPerAllowedValue -> Bool
Prelude.Eq, ReadPrec [MinimumEngineVersionPerAllowedValue]
ReadPrec MinimumEngineVersionPerAllowedValue
Int -> ReadS MinimumEngineVersionPerAllowedValue
ReadS [MinimumEngineVersionPerAllowedValue]
(Int -> ReadS MinimumEngineVersionPerAllowedValue)
-> ReadS [MinimumEngineVersionPerAllowedValue]
-> ReadPrec MinimumEngineVersionPerAllowedValue
-> ReadPrec [MinimumEngineVersionPerAllowedValue]
-> Read MinimumEngineVersionPerAllowedValue
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MinimumEngineVersionPerAllowedValue]
$creadListPrec :: ReadPrec [MinimumEngineVersionPerAllowedValue]
readPrec :: ReadPrec MinimumEngineVersionPerAllowedValue
$creadPrec :: ReadPrec MinimumEngineVersionPerAllowedValue
readList :: ReadS [MinimumEngineVersionPerAllowedValue]
$creadList :: ReadS [MinimumEngineVersionPerAllowedValue]
readsPrec :: Int -> ReadS MinimumEngineVersionPerAllowedValue
$creadsPrec :: Int -> ReadS MinimumEngineVersionPerAllowedValue
Prelude.Read, Int -> MinimumEngineVersionPerAllowedValue -> ShowS
[MinimumEngineVersionPerAllowedValue] -> ShowS
MinimumEngineVersionPerAllowedValue -> String
(Int -> MinimumEngineVersionPerAllowedValue -> ShowS)
-> (MinimumEngineVersionPerAllowedValue -> String)
-> ([MinimumEngineVersionPerAllowedValue] -> ShowS)
-> Show MinimumEngineVersionPerAllowedValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MinimumEngineVersionPerAllowedValue] -> ShowS
$cshowList :: [MinimumEngineVersionPerAllowedValue] -> ShowS
show :: MinimumEngineVersionPerAllowedValue -> String
$cshow :: MinimumEngineVersionPerAllowedValue -> String
showsPrec :: Int -> MinimumEngineVersionPerAllowedValue -> ShowS
$cshowsPrec :: Int -> MinimumEngineVersionPerAllowedValue -> ShowS
Prelude.Show, (forall x.
MinimumEngineVersionPerAllowedValue
-> Rep MinimumEngineVersionPerAllowedValue x)
-> (forall x.
Rep MinimumEngineVersionPerAllowedValue x
-> MinimumEngineVersionPerAllowedValue)
-> Generic MinimumEngineVersionPerAllowedValue
forall x.
Rep MinimumEngineVersionPerAllowedValue x
-> MinimumEngineVersionPerAllowedValue
forall x.
MinimumEngineVersionPerAllowedValue
-> Rep MinimumEngineVersionPerAllowedValue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MinimumEngineVersionPerAllowedValue x
-> MinimumEngineVersionPerAllowedValue
$cfrom :: forall x.
MinimumEngineVersionPerAllowedValue
-> Rep MinimumEngineVersionPerAllowedValue x
Prelude.Generic)
newMinimumEngineVersionPerAllowedValue ::
MinimumEngineVersionPerAllowedValue
newMinimumEngineVersionPerAllowedValue :: MinimumEngineVersionPerAllowedValue
newMinimumEngineVersionPerAllowedValue =
MinimumEngineVersionPerAllowedValue' :: Maybe Text -> Maybe Text -> MinimumEngineVersionPerAllowedValue
MinimumEngineVersionPerAllowedValue'
{ $sel:minimumEngineVersion:MinimumEngineVersionPerAllowedValue' :: Maybe Text
minimumEngineVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:allowedValue:MinimumEngineVersionPerAllowedValue' :: Maybe Text
allowedValue = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
minimumEngineVersionPerAllowedValue_minimumEngineVersion :: Lens.Lens' MinimumEngineVersionPerAllowedValue (Prelude.Maybe Prelude.Text)
minimumEngineVersionPerAllowedValue_minimumEngineVersion :: (Maybe Text -> f (Maybe Text))
-> MinimumEngineVersionPerAllowedValue
-> f MinimumEngineVersionPerAllowedValue
minimumEngineVersionPerAllowedValue_minimumEngineVersion = (MinimumEngineVersionPerAllowedValue -> Maybe Text)
-> (MinimumEngineVersionPerAllowedValue
-> Maybe Text -> MinimumEngineVersionPerAllowedValue)
-> Lens
MinimumEngineVersionPerAllowedValue
MinimumEngineVersionPerAllowedValue
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MinimumEngineVersionPerAllowedValue' {Maybe Text
minimumEngineVersion :: Maybe Text
$sel:minimumEngineVersion:MinimumEngineVersionPerAllowedValue' :: MinimumEngineVersionPerAllowedValue -> Maybe Text
minimumEngineVersion} -> Maybe Text
minimumEngineVersion) (\s :: MinimumEngineVersionPerAllowedValue
s@MinimumEngineVersionPerAllowedValue' {} Maybe Text
a -> MinimumEngineVersionPerAllowedValue
s {$sel:minimumEngineVersion:MinimumEngineVersionPerAllowedValue' :: Maybe Text
minimumEngineVersion = Maybe Text
a} :: MinimumEngineVersionPerAllowedValue)
minimumEngineVersionPerAllowedValue_allowedValue :: Lens.Lens' MinimumEngineVersionPerAllowedValue (Prelude.Maybe Prelude.Text)
minimumEngineVersionPerAllowedValue_allowedValue :: (Maybe Text -> f (Maybe Text))
-> MinimumEngineVersionPerAllowedValue
-> f MinimumEngineVersionPerAllowedValue
minimumEngineVersionPerAllowedValue_allowedValue = (MinimumEngineVersionPerAllowedValue -> Maybe Text)
-> (MinimumEngineVersionPerAllowedValue
-> Maybe Text -> MinimumEngineVersionPerAllowedValue)
-> Lens
MinimumEngineVersionPerAllowedValue
MinimumEngineVersionPerAllowedValue
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MinimumEngineVersionPerAllowedValue' {Maybe Text
allowedValue :: Maybe Text
$sel:allowedValue:MinimumEngineVersionPerAllowedValue' :: MinimumEngineVersionPerAllowedValue -> Maybe Text
allowedValue} -> Maybe Text
allowedValue) (\s :: MinimumEngineVersionPerAllowedValue
s@MinimumEngineVersionPerAllowedValue' {} Maybe Text
a -> MinimumEngineVersionPerAllowedValue
s {$sel:allowedValue:MinimumEngineVersionPerAllowedValue' :: Maybe Text
allowedValue = Maybe Text
a} :: MinimumEngineVersionPerAllowedValue)
instance
Core.FromXML
MinimumEngineVersionPerAllowedValue
where
parseXML :: [Node] -> Either String MinimumEngineVersionPerAllowedValue
parseXML [Node]
x =
Maybe Text -> Maybe Text -> MinimumEngineVersionPerAllowedValue
MinimumEngineVersionPerAllowedValue'
(Maybe Text -> Maybe Text -> MinimumEngineVersionPerAllowedValue)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> MinimumEngineVersionPerAllowedValue)
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
"MinimumEngineVersion")
Either String (Maybe Text -> MinimumEngineVersionPerAllowedValue)
-> Either String (Maybe Text)
-> Either String MinimumEngineVersionPerAllowedValue
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
"AllowedValue")
instance
Prelude.Hashable
MinimumEngineVersionPerAllowedValue
instance
Prelude.NFData
MinimumEngineVersionPerAllowedValue