module Stratosphere.Deadline.Fleet.VCpuCountRangeProperty (
VCpuCountRangeProperty(..), mkVCpuCountRangeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VCpuCountRangeProperty
=
VCpuCountRangeProperty {VCpuCountRangeProperty -> ()
haddock_workaround_ :: (),
VCpuCountRangeProperty -> Maybe (Value Integer)
max :: (Prelude.Maybe (Value Prelude.Integer)),
VCpuCountRangeProperty -> Value Integer
min :: (Value Prelude.Integer)}
deriving stock (VCpuCountRangeProperty -> VCpuCountRangeProperty -> Bool
(VCpuCountRangeProperty -> VCpuCountRangeProperty -> Bool)
-> (VCpuCountRangeProperty -> VCpuCountRangeProperty -> Bool)
-> Eq VCpuCountRangeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VCpuCountRangeProperty -> VCpuCountRangeProperty -> Bool
== :: VCpuCountRangeProperty -> VCpuCountRangeProperty -> Bool
$c/= :: VCpuCountRangeProperty -> VCpuCountRangeProperty -> Bool
/= :: VCpuCountRangeProperty -> VCpuCountRangeProperty -> Bool
Prelude.Eq, Int -> VCpuCountRangeProperty -> ShowS
[VCpuCountRangeProperty] -> ShowS
VCpuCountRangeProperty -> String
(Int -> VCpuCountRangeProperty -> ShowS)
-> (VCpuCountRangeProperty -> String)
-> ([VCpuCountRangeProperty] -> ShowS)
-> Show VCpuCountRangeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VCpuCountRangeProperty -> ShowS
showsPrec :: Int -> VCpuCountRangeProperty -> ShowS
$cshow :: VCpuCountRangeProperty -> String
show :: VCpuCountRangeProperty -> String
$cshowList :: [VCpuCountRangeProperty] -> ShowS
showList :: [VCpuCountRangeProperty] -> ShowS
Prelude.Show)
mkVCpuCountRangeProperty ::
Value Prelude.Integer -> VCpuCountRangeProperty
mkVCpuCountRangeProperty :: Value Integer -> VCpuCountRangeProperty
mkVCpuCountRangeProperty Value Integer
min
= VCpuCountRangeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), min :: Value Integer
min = Value Integer
min, max :: Maybe (Value Integer)
max = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VCpuCountRangeProperty where
toResourceProperties :: VCpuCountRangeProperty -> ResourceProperties
toResourceProperties VCpuCountRangeProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VCpuCountRangeProperty -> ()
max :: VCpuCountRangeProperty -> Maybe (Value Integer)
min :: VCpuCountRangeProperty -> Value Integer
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Deadline::Fleet.VCpuCountRange",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Min" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
min]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Integer -> (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 Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
max]))}
instance JSON.ToJSON VCpuCountRangeProperty where
toJSON :: VCpuCountRangeProperty -> Value
toJSON VCpuCountRangeProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VCpuCountRangeProperty -> ()
max :: VCpuCountRangeProperty -> Maybe (Value Integer)
min :: VCpuCountRangeProperty -> Value Integer
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Min" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
min]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Integer -> (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 Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
max])))
instance Property "Max" VCpuCountRangeProperty where
type PropertyType "Max" VCpuCountRangeProperty = Value Prelude.Integer
set :: PropertyType "Max" VCpuCountRangeProperty
-> VCpuCountRangeProperty -> VCpuCountRangeProperty
set PropertyType "Max" VCpuCountRangeProperty
newValue VCpuCountRangeProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VCpuCountRangeProperty -> ()
max :: VCpuCountRangeProperty -> Maybe (Value Integer)
min :: VCpuCountRangeProperty -> Value Integer
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Value Integer
..}
= VCpuCountRangeProperty {max :: Maybe (Value Integer)
max = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Max" VCpuCountRangeProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
min :: Value Integer
haddock_workaround_ :: ()
min :: Value Integer
..}
instance Property "Min" VCpuCountRangeProperty where
type PropertyType "Min" VCpuCountRangeProperty = Value Prelude.Integer
set :: PropertyType "Min" VCpuCountRangeProperty
-> VCpuCountRangeProperty -> VCpuCountRangeProperty
set PropertyType "Min" VCpuCountRangeProperty
newValue VCpuCountRangeProperty {Maybe (Value Integer)
()
Value Integer
haddock_workaround_ :: VCpuCountRangeProperty -> ()
max :: VCpuCountRangeProperty -> Maybe (Value Integer)
min :: VCpuCountRangeProperty -> Value Integer
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
min :: Value Integer
..}
= VCpuCountRangeProperty {min :: Value Integer
min = PropertyType "Min" VCpuCountRangeProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
haddock_workaround_ :: ()
max :: Maybe (Value Integer)
..}