module Stratosphere.QuickSight.Template.ScatterPlotSortConfigurationProperty (
        module Exports, ScatterPlotSortConfigurationProperty(..),
        mkScatterPlotSortConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.ItemsLimitConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data ScatterPlotSortConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-scatterplotsortconfiguration.html>
    ScatterPlotSortConfigurationProperty {ScatterPlotSortConfigurationProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-scatterplotsortconfiguration.html#cfn-quicksight-template-scatterplotsortconfiguration-scatterplotlimitconfiguration>
                                          ScatterPlotSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
scatterPlotLimitConfiguration :: (Prelude.Maybe ItemsLimitConfigurationProperty)}
  deriving stock (ScatterPlotSortConfigurationProperty
-> ScatterPlotSortConfigurationProperty -> Bool
(ScatterPlotSortConfigurationProperty
 -> ScatterPlotSortConfigurationProperty -> Bool)
-> (ScatterPlotSortConfigurationProperty
    -> ScatterPlotSortConfigurationProperty -> Bool)
-> Eq ScatterPlotSortConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScatterPlotSortConfigurationProperty
-> ScatterPlotSortConfigurationProperty -> Bool
== :: ScatterPlotSortConfigurationProperty
-> ScatterPlotSortConfigurationProperty -> Bool
$c/= :: ScatterPlotSortConfigurationProperty
-> ScatterPlotSortConfigurationProperty -> Bool
/= :: ScatterPlotSortConfigurationProperty
-> ScatterPlotSortConfigurationProperty -> Bool
Prelude.Eq, Int -> ScatterPlotSortConfigurationProperty -> ShowS
[ScatterPlotSortConfigurationProperty] -> ShowS
ScatterPlotSortConfigurationProperty -> String
(Int -> ScatterPlotSortConfigurationProperty -> ShowS)
-> (ScatterPlotSortConfigurationProperty -> String)
-> ([ScatterPlotSortConfigurationProperty] -> ShowS)
-> Show ScatterPlotSortConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScatterPlotSortConfigurationProperty -> ShowS
showsPrec :: Int -> ScatterPlotSortConfigurationProperty -> ShowS
$cshow :: ScatterPlotSortConfigurationProperty -> String
show :: ScatterPlotSortConfigurationProperty -> String
$cshowList :: [ScatterPlotSortConfigurationProperty] -> ShowS
showList :: [ScatterPlotSortConfigurationProperty] -> ShowS
Prelude.Show)
mkScatterPlotSortConfigurationProperty ::
  ScatterPlotSortConfigurationProperty
mkScatterPlotSortConfigurationProperty :: ScatterPlotSortConfigurationProperty
mkScatterPlotSortConfigurationProperty
  = ScatterPlotSortConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       scatterPlotLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
scatterPlotLimitConfiguration = Maybe ItemsLimitConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ScatterPlotSortConfigurationProperty where
  toResourceProperties :: ScatterPlotSortConfigurationProperty -> ResourceProperties
toResourceProperties ScatterPlotSortConfigurationProperty {Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ScatterPlotSortConfigurationProperty -> ()
scatterPlotLimitConfiguration :: ScatterPlotSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
haddock_workaround_ :: ()
scatterPlotLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.ScatterPlotSortConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> ItemsLimitConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScatterPlotLimitConfiguration"
                              (ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
scatterPlotLimitConfiguration])}
instance JSON.ToJSON ScatterPlotSortConfigurationProperty where
  toJSON :: ScatterPlotSortConfigurationProperty -> Value
toJSON ScatterPlotSortConfigurationProperty {Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ScatterPlotSortConfigurationProperty -> ()
scatterPlotLimitConfiguration :: ScatterPlotSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
haddock_workaround_ :: ()
scatterPlotLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> ItemsLimitConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScatterPlotLimitConfiguration"
                 (ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
scatterPlotLimitConfiguration]))
instance Property "ScatterPlotLimitConfiguration" ScatterPlotSortConfigurationProperty where
  type PropertyType "ScatterPlotLimitConfiguration" ScatterPlotSortConfigurationProperty = ItemsLimitConfigurationProperty
  set :: PropertyType
  "ScatterPlotLimitConfiguration"
  ScatterPlotSortConfigurationProperty
-> ScatterPlotSortConfigurationProperty
-> ScatterPlotSortConfigurationProperty
set PropertyType
  "ScatterPlotLimitConfiguration"
  ScatterPlotSortConfigurationProperty
newValue ScatterPlotSortConfigurationProperty {Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ScatterPlotSortConfigurationProperty -> ()
scatterPlotLimitConfiguration :: ScatterPlotSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
haddock_workaround_ :: ()
scatterPlotLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
..}
    = ScatterPlotSortConfigurationProperty
        {scatterPlotLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
scatterPlotLimitConfiguration = ItemsLimitConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ScatterPlotLimitConfiguration"
  ScatterPlotSortConfigurationProperty
ItemsLimitConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}