module Stratosphere.EC2.EC2Fleet.TotalLocalStorageGBRequestProperty (
        TotalLocalStorageGBRequestProperty(..),
        mkTotalLocalStorageGBRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TotalLocalStorageGBRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-totallocalstoragegbrequest.html>
    TotalLocalStorageGBRequestProperty {TotalLocalStorageGBRequestProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-totallocalstoragegbrequest.html#cfn-ec2-ec2fleet-totallocalstoragegbrequest-max>
                                        TotalLocalStorageGBRequestProperty -> Maybe (Value Double)
max :: (Prelude.Maybe (Value Prelude.Double)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-totallocalstoragegbrequest.html#cfn-ec2-ec2fleet-totallocalstoragegbrequest-min>
                                        TotalLocalStorageGBRequestProperty -> Maybe (Value Double)
min :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (TotalLocalStorageGBRequestProperty
-> TotalLocalStorageGBRequestProperty -> Bool
(TotalLocalStorageGBRequestProperty
 -> TotalLocalStorageGBRequestProperty -> Bool)
-> (TotalLocalStorageGBRequestProperty
    -> TotalLocalStorageGBRequestProperty -> Bool)
-> Eq TotalLocalStorageGBRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TotalLocalStorageGBRequestProperty
-> TotalLocalStorageGBRequestProperty -> Bool
== :: TotalLocalStorageGBRequestProperty
-> TotalLocalStorageGBRequestProperty -> Bool
$c/= :: TotalLocalStorageGBRequestProperty
-> TotalLocalStorageGBRequestProperty -> Bool
/= :: TotalLocalStorageGBRequestProperty
-> TotalLocalStorageGBRequestProperty -> Bool
Prelude.Eq, Int -> TotalLocalStorageGBRequestProperty -> ShowS
[TotalLocalStorageGBRequestProperty] -> ShowS
TotalLocalStorageGBRequestProperty -> String
(Int -> TotalLocalStorageGBRequestProperty -> ShowS)
-> (TotalLocalStorageGBRequestProperty -> String)
-> ([TotalLocalStorageGBRequestProperty] -> ShowS)
-> Show TotalLocalStorageGBRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TotalLocalStorageGBRequestProperty -> ShowS
showsPrec :: Int -> TotalLocalStorageGBRequestProperty -> ShowS
$cshow :: TotalLocalStorageGBRequestProperty -> String
show :: TotalLocalStorageGBRequestProperty -> String
$cshowList :: [TotalLocalStorageGBRequestProperty] -> ShowS
showList :: [TotalLocalStorageGBRequestProperty] -> ShowS
Prelude.Show)
mkTotalLocalStorageGBRequestProperty ::
  TotalLocalStorageGBRequestProperty
mkTotalLocalStorageGBRequestProperty :: TotalLocalStorageGBRequestProperty
mkTotalLocalStorageGBRequestProperty
  = TotalLocalStorageGBRequestProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), max :: Maybe (Value Double)
max = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       min :: Maybe (Value Double)
min = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TotalLocalStorageGBRequestProperty where
  toResourceProperties :: TotalLocalStorageGBRequestProperty -> ResourceProperties
toResourceProperties TotalLocalStorageGBRequestProperty {Maybe (Value Double)
()
haddock_workaround_ :: TotalLocalStorageGBRequestProperty -> ()
max :: TotalLocalStorageGBRequestProperty -> Maybe (Value Double)
min :: TotalLocalStorageGBRequestProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::EC2Fleet.TotalLocalStorageGBRequest",
         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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Max" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
max,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Min" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
min])}
instance JSON.ToJSON TotalLocalStorageGBRequestProperty where
  toJSON :: TotalLocalStorageGBRequestProperty -> Value
toJSON TotalLocalStorageGBRequestProperty {Maybe (Value Double)
()
haddock_workaround_ :: TotalLocalStorageGBRequestProperty -> ()
max :: TotalLocalStorageGBRequestProperty -> Maybe (Value Double)
min :: TotalLocalStorageGBRequestProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
    = [(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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Max" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
max,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Min" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
min]))
instance Property "Max" TotalLocalStorageGBRequestProperty where
  type PropertyType "Max" TotalLocalStorageGBRequestProperty = Value Prelude.Double
  set :: PropertyType "Max" TotalLocalStorageGBRequestProperty
-> TotalLocalStorageGBRequestProperty
-> TotalLocalStorageGBRequestProperty
set PropertyType "Max" TotalLocalStorageGBRequestProperty
newValue TotalLocalStorageGBRequestProperty {Maybe (Value Double)
()
haddock_workaround_ :: TotalLocalStorageGBRequestProperty -> ()
max :: TotalLocalStorageGBRequestProperty -> Maybe (Value Double)
min :: TotalLocalStorageGBRequestProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
    = TotalLocalStorageGBRequestProperty
        {max :: Maybe (Value Double)
max = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Max" TotalLocalStorageGBRequestProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
min :: Maybe (Value Double)
haddock_workaround_ :: ()
min :: Maybe (Value Double)
..}
instance Property "Min" TotalLocalStorageGBRequestProperty where
  type PropertyType "Min" TotalLocalStorageGBRequestProperty = Value Prelude.Double
  set :: PropertyType "Min" TotalLocalStorageGBRequestProperty
-> TotalLocalStorageGBRequestProperty
-> TotalLocalStorageGBRequestProperty
set PropertyType "Min" TotalLocalStorageGBRequestProperty
newValue TotalLocalStorageGBRequestProperty {Maybe (Value Double)
()
haddock_workaround_ :: TotalLocalStorageGBRequestProperty -> ()
max :: TotalLocalStorageGBRequestProperty -> Maybe (Value Double)
min :: TotalLocalStorageGBRequestProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
min :: Maybe (Value Double)
..}
    = TotalLocalStorageGBRequestProperty
        {min :: Maybe (Value Double)
min = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Min" TotalLocalStorageGBRequestProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
max :: Maybe (Value Double)
haddock_workaround_ :: ()
max :: Maybe (Value Double)
..}