module Stratosphere.QuickSight.Dashboard.WordCloudOptionsProperty ( WordCloudOptionsProperty(..), mkWordCloudOptionsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data WordCloudOptionsProperty = -- | See: WordCloudOptionsProperty {haddock_workaround_ :: (), -- | See: cloudLayout :: (Prelude.Maybe (Value Prelude.Text)), -- | See: maximumStringLength :: (Prelude.Maybe (Value Prelude.Double)), -- | See: wordCasing :: (Prelude.Maybe (Value Prelude.Text)), -- | See: wordOrientation :: (Prelude.Maybe (Value Prelude.Text)), -- | See: wordPadding :: (Prelude.Maybe (Value Prelude.Text)), -- | See: wordScaling :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkWordCloudOptionsProperty :: WordCloudOptionsProperty mkWordCloudOptionsProperty = WordCloudOptionsProperty {haddock_workaround_ = (), cloudLayout = Prelude.Nothing, maximumStringLength = Prelude.Nothing, wordCasing = Prelude.Nothing, wordOrientation = Prelude.Nothing, wordPadding = Prelude.Nothing, wordScaling = Prelude.Nothing} instance ToResourceProperties WordCloudOptionsProperty where toResourceProperties WordCloudOptionsProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Dashboard.WordCloudOptions", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "CloudLayout" Prelude.<$> cloudLayout, (JSON..=) "MaximumStringLength" Prelude.<$> maximumStringLength, (JSON..=) "WordCasing" Prelude.<$> wordCasing, (JSON..=) "WordOrientation" Prelude.<$> wordOrientation, (JSON..=) "WordPadding" Prelude.<$> wordPadding, (JSON..=) "WordScaling" Prelude.<$> wordScaling])} instance JSON.ToJSON WordCloudOptionsProperty where toJSON WordCloudOptionsProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "CloudLayout" Prelude.<$> cloudLayout, (JSON..=) "MaximumStringLength" Prelude.<$> maximumStringLength, (JSON..=) "WordCasing" Prelude.<$> wordCasing, (JSON..=) "WordOrientation" Prelude.<$> wordOrientation, (JSON..=) "WordPadding" Prelude.<$> wordPadding, (JSON..=) "WordScaling" Prelude.<$> wordScaling])) instance Property "CloudLayout" WordCloudOptionsProperty where type PropertyType "CloudLayout" WordCloudOptionsProperty = Value Prelude.Text set newValue WordCloudOptionsProperty {..} = WordCloudOptionsProperty {cloudLayout = Prelude.pure newValue, ..} instance Property "MaximumStringLength" WordCloudOptionsProperty where type PropertyType "MaximumStringLength" WordCloudOptionsProperty = Value Prelude.Double set newValue WordCloudOptionsProperty {..} = WordCloudOptionsProperty {maximumStringLength = Prelude.pure newValue, ..} instance Property "WordCasing" WordCloudOptionsProperty where type PropertyType "WordCasing" WordCloudOptionsProperty = Value Prelude.Text set newValue WordCloudOptionsProperty {..} = WordCloudOptionsProperty {wordCasing = Prelude.pure newValue, ..} instance Property "WordOrientation" WordCloudOptionsProperty where type PropertyType "WordOrientation" WordCloudOptionsProperty = Value Prelude.Text set newValue WordCloudOptionsProperty {..} = WordCloudOptionsProperty {wordOrientation = Prelude.pure newValue, ..} instance Property "WordPadding" WordCloudOptionsProperty where type PropertyType "WordPadding" WordCloudOptionsProperty = Value Prelude.Text set newValue WordCloudOptionsProperty {..} = WordCloudOptionsProperty {wordPadding = Prelude.pure newValue, ..} instance Property "WordScaling" WordCloudOptionsProperty where type PropertyType "WordScaling" WordCloudOptionsProperty = Value Prelude.Text set newValue WordCloudOptionsProperty {..} = WordCloudOptionsProperty {wordScaling = Prelude.pure newValue, ..}