module Stratosphere.QuickSight.Dashboard.ArcAxisDisplayRangeProperty ( ArcAxisDisplayRangeProperty(..), mkArcAxisDisplayRangeProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ArcAxisDisplayRangeProperty = -- | See: ArcAxisDisplayRangeProperty {haddock_workaround_ :: (), -- | See: max :: (Prelude.Maybe (Value Prelude.Double)), -- | See: min :: (Prelude.Maybe (Value Prelude.Double))} deriving stock (Prelude.Eq, Prelude.Show) mkArcAxisDisplayRangeProperty :: ArcAxisDisplayRangeProperty mkArcAxisDisplayRangeProperty = ArcAxisDisplayRangeProperty {haddock_workaround_ = (), max = Prelude.Nothing, min = Prelude.Nothing} instance ToResourceProperties ArcAxisDisplayRangeProperty where toResourceProperties ArcAxisDisplayRangeProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Dashboard.ArcAxisDisplayRange", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Max" Prelude.<$> max, (JSON..=) "Min" Prelude.<$> min])} instance JSON.ToJSON ArcAxisDisplayRangeProperty where toJSON ArcAxisDisplayRangeProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Max" Prelude.<$> max, (JSON..=) "Min" Prelude.<$> min])) instance Property "Max" ArcAxisDisplayRangeProperty where type PropertyType "Max" ArcAxisDisplayRangeProperty = Value Prelude.Double set newValue ArcAxisDisplayRangeProperty {..} = ArcAxisDisplayRangeProperty {max = Prelude.pure newValue, ..} instance Property "Min" ArcAxisDisplayRangeProperty where type PropertyType "Min" ArcAxisDisplayRangeProperty = Value Prelude.Double set newValue ArcAxisDisplayRangeProperty {..} = ArcAxisDisplayRangeProperty {min = Prelude.pure newValue, ..}