module Stratosphere.AutoScaling.AutoScalingGroup.BaselinePerformanceFactorsRequestProperty (
        module Exports, BaselinePerformanceFactorsRequestProperty(..),
        mkBaselinePerformanceFactorsRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AutoScaling.AutoScalingGroup.CpuPerformanceFactorRequestProperty as Exports
import Stratosphere.ResourceProperties
data BaselinePerformanceFactorsRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-baselineperformancefactorsrequest.html>
    BaselinePerformanceFactorsRequestProperty {BaselinePerformanceFactorsRequestProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-baselineperformancefactorsrequest.html#cfn-autoscaling-autoscalinggroup-baselineperformancefactorsrequest-cpu>
                                               BaselinePerformanceFactorsRequestProperty
-> Maybe CpuPerformanceFactorRequestProperty
cpu :: (Prelude.Maybe CpuPerformanceFactorRequestProperty)}
  deriving stock (BaselinePerformanceFactorsRequestProperty
-> BaselinePerformanceFactorsRequestProperty -> Bool
(BaselinePerformanceFactorsRequestProperty
 -> BaselinePerformanceFactorsRequestProperty -> Bool)
-> (BaselinePerformanceFactorsRequestProperty
    -> BaselinePerformanceFactorsRequestProperty -> Bool)
-> Eq BaselinePerformanceFactorsRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BaselinePerformanceFactorsRequestProperty
-> BaselinePerformanceFactorsRequestProperty -> Bool
== :: BaselinePerformanceFactorsRequestProperty
-> BaselinePerformanceFactorsRequestProperty -> Bool
$c/= :: BaselinePerformanceFactorsRequestProperty
-> BaselinePerformanceFactorsRequestProperty -> Bool
/= :: BaselinePerformanceFactorsRequestProperty
-> BaselinePerformanceFactorsRequestProperty -> Bool
Prelude.Eq, Int -> BaselinePerformanceFactorsRequestProperty -> ShowS
[BaselinePerformanceFactorsRequestProperty] -> ShowS
BaselinePerformanceFactorsRequestProperty -> String
(Int -> BaselinePerformanceFactorsRequestProperty -> ShowS)
-> (BaselinePerformanceFactorsRequestProperty -> String)
-> ([BaselinePerformanceFactorsRequestProperty] -> ShowS)
-> Show BaselinePerformanceFactorsRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BaselinePerformanceFactorsRequestProperty -> ShowS
showsPrec :: Int -> BaselinePerformanceFactorsRequestProperty -> ShowS
$cshow :: BaselinePerformanceFactorsRequestProperty -> String
show :: BaselinePerformanceFactorsRequestProperty -> String
$cshowList :: [BaselinePerformanceFactorsRequestProperty] -> ShowS
showList :: [BaselinePerformanceFactorsRequestProperty] -> ShowS
Prelude.Show)
mkBaselinePerformanceFactorsRequestProperty ::
  BaselinePerformanceFactorsRequestProperty
mkBaselinePerformanceFactorsRequestProperty :: BaselinePerformanceFactorsRequestProperty
mkBaselinePerformanceFactorsRequestProperty
  = BaselinePerformanceFactorsRequestProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), cpu :: Maybe CpuPerformanceFactorRequestProperty
cpu = Maybe CpuPerformanceFactorRequestProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BaselinePerformanceFactorsRequestProperty where
  toResourceProperties :: BaselinePerformanceFactorsRequestProperty -> ResourceProperties
toResourceProperties BaselinePerformanceFactorsRequestProperty {Maybe CpuPerformanceFactorRequestProperty
()
haddock_workaround_ :: BaselinePerformanceFactorsRequestProperty -> ()
cpu :: BaselinePerformanceFactorsRequestProperty
-> Maybe CpuPerformanceFactorRequestProperty
haddock_workaround_ :: ()
cpu :: Maybe CpuPerformanceFactorRequestProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AutoScaling::AutoScalingGroup.BaselinePerformanceFactorsRequest",
         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 -> CpuPerformanceFactorRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Cpu" (CpuPerformanceFactorRequestProperty -> (Key, Value))
-> Maybe CpuPerformanceFactorRequestProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CpuPerformanceFactorRequestProperty
cpu])}
instance JSON.ToJSON BaselinePerformanceFactorsRequestProperty where
  toJSON :: BaselinePerformanceFactorsRequestProperty -> Value
toJSON BaselinePerformanceFactorsRequestProperty {Maybe CpuPerformanceFactorRequestProperty
()
haddock_workaround_ :: BaselinePerformanceFactorsRequestProperty -> ()
cpu :: BaselinePerformanceFactorsRequestProperty
-> Maybe CpuPerformanceFactorRequestProperty
haddock_workaround_ :: ()
cpu :: Maybe CpuPerformanceFactorRequestProperty
..}
    = [(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 -> CpuPerformanceFactorRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Cpu" (CpuPerformanceFactorRequestProperty -> (Key, Value))
-> Maybe CpuPerformanceFactorRequestProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CpuPerformanceFactorRequestProperty
cpu]))
instance Property "Cpu" BaselinePerformanceFactorsRequestProperty where
  type PropertyType "Cpu" BaselinePerformanceFactorsRequestProperty = CpuPerformanceFactorRequestProperty
  set :: PropertyType "Cpu" BaselinePerformanceFactorsRequestProperty
-> BaselinePerformanceFactorsRequestProperty
-> BaselinePerformanceFactorsRequestProperty
set PropertyType "Cpu" BaselinePerformanceFactorsRequestProperty
newValue BaselinePerformanceFactorsRequestProperty {Maybe CpuPerformanceFactorRequestProperty
()
haddock_workaround_ :: BaselinePerformanceFactorsRequestProperty -> ()
cpu :: BaselinePerformanceFactorsRequestProperty
-> Maybe CpuPerformanceFactorRequestProperty
haddock_workaround_ :: ()
cpu :: Maybe CpuPerformanceFactorRequestProperty
..}
    = BaselinePerformanceFactorsRequestProperty
        {cpu :: Maybe CpuPerformanceFactorRequestProperty
cpu = CpuPerformanceFactorRequestProperty
-> Maybe CpuPerformanceFactorRequestProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Cpu" BaselinePerformanceFactorsRequestProperty
CpuPerformanceFactorRequestProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}