module Stratosphere.IoTFleetWise.SignalCatalog.NodeCountsProperty (
        NodeCountsProperty(..), mkNodeCountsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NodeCountsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html>
    NodeCountsProperty {NodeCountsProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html#cfn-iotfleetwise-signalcatalog-nodecounts-totalactuators>
                        NodeCountsProperty -> Maybe (Value Double)
totalActuators :: (Prelude.Maybe (Value Prelude.Double)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html#cfn-iotfleetwise-signalcatalog-nodecounts-totalattributes>
                        NodeCountsProperty -> Maybe (Value Double)
totalAttributes :: (Prelude.Maybe (Value Prelude.Double)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html#cfn-iotfleetwise-signalcatalog-nodecounts-totalbranches>
                        NodeCountsProperty -> Maybe (Value Double)
totalBranches :: (Prelude.Maybe (Value Prelude.Double)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html#cfn-iotfleetwise-signalcatalog-nodecounts-totalnodes>
                        NodeCountsProperty -> Maybe (Value Double)
totalNodes :: (Prelude.Maybe (Value Prelude.Double)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-nodecounts.html#cfn-iotfleetwise-signalcatalog-nodecounts-totalsensors>
                        NodeCountsProperty -> Maybe (Value Double)
totalSensors :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (NodeCountsProperty -> NodeCountsProperty -> Bool
(NodeCountsProperty -> NodeCountsProperty -> Bool)
-> (NodeCountsProperty -> NodeCountsProperty -> Bool)
-> Eq NodeCountsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NodeCountsProperty -> NodeCountsProperty -> Bool
== :: NodeCountsProperty -> NodeCountsProperty -> Bool
$c/= :: NodeCountsProperty -> NodeCountsProperty -> Bool
/= :: NodeCountsProperty -> NodeCountsProperty -> Bool
Prelude.Eq, Int -> NodeCountsProperty -> ShowS
[NodeCountsProperty] -> ShowS
NodeCountsProperty -> String
(Int -> NodeCountsProperty -> ShowS)
-> (NodeCountsProperty -> String)
-> ([NodeCountsProperty] -> ShowS)
-> Show NodeCountsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NodeCountsProperty -> ShowS
showsPrec :: Int -> NodeCountsProperty -> ShowS
$cshow :: NodeCountsProperty -> String
show :: NodeCountsProperty -> String
$cshowList :: [NodeCountsProperty] -> ShowS
showList :: [NodeCountsProperty] -> ShowS
Prelude.Show)
mkNodeCountsProperty :: NodeCountsProperty
mkNodeCountsProperty :: NodeCountsProperty
mkNodeCountsProperty
  = NodeCountsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), totalActuators :: Maybe (Value Double)
totalActuators = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       totalAttributes :: Maybe (Value Double)
totalAttributes = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, totalBranches :: Maybe (Value Double)
totalBranches = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       totalNodes :: Maybe (Value Double)
totalNodes = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, totalSensors :: Maybe (Value Double)
totalSensors = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NodeCountsProperty where
  toResourceProperties :: NodeCountsProperty -> ResourceProperties
toResourceProperties NodeCountsProperty {Maybe (Value Double)
()
haddock_workaround_ :: NodeCountsProperty -> ()
totalActuators :: NodeCountsProperty -> Maybe (Value Double)
totalAttributes :: NodeCountsProperty -> Maybe (Value Double)
totalBranches :: NodeCountsProperty -> Maybe (Value Double)
totalNodes :: NodeCountsProperty -> Maybe (Value Double)
totalSensors :: NodeCountsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTFleetWise::SignalCatalog.NodeCounts",
         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
"TotalActuators" (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)
totalActuators,
                            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
"TotalAttributes" (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)
totalAttributes,
                            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
"TotalBranches" (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)
totalBranches,
                            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
"TotalNodes" (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)
totalNodes,
                            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
"TotalSensors" (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)
totalSensors])}
instance JSON.ToJSON NodeCountsProperty where
  toJSON :: NodeCountsProperty -> Value
toJSON NodeCountsProperty {Maybe (Value Double)
()
haddock_workaround_ :: NodeCountsProperty -> ()
totalActuators :: NodeCountsProperty -> Maybe (Value Double)
totalAttributes :: NodeCountsProperty -> Maybe (Value Double)
totalBranches :: NodeCountsProperty -> Maybe (Value Double)
totalNodes :: NodeCountsProperty -> Maybe (Value Double)
totalSensors :: NodeCountsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: 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
"TotalActuators" (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)
totalActuators,
               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
"TotalAttributes" (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)
totalAttributes,
               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
"TotalBranches" (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)
totalBranches,
               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
"TotalNodes" (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)
totalNodes,
               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
"TotalSensors" (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)
totalSensors]))
instance Property "TotalActuators" NodeCountsProperty where
  type PropertyType "TotalActuators" NodeCountsProperty = Value Prelude.Double
  set :: PropertyType "TotalActuators" NodeCountsProperty
-> NodeCountsProperty -> NodeCountsProperty
set PropertyType "TotalActuators" NodeCountsProperty
newValue NodeCountsProperty {Maybe (Value Double)
()
haddock_workaround_ :: NodeCountsProperty -> ()
totalActuators :: NodeCountsProperty -> Maybe (Value Double)
totalAttributes :: NodeCountsProperty -> Maybe (Value Double)
totalBranches :: NodeCountsProperty -> Maybe (Value Double)
totalNodes :: NodeCountsProperty -> Maybe (Value Double)
totalSensors :: NodeCountsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
..}
    = NodeCountsProperty {totalActuators :: Maybe (Value Double)
totalActuators = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TotalActuators" NodeCountsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
haddock_workaround_ :: ()
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
..}
instance Property "TotalAttributes" NodeCountsProperty where
  type PropertyType "TotalAttributes" NodeCountsProperty = Value Prelude.Double
  set :: PropertyType "TotalAttributes" NodeCountsProperty
-> NodeCountsProperty -> NodeCountsProperty
set PropertyType "TotalAttributes" NodeCountsProperty
newValue NodeCountsProperty {Maybe (Value Double)
()
haddock_workaround_ :: NodeCountsProperty -> ()
totalActuators :: NodeCountsProperty -> Maybe (Value Double)
totalAttributes :: NodeCountsProperty -> Maybe (Value Double)
totalBranches :: NodeCountsProperty -> Maybe (Value Double)
totalNodes :: NodeCountsProperty -> Maybe (Value Double)
totalSensors :: NodeCountsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
..}
    = NodeCountsProperty {totalAttributes :: Maybe (Value Double)
totalAttributes = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TotalAttributes" NodeCountsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
..}
instance Property "TotalBranches" NodeCountsProperty where
  type PropertyType "TotalBranches" NodeCountsProperty = Value Prelude.Double
  set :: PropertyType "TotalBranches" NodeCountsProperty
-> NodeCountsProperty -> NodeCountsProperty
set PropertyType "TotalBranches" NodeCountsProperty
newValue NodeCountsProperty {Maybe (Value Double)
()
haddock_workaround_ :: NodeCountsProperty -> ()
totalActuators :: NodeCountsProperty -> Maybe (Value Double)
totalAttributes :: NodeCountsProperty -> Maybe (Value Double)
totalBranches :: NodeCountsProperty -> Maybe (Value Double)
totalNodes :: NodeCountsProperty -> Maybe (Value Double)
totalSensors :: NodeCountsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
..}
    = NodeCountsProperty {totalBranches :: Maybe (Value Double)
totalBranches = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TotalBranches" NodeCountsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
..}
instance Property "TotalNodes" NodeCountsProperty where
  type PropertyType "TotalNodes" NodeCountsProperty = Value Prelude.Double
  set :: PropertyType "TotalNodes" NodeCountsProperty
-> NodeCountsProperty -> NodeCountsProperty
set PropertyType "TotalNodes" NodeCountsProperty
newValue NodeCountsProperty {Maybe (Value Double)
()
haddock_workaround_ :: NodeCountsProperty -> ()
totalActuators :: NodeCountsProperty -> Maybe (Value Double)
totalAttributes :: NodeCountsProperty -> Maybe (Value Double)
totalBranches :: NodeCountsProperty -> Maybe (Value Double)
totalNodes :: NodeCountsProperty -> Maybe (Value Double)
totalSensors :: NodeCountsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
..}
    = NodeCountsProperty {totalNodes :: Maybe (Value Double)
totalNodes = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TotalNodes" NodeCountsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
..}
instance Property "TotalSensors" NodeCountsProperty where
  type PropertyType "TotalSensors" NodeCountsProperty = Value Prelude.Double
  set :: PropertyType "TotalSensors" NodeCountsProperty
-> NodeCountsProperty -> NodeCountsProperty
set PropertyType "TotalSensors" NodeCountsProperty
newValue NodeCountsProperty {Maybe (Value Double)
()
haddock_workaround_ :: NodeCountsProperty -> ()
totalActuators :: NodeCountsProperty -> Maybe (Value Double)
totalAttributes :: NodeCountsProperty -> Maybe (Value Double)
totalBranches :: NodeCountsProperty -> Maybe (Value Double)
totalNodes :: NodeCountsProperty -> Maybe (Value Double)
totalSensors :: NodeCountsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
totalSensors :: Maybe (Value Double)
..}
    = NodeCountsProperty {totalSensors :: Maybe (Value Double)
totalSensors = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TotalSensors" NodeCountsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
haddock_workaround_ :: ()
totalActuators :: Maybe (Value Double)
totalAttributes :: Maybe (Value Double)
totalBranches :: Maybe (Value Double)
totalNodes :: Maybe (Value Double)
..}