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