module Stratosphere.QuickSight.Dashboard.ReferenceLineStyleConfigurationProperty ( ReferenceLineStyleConfigurationProperty(..), mkReferenceLineStyleConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ReferenceLineStyleConfigurationProperty = -- | See: ReferenceLineStyleConfigurationProperty {haddock_workaround_ :: (), -- | See: color :: (Prelude.Maybe (Value Prelude.Text)), -- | See: pattern :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkReferenceLineStyleConfigurationProperty :: ReferenceLineStyleConfigurationProperty mkReferenceLineStyleConfigurationProperty = ReferenceLineStyleConfigurationProperty {haddock_workaround_ = (), color = Prelude.Nothing, pattern = Prelude.Nothing} instance ToResourceProperties ReferenceLineStyleConfigurationProperty where toResourceProperties ReferenceLineStyleConfigurationProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Dashboard.ReferenceLineStyleConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Color" Prelude.<$> color, (JSON..=) "Pattern" Prelude.<$> pattern])} instance JSON.ToJSON ReferenceLineStyleConfigurationProperty where toJSON ReferenceLineStyleConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Color" Prelude.<$> color, (JSON..=) "Pattern" Prelude.<$> pattern])) instance Property "Color" ReferenceLineStyleConfigurationProperty where type PropertyType "Color" ReferenceLineStyleConfigurationProperty = Value Prelude.Text set newValue ReferenceLineStyleConfigurationProperty {..} = ReferenceLineStyleConfigurationProperty {color = Prelude.pure newValue, ..} instance Property "Pattern" ReferenceLineStyleConfigurationProperty where type PropertyType "Pattern" ReferenceLineStyleConfigurationProperty = Value Prelude.Text set newValue ReferenceLineStyleConfigurationProperty {..} = ReferenceLineStyleConfigurationProperty {pattern = Prelude.pure newValue, ..}