module Stratosphere.QuickSight.Dashboard.StringFormatConfigurationProperty ( module Exports, StringFormatConfigurationProperty(..), mkStringFormatConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.NullValueFormatConfigurationProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.NumericFormatConfigurationProperty as Exports import Stratosphere.ResourceProperties data StringFormatConfigurationProperty = -- | See: StringFormatConfigurationProperty {haddock_workaround_ :: (), -- | See: nullValueFormatConfiguration :: (Prelude.Maybe NullValueFormatConfigurationProperty), -- | See: numericFormatConfiguration :: (Prelude.Maybe NumericFormatConfigurationProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkStringFormatConfigurationProperty :: StringFormatConfigurationProperty mkStringFormatConfigurationProperty = StringFormatConfigurationProperty {haddock_workaround_ = (), nullValueFormatConfiguration = Prelude.Nothing, numericFormatConfiguration = Prelude.Nothing} instance ToResourceProperties StringFormatConfigurationProperty where toResourceProperties StringFormatConfigurationProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Dashboard.StringFormatConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "NullValueFormatConfiguration" Prelude.<$> nullValueFormatConfiguration, (JSON..=) "NumericFormatConfiguration" Prelude.<$> numericFormatConfiguration])} instance JSON.ToJSON StringFormatConfigurationProperty where toJSON StringFormatConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "NullValueFormatConfiguration" Prelude.<$> nullValueFormatConfiguration, (JSON..=) "NumericFormatConfiguration" Prelude.<$> numericFormatConfiguration])) instance Property "NullValueFormatConfiguration" StringFormatConfigurationProperty where type PropertyType "NullValueFormatConfiguration" StringFormatConfigurationProperty = NullValueFormatConfigurationProperty set newValue StringFormatConfigurationProperty {..} = StringFormatConfigurationProperty {nullValueFormatConfiguration = Prelude.pure newValue, ..} instance Property "NumericFormatConfiguration" StringFormatConfigurationProperty where type PropertyType "NumericFormatConfiguration" StringFormatConfigurationProperty = NumericFormatConfigurationProperty set newValue StringFormatConfigurationProperty {..} = StringFormatConfigurationProperty {numericFormatConfiguration = Prelude.pure newValue, ..}