content: 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
    = NodeCountsProperty {totalActuators :: (Prelude.Maybe (Value Prelude.Double)),
                          totalAttributes :: (Prelude.Maybe (Value Prelude.Double)),
                          totalBranches :: (Prelude.Maybe (Value Prelude.Double)),
                          totalNodes :: (Prelude.Maybe (Value Prelude.Double)),
                          totalSensors :: (Prelude.Maybe (Value Prelude.Double))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkNodeCountsProperty :: NodeCountsProperty
  mkNodeCountsProperty
    = NodeCountsProperty
        {totalActuators = Prelude.Nothing,
         totalAttributes = Prelude.Nothing, totalBranches = Prelude.Nothing,
         totalNodes = Prelude.Nothing, totalSensors = Prelude.Nothing}
  instance ToResourceProperties NodeCountsProperty where
    toResourceProperties NodeCountsProperty {..}
      = ResourceProperties
          {awsType = "AWS::IoTFleetWise::SignalCatalog.NodeCounts",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "TotalActuators" Prelude.<$> totalActuators,
                              (JSON..=) "TotalAttributes" Prelude.<$> totalAttributes,
                              (JSON..=) "TotalBranches" Prelude.<$> totalBranches,
                              (JSON..=) "TotalNodes" Prelude.<$> totalNodes,
                              (JSON..=) "TotalSensors" Prelude.<$> totalSensors])}
  instance JSON.ToJSON NodeCountsProperty where
    toJSON NodeCountsProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "TotalActuators" Prelude.<$> totalActuators,
                 (JSON..=) "TotalAttributes" Prelude.<$> totalAttributes,
                 (JSON..=) "TotalBranches" Prelude.<$> totalBranches,
                 (JSON..=) "TotalNodes" Prelude.<$> totalNodes,
                 (JSON..=) "TotalSensors" Prelude.<$> totalSensors]))
  instance Property "TotalActuators" NodeCountsProperty where
    type PropertyType "TotalActuators" NodeCountsProperty = Value Prelude.Double
    set newValue NodeCountsProperty {..}
      = NodeCountsProperty {totalActuators = Prelude.pure newValue, ..}
  instance Property "TotalAttributes" NodeCountsProperty where
    type PropertyType "TotalAttributes" NodeCountsProperty = Value Prelude.Double
    set newValue NodeCountsProperty {..}
      = NodeCountsProperty {totalAttributes = Prelude.pure newValue, ..}
  instance Property "TotalBranches" NodeCountsProperty where
    type PropertyType "TotalBranches" NodeCountsProperty = Value Prelude.Double
    set newValue NodeCountsProperty {..}
      = NodeCountsProperty {totalBranches = Prelude.pure newValue, ..}
  instance Property "TotalNodes" NodeCountsProperty where
    type PropertyType "TotalNodes" NodeCountsProperty = Value Prelude.Double
    set newValue NodeCountsProperty {..}
      = NodeCountsProperty {totalNodes = Prelude.pure newValue, ..}
  instance Property "TotalSensors" NodeCountsProperty where
    type PropertyType "TotalSensors" NodeCountsProperty = Value Prelude.Double
    set newValue NodeCountsProperty {..}
      = NodeCountsProperty {totalSensors = Prelude.pure newValue, ..}