module Stratosphere.QuickSight.Template.AxisDisplayRangeProperty (
module Exports, AxisDisplayRangeProperty(..),
mkAxisDisplayRangeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.AxisDisplayMinMaxRangeProperty as Exports
import Stratosphere.ResourceProperties
data AxisDisplayRangeProperty
=
AxisDisplayRangeProperty {AxisDisplayRangeProperty -> ()
haddock_workaround_ :: (),
AxisDisplayRangeProperty -> Maybe Object
dataDriven :: (Prelude.Maybe JSON.Object),
AxisDisplayRangeProperty -> Maybe AxisDisplayMinMaxRangeProperty
minMax :: (Prelude.Maybe AxisDisplayMinMaxRangeProperty)}
deriving stock (AxisDisplayRangeProperty -> AxisDisplayRangeProperty -> Bool
(AxisDisplayRangeProperty -> AxisDisplayRangeProperty -> Bool)
-> (AxisDisplayRangeProperty -> AxisDisplayRangeProperty -> Bool)
-> Eq AxisDisplayRangeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AxisDisplayRangeProperty -> AxisDisplayRangeProperty -> Bool
== :: AxisDisplayRangeProperty -> AxisDisplayRangeProperty -> Bool
$c/= :: AxisDisplayRangeProperty -> AxisDisplayRangeProperty -> Bool
/= :: AxisDisplayRangeProperty -> AxisDisplayRangeProperty -> Bool
Prelude.Eq, Int -> AxisDisplayRangeProperty -> ShowS
[AxisDisplayRangeProperty] -> ShowS
AxisDisplayRangeProperty -> String
(Int -> AxisDisplayRangeProperty -> ShowS)
-> (AxisDisplayRangeProperty -> String)
-> ([AxisDisplayRangeProperty] -> ShowS)
-> Show AxisDisplayRangeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AxisDisplayRangeProperty -> ShowS
showsPrec :: Int -> AxisDisplayRangeProperty -> ShowS
$cshow :: AxisDisplayRangeProperty -> String
show :: AxisDisplayRangeProperty -> String
$cshowList :: [AxisDisplayRangeProperty] -> ShowS
showList :: [AxisDisplayRangeProperty] -> ShowS
Prelude.Show)
mkAxisDisplayRangeProperty :: AxisDisplayRangeProperty
mkAxisDisplayRangeProperty :: AxisDisplayRangeProperty
mkAxisDisplayRangeProperty
= AxisDisplayRangeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), dataDriven :: Maybe Object
dataDriven = Maybe Object
forall a. Maybe a
Prelude.Nothing,
minMax :: Maybe AxisDisplayMinMaxRangeProperty
minMax = Maybe AxisDisplayMinMaxRangeProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AxisDisplayRangeProperty where
toResourceProperties :: AxisDisplayRangeProperty -> ResourceProperties
toResourceProperties AxisDisplayRangeProperty {Maybe Object
Maybe AxisDisplayMinMaxRangeProperty
()
haddock_workaround_ :: AxisDisplayRangeProperty -> ()
dataDriven :: AxisDisplayRangeProperty -> Maybe Object
minMax :: AxisDisplayRangeProperty -> Maybe AxisDisplayMinMaxRangeProperty
haddock_workaround_ :: ()
dataDriven :: Maybe Object
minMax :: Maybe AxisDisplayMinMaxRangeProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.AxisDisplayRange",
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 -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DataDriven" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
dataDriven,
Key -> AxisDisplayMinMaxRangeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinMax" (AxisDisplayMinMaxRangeProperty -> (Key, Value))
-> Maybe AxisDisplayMinMaxRangeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AxisDisplayMinMaxRangeProperty
minMax])}
instance JSON.ToJSON AxisDisplayRangeProperty where
toJSON :: AxisDisplayRangeProperty -> Value
toJSON AxisDisplayRangeProperty {Maybe Object
Maybe AxisDisplayMinMaxRangeProperty
()
haddock_workaround_ :: AxisDisplayRangeProperty -> ()
dataDriven :: AxisDisplayRangeProperty -> Maybe Object
minMax :: AxisDisplayRangeProperty -> Maybe AxisDisplayMinMaxRangeProperty
haddock_workaround_ :: ()
dataDriven :: Maybe Object
minMax :: Maybe AxisDisplayMinMaxRangeProperty
..}
= [(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 -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DataDriven" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
dataDriven,
Key -> AxisDisplayMinMaxRangeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinMax" (AxisDisplayMinMaxRangeProperty -> (Key, Value))
-> Maybe AxisDisplayMinMaxRangeProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AxisDisplayMinMaxRangeProperty
minMax]))
instance Property "DataDriven" AxisDisplayRangeProperty where
type PropertyType "DataDriven" AxisDisplayRangeProperty = JSON.Object
set :: PropertyType "DataDriven" AxisDisplayRangeProperty
-> AxisDisplayRangeProperty -> AxisDisplayRangeProperty
set PropertyType "DataDriven" AxisDisplayRangeProperty
newValue AxisDisplayRangeProperty {Maybe Object
Maybe AxisDisplayMinMaxRangeProperty
()
haddock_workaround_ :: AxisDisplayRangeProperty -> ()
dataDriven :: AxisDisplayRangeProperty -> Maybe Object
minMax :: AxisDisplayRangeProperty -> Maybe AxisDisplayMinMaxRangeProperty
haddock_workaround_ :: ()
dataDriven :: Maybe Object
minMax :: Maybe AxisDisplayMinMaxRangeProperty
..}
= AxisDisplayRangeProperty {dataDriven :: Maybe Object
dataDriven = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "DataDriven" AxisDisplayRangeProperty
newValue, Maybe AxisDisplayMinMaxRangeProperty
()
haddock_workaround_ :: ()
minMax :: Maybe AxisDisplayMinMaxRangeProperty
haddock_workaround_ :: ()
minMax :: Maybe AxisDisplayMinMaxRangeProperty
..}
instance Property "MinMax" AxisDisplayRangeProperty where
type PropertyType "MinMax" AxisDisplayRangeProperty = AxisDisplayMinMaxRangeProperty
set :: PropertyType "MinMax" AxisDisplayRangeProperty
-> AxisDisplayRangeProperty -> AxisDisplayRangeProperty
set PropertyType "MinMax" AxisDisplayRangeProperty
newValue AxisDisplayRangeProperty {Maybe Object
Maybe AxisDisplayMinMaxRangeProperty
()
haddock_workaround_ :: AxisDisplayRangeProperty -> ()
dataDriven :: AxisDisplayRangeProperty -> Maybe Object
minMax :: AxisDisplayRangeProperty -> Maybe AxisDisplayMinMaxRangeProperty
haddock_workaround_ :: ()
dataDriven :: Maybe Object
minMax :: Maybe AxisDisplayMinMaxRangeProperty
..}
= AxisDisplayRangeProperty {minMax :: Maybe AxisDisplayMinMaxRangeProperty
minMax = AxisDisplayMinMaxRangeProperty
-> Maybe AxisDisplayMinMaxRangeProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MinMax" AxisDisplayRangeProperty
AxisDisplayMinMaxRangeProperty
newValue, Maybe Object
()
haddock_workaround_ :: ()
dataDriven :: Maybe Object
haddock_workaround_ :: ()
dataDriven :: Maybe Object
..}