module Stratosphere.QuickSight.Template.ArcAxisConfigurationProperty ( module Exports, ArcAxisConfigurationProperty(..), mkArcAxisConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Template.ArcAxisDisplayRangeProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Value data ArcAxisConfigurationProperty = -- | See: ArcAxisConfigurationProperty {haddock_workaround_ :: (), -- | See: range :: (Prelude.Maybe ArcAxisDisplayRangeProperty), -- | See: reserveRange :: (Prelude.Maybe (Value Prelude.Double))} deriving stock (Prelude.Eq, Prelude.Show) mkArcAxisConfigurationProperty :: ArcAxisConfigurationProperty mkArcAxisConfigurationProperty = ArcAxisConfigurationProperty {haddock_workaround_ = (), range = Prelude.Nothing, reserveRange = Prelude.Nothing} instance ToResourceProperties ArcAxisConfigurationProperty where toResourceProperties ArcAxisConfigurationProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Template.ArcAxisConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Range" Prelude.<$> range, (JSON..=) "ReserveRange" Prelude.<$> reserveRange])} instance JSON.ToJSON ArcAxisConfigurationProperty where toJSON ArcAxisConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Range" Prelude.<$> range, (JSON..=) "ReserveRange" Prelude.<$> reserveRange])) instance Property "Range" ArcAxisConfigurationProperty where type PropertyType "Range" ArcAxisConfigurationProperty = ArcAxisDisplayRangeProperty set newValue ArcAxisConfigurationProperty {..} = ArcAxisConfigurationProperty {range = Prelude.pure newValue, ..} instance Property "ReserveRange" ArcAxisConfigurationProperty where type PropertyType "ReserveRange" ArcAxisConfigurationProperty = Value Prelude.Double set newValue ArcAxisConfigurationProperty {..} = ArcAxisConfigurationProperty {reserveRange = Prelude.pure newValue, ..}