module Stratosphere.QuickSight.Template.PluginVisualItemsLimitConfigurationProperty (
        PluginVisualItemsLimitConfigurationProperty(..),
        mkPluginVisualItemsLimitConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PluginVisualItemsLimitConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-pluginvisualitemslimitconfiguration.html>
    PluginVisualItemsLimitConfigurationProperty {PluginVisualItemsLimitConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-pluginvisualitemslimitconfiguration.html#cfn-quicksight-template-pluginvisualitemslimitconfiguration-itemslimit>
                                                 PluginVisualItemsLimitConfigurationProperty -> Maybe (Value Double)
itemsLimit :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (PluginVisualItemsLimitConfigurationProperty
-> PluginVisualItemsLimitConfigurationProperty -> Bool
(PluginVisualItemsLimitConfigurationProperty
 -> PluginVisualItemsLimitConfigurationProperty -> Bool)
-> (PluginVisualItemsLimitConfigurationProperty
    -> PluginVisualItemsLimitConfigurationProperty -> Bool)
-> Eq PluginVisualItemsLimitConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PluginVisualItemsLimitConfigurationProperty
-> PluginVisualItemsLimitConfigurationProperty -> Bool
== :: PluginVisualItemsLimitConfigurationProperty
-> PluginVisualItemsLimitConfigurationProperty -> Bool
$c/= :: PluginVisualItemsLimitConfigurationProperty
-> PluginVisualItemsLimitConfigurationProperty -> Bool
/= :: PluginVisualItemsLimitConfigurationProperty
-> PluginVisualItemsLimitConfigurationProperty -> Bool
Prelude.Eq, Int -> PluginVisualItemsLimitConfigurationProperty -> ShowS
[PluginVisualItemsLimitConfigurationProperty] -> ShowS
PluginVisualItemsLimitConfigurationProperty -> String
(Int -> PluginVisualItemsLimitConfigurationProperty -> ShowS)
-> (PluginVisualItemsLimitConfigurationProperty -> String)
-> ([PluginVisualItemsLimitConfigurationProperty] -> ShowS)
-> Show PluginVisualItemsLimitConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PluginVisualItemsLimitConfigurationProperty -> ShowS
showsPrec :: Int -> PluginVisualItemsLimitConfigurationProperty -> ShowS
$cshow :: PluginVisualItemsLimitConfigurationProperty -> String
show :: PluginVisualItemsLimitConfigurationProperty -> String
$cshowList :: [PluginVisualItemsLimitConfigurationProperty] -> ShowS
showList :: [PluginVisualItemsLimitConfigurationProperty] -> ShowS
Prelude.Show)
mkPluginVisualItemsLimitConfigurationProperty ::
  PluginVisualItemsLimitConfigurationProperty
mkPluginVisualItemsLimitConfigurationProperty :: PluginVisualItemsLimitConfigurationProperty
mkPluginVisualItemsLimitConfigurationProperty
  = PluginVisualItemsLimitConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), itemsLimit :: Maybe (Value Double)
itemsLimit = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PluginVisualItemsLimitConfigurationProperty where
  toResourceProperties :: PluginVisualItemsLimitConfigurationProperty -> ResourceProperties
toResourceProperties
    PluginVisualItemsLimitConfigurationProperty {Maybe (Value Double)
()
haddock_workaround_ :: PluginVisualItemsLimitConfigurationProperty -> ()
itemsLimit :: PluginVisualItemsLimitConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
itemsLimit :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.PluginVisualItemsLimitConfiguration",
         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 -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ItemsLimit" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
itemsLimit])}
instance JSON.ToJSON PluginVisualItemsLimitConfigurationProperty where
  toJSON :: PluginVisualItemsLimitConfigurationProperty -> Value
toJSON PluginVisualItemsLimitConfigurationProperty {Maybe (Value Double)
()
haddock_workaround_ :: PluginVisualItemsLimitConfigurationProperty -> ()
itemsLimit :: PluginVisualItemsLimitConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
itemsLimit :: Maybe (Value Double)
..}
    = [(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 -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ItemsLimit" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
itemsLimit]))
instance Property "ItemsLimit" PluginVisualItemsLimitConfigurationProperty where
  type PropertyType "ItemsLimit" PluginVisualItemsLimitConfigurationProperty = Value Prelude.Double
  set :: PropertyType
  "ItemsLimit" PluginVisualItemsLimitConfigurationProperty
-> PluginVisualItemsLimitConfigurationProperty
-> PluginVisualItemsLimitConfigurationProperty
set PropertyType
  "ItemsLimit" PluginVisualItemsLimitConfigurationProperty
newValue PluginVisualItemsLimitConfigurationProperty {Maybe (Value Double)
()
haddock_workaround_ :: PluginVisualItemsLimitConfigurationProperty -> ()
itemsLimit :: PluginVisualItemsLimitConfigurationProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
itemsLimit :: Maybe (Value Double)
..}
    = PluginVisualItemsLimitConfigurationProperty
        {itemsLimit :: Maybe (Value Double)
itemsLimit = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ItemsLimit" PluginVisualItemsLimitConfigurationProperty
Value Double
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}