module Stratosphere.RDS.DBInstance.ProcessorFeatureProperty (
        ProcessorFeatureProperty(..), mkProcessorFeatureProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProcessorFeatureProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-processorfeature.html>
    ProcessorFeatureProperty {ProcessorFeatureProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-processorfeature.html#cfn-rds-dbinstance-processorfeature-name>
                              ProcessorFeatureProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-processorfeature.html#cfn-rds-dbinstance-processorfeature-value>
                              ProcessorFeatureProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ProcessorFeatureProperty -> ProcessorFeatureProperty -> Bool
(ProcessorFeatureProperty -> ProcessorFeatureProperty -> Bool)
-> (ProcessorFeatureProperty -> ProcessorFeatureProperty -> Bool)
-> Eq ProcessorFeatureProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProcessorFeatureProperty -> ProcessorFeatureProperty -> Bool
== :: ProcessorFeatureProperty -> ProcessorFeatureProperty -> Bool
$c/= :: ProcessorFeatureProperty -> ProcessorFeatureProperty -> Bool
/= :: ProcessorFeatureProperty -> ProcessorFeatureProperty -> Bool
Prelude.Eq, Int -> ProcessorFeatureProperty -> ShowS
[ProcessorFeatureProperty] -> ShowS
ProcessorFeatureProperty -> String
(Int -> ProcessorFeatureProperty -> ShowS)
-> (ProcessorFeatureProperty -> String)
-> ([ProcessorFeatureProperty] -> ShowS)
-> Show ProcessorFeatureProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProcessorFeatureProperty -> ShowS
showsPrec :: Int -> ProcessorFeatureProperty -> ShowS
$cshow :: ProcessorFeatureProperty -> String
show :: ProcessorFeatureProperty -> String
$cshowList :: [ProcessorFeatureProperty] -> ShowS
showList :: [ProcessorFeatureProperty] -> ShowS
Prelude.Show)
mkProcessorFeatureProperty :: ProcessorFeatureProperty
mkProcessorFeatureProperty :: ProcessorFeatureProperty
mkProcessorFeatureProperty
  = ProcessorFeatureProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProcessorFeatureProperty where
  toResourceProperties :: ProcessorFeatureProperty -> ResourceProperties
toResourceProperties ProcessorFeatureProperty {Maybe (Value Text)
()
haddock_workaround_ :: ProcessorFeatureProperty -> ()
name :: ProcessorFeatureProperty -> Maybe (Value Text)
value :: ProcessorFeatureProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::RDS::DBInstance.ProcessorFeature",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name,
                            Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Value" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
value])}
instance JSON.ToJSON ProcessorFeatureProperty where
  toJSON :: ProcessorFeatureProperty -> Value
toJSON ProcessorFeatureProperty {Maybe (Value Text)
()
haddock_workaround_ :: ProcessorFeatureProperty -> ()
name :: ProcessorFeatureProperty -> Maybe (Value Text)
value :: ProcessorFeatureProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Name" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
name,
               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Value" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
value]))
instance Property "Name" ProcessorFeatureProperty where
  type PropertyType "Name" ProcessorFeatureProperty = Value Prelude.Text
  set :: PropertyType "Name" ProcessorFeatureProperty
-> ProcessorFeatureProperty -> ProcessorFeatureProperty
set PropertyType "Name" ProcessorFeatureProperty
newValue ProcessorFeatureProperty {Maybe (Value Text)
()
haddock_workaround_ :: ProcessorFeatureProperty -> ()
name :: ProcessorFeatureProperty -> Maybe (Value Text)
value :: ProcessorFeatureProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ProcessorFeatureProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" ProcessorFeatureProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
value :: Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
instance Property "Value" ProcessorFeatureProperty where
  type PropertyType "Value" ProcessorFeatureProperty = Value Prelude.Text
  set :: PropertyType "Value" ProcessorFeatureProperty
-> ProcessorFeatureProperty -> ProcessorFeatureProperty
set PropertyType "Value" ProcessorFeatureProperty
newValue ProcessorFeatureProperty {Maybe (Value Text)
()
haddock_workaround_ :: ProcessorFeatureProperty -> ()
name :: ProcessorFeatureProperty -> Maybe (Value Text)
value :: ProcessorFeatureProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ProcessorFeatureProperty {value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" ProcessorFeatureProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
..}