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