module Stratosphere.QuickSight.Template.ReferenceLineValueLabelConfigurationProperty ( module Exports, ReferenceLineValueLabelConfigurationProperty(..), mkReferenceLineValueLabelConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Template.NumericFormatConfigurationProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Value data ReferenceLineValueLabelConfigurationProperty = -- | See: ReferenceLineValueLabelConfigurationProperty {haddock_workaround_ :: (), -- | See: formatConfiguration :: (Prelude.Maybe NumericFormatConfigurationProperty), -- | See: relativePosition :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkReferenceLineValueLabelConfigurationProperty :: ReferenceLineValueLabelConfigurationProperty mkReferenceLineValueLabelConfigurationProperty = ReferenceLineValueLabelConfigurationProperty {haddock_workaround_ = (), formatConfiguration = Prelude.Nothing, relativePosition = Prelude.Nothing} instance ToResourceProperties ReferenceLineValueLabelConfigurationProperty where toResourceProperties ReferenceLineValueLabelConfigurationProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Template.ReferenceLineValueLabelConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "FormatConfiguration" Prelude.<$> formatConfiguration, (JSON..=) "RelativePosition" Prelude.<$> relativePosition])} instance JSON.ToJSON ReferenceLineValueLabelConfigurationProperty where toJSON ReferenceLineValueLabelConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "FormatConfiguration" Prelude.<$> formatConfiguration, (JSON..=) "RelativePosition" Prelude.<$> relativePosition])) instance Property "FormatConfiguration" ReferenceLineValueLabelConfigurationProperty where type PropertyType "FormatConfiguration" ReferenceLineValueLabelConfigurationProperty = NumericFormatConfigurationProperty set newValue ReferenceLineValueLabelConfigurationProperty {..} = ReferenceLineValueLabelConfigurationProperty {formatConfiguration = Prelude.pure newValue, ..} instance Property "RelativePosition" ReferenceLineValueLabelConfigurationProperty where type PropertyType "RelativePosition" ReferenceLineValueLabelConfigurationProperty = Value Prelude.Text set newValue ReferenceLineValueLabelConfigurationProperty {..} = ReferenceLineValueLabelConfigurationProperty {relativePosition = Prelude.pure newValue, ..}