module Stratosphere.QuickSight.Analysis.SmallMultiplesAxisPropertiesProperty (
SmallMultiplesAxisPropertiesProperty(..),
mkSmallMultiplesAxisPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SmallMultiplesAxisPropertiesProperty
=
SmallMultiplesAxisPropertiesProperty {SmallMultiplesAxisPropertiesProperty -> ()
haddock_workaround_ :: (),
SmallMultiplesAxisPropertiesProperty -> Maybe (Value Text)
placement :: (Prelude.Maybe (Value Prelude.Text)),
SmallMultiplesAxisPropertiesProperty -> Maybe (Value Text)
scale :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty -> Bool
(SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty -> Bool)
-> (SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty -> Bool)
-> Eq SmallMultiplesAxisPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty -> Bool
== :: SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty -> Bool
$c/= :: SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty -> Bool
/= :: SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty -> Bool
Prelude.Eq, Int -> SmallMultiplesAxisPropertiesProperty -> ShowS
[SmallMultiplesAxisPropertiesProperty] -> ShowS
SmallMultiplesAxisPropertiesProperty -> String
(Int -> SmallMultiplesAxisPropertiesProperty -> ShowS)
-> (SmallMultiplesAxisPropertiesProperty -> String)
-> ([SmallMultiplesAxisPropertiesProperty] -> ShowS)
-> Show SmallMultiplesAxisPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SmallMultiplesAxisPropertiesProperty -> ShowS
showsPrec :: Int -> SmallMultiplesAxisPropertiesProperty -> ShowS
$cshow :: SmallMultiplesAxisPropertiesProperty -> String
show :: SmallMultiplesAxisPropertiesProperty -> String
$cshowList :: [SmallMultiplesAxisPropertiesProperty] -> ShowS
showList :: [SmallMultiplesAxisPropertiesProperty] -> ShowS
Prelude.Show)
mkSmallMultiplesAxisPropertiesProperty ::
SmallMultiplesAxisPropertiesProperty
mkSmallMultiplesAxisPropertiesProperty :: SmallMultiplesAxisPropertiesProperty
mkSmallMultiplesAxisPropertiesProperty
= SmallMultiplesAxisPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), placement :: Maybe (Value Text)
placement = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
scale :: Maybe (Value Text)
scale = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SmallMultiplesAxisPropertiesProperty where
toResourceProperties :: SmallMultiplesAxisPropertiesProperty -> ResourceProperties
toResourceProperties SmallMultiplesAxisPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: SmallMultiplesAxisPropertiesProperty -> ()
placement :: SmallMultiplesAxisPropertiesProperty -> Maybe (Value Text)
scale :: SmallMultiplesAxisPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
placement :: Maybe (Value Text)
scale :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.SmallMultiplesAxisProperties",
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 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
"Placement" (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)
placement,
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
"Scale" (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)
scale])}
instance JSON.ToJSON SmallMultiplesAxisPropertiesProperty where
toJSON :: SmallMultiplesAxisPropertiesProperty -> Value
toJSON SmallMultiplesAxisPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: SmallMultiplesAxisPropertiesProperty -> ()
placement :: SmallMultiplesAxisPropertiesProperty -> Maybe (Value Text)
scale :: SmallMultiplesAxisPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
placement :: Maybe (Value Text)
scale :: 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 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
"Placement" (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)
placement,
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
"Scale" (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)
scale]))
instance Property "Placement" SmallMultiplesAxisPropertiesProperty where
type PropertyType "Placement" SmallMultiplesAxisPropertiesProperty = Value Prelude.Text
set :: PropertyType "Placement" SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty
set PropertyType "Placement" SmallMultiplesAxisPropertiesProperty
newValue SmallMultiplesAxisPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: SmallMultiplesAxisPropertiesProperty -> ()
placement :: SmallMultiplesAxisPropertiesProperty -> Maybe (Value Text)
scale :: SmallMultiplesAxisPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
placement :: Maybe (Value Text)
scale :: Maybe (Value Text)
..}
= SmallMultiplesAxisPropertiesProperty
{placement :: Maybe (Value Text)
placement = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Placement" SmallMultiplesAxisPropertiesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
scale :: Maybe (Value Text)
haddock_workaround_ :: ()
scale :: Maybe (Value Text)
..}
instance Property "Scale" SmallMultiplesAxisPropertiesProperty where
type PropertyType "Scale" SmallMultiplesAxisPropertiesProperty = Value Prelude.Text
set :: PropertyType "Scale" SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty
-> SmallMultiplesAxisPropertiesProperty
set PropertyType "Scale" SmallMultiplesAxisPropertiesProperty
newValue SmallMultiplesAxisPropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: SmallMultiplesAxisPropertiesProperty -> ()
placement :: SmallMultiplesAxisPropertiesProperty -> Maybe (Value Text)
scale :: SmallMultiplesAxisPropertiesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
placement :: Maybe (Value Text)
scale :: Maybe (Value Text)
..}
= SmallMultiplesAxisPropertiesProperty
{scale :: Maybe (Value Text)
scale = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Scale" SmallMultiplesAxisPropertiesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
placement :: Maybe (Value Text)
haddock_workaround_ :: ()
placement :: Maybe (Value Text)
..}