module Stratosphere.IoTFleetWise.Campaign.StorageMaximumSizeProperty (
StorageMaximumSizeProperty(..), mkStorageMaximumSizeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StorageMaximumSizeProperty
=
StorageMaximumSizeProperty {StorageMaximumSizeProperty -> ()
haddock_workaround_ :: (),
StorageMaximumSizeProperty -> Value Text
unit :: (Value Prelude.Text),
StorageMaximumSizeProperty -> Value Integer
value :: (Value Prelude.Integer)}
deriving stock (StorageMaximumSizeProperty -> StorageMaximumSizeProperty -> Bool
(StorageMaximumSizeProperty -> StorageMaximumSizeProperty -> Bool)
-> (StorageMaximumSizeProperty
-> StorageMaximumSizeProperty -> Bool)
-> Eq StorageMaximumSizeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StorageMaximumSizeProperty -> StorageMaximumSizeProperty -> Bool
== :: StorageMaximumSizeProperty -> StorageMaximumSizeProperty -> Bool
$c/= :: StorageMaximumSizeProperty -> StorageMaximumSizeProperty -> Bool
/= :: StorageMaximumSizeProperty -> StorageMaximumSizeProperty -> Bool
Prelude.Eq, Int -> StorageMaximumSizeProperty -> ShowS
[StorageMaximumSizeProperty] -> ShowS
StorageMaximumSizeProperty -> String
(Int -> StorageMaximumSizeProperty -> ShowS)
-> (StorageMaximumSizeProperty -> String)
-> ([StorageMaximumSizeProperty] -> ShowS)
-> Show StorageMaximumSizeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StorageMaximumSizeProperty -> ShowS
showsPrec :: Int -> StorageMaximumSizeProperty -> ShowS
$cshow :: StorageMaximumSizeProperty -> String
show :: StorageMaximumSizeProperty -> String
$cshowList :: [StorageMaximumSizeProperty] -> ShowS
showList :: [StorageMaximumSizeProperty] -> ShowS
Prelude.Show)
mkStorageMaximumSizeProperty ::
Value Prelude.Text
-> Value Prelude.Integer -> StorageMaximumSizeProperty
mkStorageMaximumSizeProperty :: Value Text -> Value Integer -> StorageMaximumSizeProperty
mkStorageMaximumSizeProperty Value Text
unit Value Integer
value
= StorageMaximumSizeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), unit :: Value Text
unit = Value Text
unit, value :: Value Integer
value = Value Integer
value}
instance ToResourceProperties StorageMaximumSizeProperty where
toResourceProperties :: StorageMaximumSizeProperty -> ResourceProperties
toResourceProperties StorageMaximumSizeProperty {()
Value Integer
Value Text
haddock_workaround_ :: StorageMaximumSizeProperty -> ()
unit :: StorageMaximumSizeProperty -> Value Text
value :: StorageMaximumSizeProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTFleetWise::Campaign.StorageMaximumSize",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Unit" 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..= Value Text
unit, Key
"Value" 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
value]}
instance JSON.ToJSON StorageMaximumSizeProperty where
toJSON :: StorageMaximumSizeProperty -> Value
toJSON StorageMaximumSizeProperty {()
Value Integer
Value Text
haddock_workaround_ :: StorageMaximumSizeProperty -> ()
unit :: StorageMaximumSizeProperty -> Value Text
value :: StorageMaximumSizeProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Unit" 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..= Value Text
unit, Key
"Value" 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
value]
instance Property "Unit" StorageMaximumSizeProperty where
type PropertyType "Unit" StorageMaximumSizeProperty = Value Prelude.Text
set :: PropertyType "Unit" StorageMaximumSizeProperty
-> StorageMaximumSizeProperty -> StorageMaximumSizeProperty
set PropertyType "Unit" StorageMaximumSizeProperty
newValue StorageMaximumSizeProperty {()
Value Integer
Value Text
haddock_workaround_ :: StorageMaximumSizeProperty -> ()
unit :: StorageMaximumSizeProperty -> Value Text
value :: StorageMaximumSizeProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= StorageMaximumSizeProperty {unit :: Value Text
unit = PropertyType "Unit" StorageMaximumSizeProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
value :: Value Integer
haddock_workaround_ :: ()
value :: Value Integer
..}
instance Property "Value" StorageMaximumSizeProperty where
type PropertyType "Value" StorageMaximumSizeProperty = Value Prelude.Integer
set :: PropertyType "Value" StorageMaximumSizeProperty
-> StorageMaximumSizeProperty -> StorageMaximumSizeProperty
set PropertyType "Value" StorageMaximumSizeProperty
newValue StorageMaximumSizeProperty {()
Value Integer
Value Text
haddock_workaround_ :: StorageMaximumSizeProperty -> ()
unit :: StorageMaximumSizeProperty -> Value Text
value :: StorageMaximumSizeProperty -> Value Integer
haddock_workaround_ :: ()
unit :: Value Text
value :: Value Integer
..}
= StorageMaximumSizeProperty {value :: Value Integer
value = PropertyType "Value" StorageMaximumSizeProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
unit :: Value Text
haddock_workaround_ :: ()
unit :: Value Text
..}