module Stratosphere.QuickSight.Analysis.ReferenceLineDataConfigurationProperty (
module Exports, ReferenceLineDataConfigurationProperty(..),
mkReferenceLineDataConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.ReferenceLineDynamicDataConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.ReferenceLineStaticDataConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ReferenceLineDataConfigurationProperty
=
ReferenceLineDataConfigurationProperty {ReferenceLineDataConfigurationProperty -> ()
haddock_workaround_ :: (),
ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
axisBinding :: (Prelude.Maybe (Value Prelude.Text)),
ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineDynamicDataConfigurationProperty
dynamicConfiguration :: (Prelude.Maybe ReferenceLineDynamicDataConfigurationProperty),
ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
seriesType :: (Prelude.Maybe (Value Prelude.Text)),
ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineStaticDataConfigurationProperty
staticConfiguration :: (Prelude.Maybe ReferenceLineStaticDataConfigurationProperty)}
deriving stock (ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty -> Bool
(ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty -> Bool)
-> (ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty -> Bool)
-> Eq ReferenceLineDataConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty -> Bool
== :: ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty -> Bool
$c/= :: ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty -> Bool
/= :: ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty -> Bool
Prelude.Eq, Int -> ReferenceLineDataConfigurationProperty -> ShowS
[ReferenceLineDataConfigurationProperty] -> ShowS
ReferenceLineDataConfigurationProperty -> String
(Int -> ReferenceLineDataConfigurationProperty -> ShowS)
-> (ReferenceLineDataConfigurationProperty -> String)
-> ([ReferenceLineDataConfigurationProperty] -> ShowS)
-> Show ReferenceLineDataConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReferenceLineDataConfigurationProperty -> ShowS
showsPrec :: Int -> ReferenceLineDataConfigurationProperty -> ShowS
$cshow :: ReferenceLineDataConfigurationProperty -> String
show :: ReferenceLineDataConfigurationProperty -> String
$cshowList :: [ReferenceLineDataConfigurationProperty] -> ShowS
showList :: [ReferenceLineDataConfigurationProperty] -> ShowS
Prelude.Show)
mkReferenceLineDataConfigurationProperty ::
ReferenceLineDataConfigurationProperty
mkReferenceLineDataConfigurationProperty :: ReferenceLineDataConfigurationProperty
mkReferenceLineDataConfigurationProperty
= ReferenceLineDataConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), axisBinding :: Maybe (Value Text)
axisBinding = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
dynamicConfiguration = Maybe ReferenceLineDynamicDataConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
seriesType :: Maybe (Value Text)
seriesType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
staticConfiguration = Maybe ReferenceLineStaticDataConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ReferenceLineDataConfigurationProperty where
toResourceProperties :: ReferenceLineDataConfigurationProperty -> ResourceProperties
toResourceProperties ReferenceLineDataConfigurationProperty {Maybe (Value Text)
Maybe ReferenceLineDynamicDataConfigurationProperty
Maybe ReferenceLineStaticDataConfigurationProperty
()
haddock_workaround_ :: ReferenceLineDataConfigurationProperty -> ()
axisBinding :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
dynamicConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
staticConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineStaticDataConfigurationProperty
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: Maybe (Value Text)
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.ReferenceLineDataConfiguration",
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
"AxisBinding" (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)
axisBinding,
Key
-> ReferenceLineDynamicDataConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DynamicConfiguration" (ReferenceLineDynamicDataConfigurationProperty -> (Key, Value))
-> Maybe ReferenceLineDynamicDataConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReferenceLineDynamicDataConfigurationProperty
dynamicConfiguration,
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
"SeriesType" (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)
seriesType,
Key -> ReferenceLineStaticDataConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StaticConfiguration" (ReferenceLineStaticDataConfigurationProperty -> (Key, Value))
-> Maybe ReferenceLineStaticDataConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReferenceLineStaticDataConfigurationProperty
staticConfiguration])}
instance JSON.ToJSON ReferenceLineDataConfigurationProperty where
toJSON :: ReferenceLineDataConfigurationProperty -> Value
toJSON ReferenceLineDataConfigurationProperty {Maybe (Value Text)
Maybe ReferenceLineDynamicDataConfigurationProperty
Maybe ReferenceLineStaticDataConfigurationProperty
()
haddock_workaround_ :: ReferenceLineDataConfigurationProperty -> ()
axisBinding :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
dynamicConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
staticConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineStaticDataConfigurationProperty
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: Maybe (Value Text)
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
..}
= [(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
"AxisBinding" (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)
axisBinding,
Key
-> ReferenceLineDynamicDataConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DynamicConfiguration" (ReferenceLineDynamicDataConfigurationProperty -> (Key, Value))
-> Maybe ReferenceLineDynamicDataConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReferenceLineDynamicDataConfigurationProperty
dynamicConfiguration,
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
"SeriesType" (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)
seriesType,
Key -> ReferenceLineStaticDataConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StaticConfiguration" (ReferenceLineStaticDataConfigurationProperty -> (Key, Value))
-> Maybe ReferenceLineStaticDataConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ReferenceLineStaticDataConfigurationProperty
staticConfiguration]))
instance Property "AxisBinding" ReferenceLineDataConfigurationProperty where
type PropertyType "AxisBinding" ReferenceLineDataConfigurationProperty = Value Prelude.Text
set :: PropertyType "AxisBinding" ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty
set PropertyType "AxisBinding" ReferenceLineDataConfigurationProperty
newValue ReferenceLineDataConfigurationProperty {Maybe (Value Text)
Maybe ReferenceLineDynamicDataConfigurationProperty
Maybe ReferenceLineStaticDataConfigurationProperty
()
haddock_workaround_ :: ReferenceLineDataConfigurationProperty -> ()
axisBinding :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
dynamicConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
staticConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineStaticDataConfigurationProperty
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: Maybe (Value Text)
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
..}
= ReferenceLineDataConfigurationProperty
{axisBinding :: Maybe (Value Text)
axisBinding = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AxisBinding" ReferenceLineDataConfigurationProperty
Value Text
newValue, Maybe (Value Text)
Maybe ReferenceLineDynamicDataConfigurationProperty
Maybe ReferenceLineStaticDataConfigurationProperty
()
haddock_workaround_ :: ()
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: Maybe (Value Text)
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
haddock_workaround_ :: ()
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: Maybe (Value Text)
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
..}
instance Property "DynamicConfiguration" ReferenceLineDataConfigurationProperty where
type PropertyType "DynamicConfiguration" ReferenceLineDataConfigurationProperty = ReferenceLineDynamicDataConfigurationProperty
set :: PropertyType
"DynamicConfiguration" ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty
set PropertyType
"DynamicConfiguration" ReferenceLineDataConfigurationProperty
newValue ReferenceLineDataConfigurationProperty {Maybe (Value Text)
Maybe ReferenceLineDynamicDataConfigurationProperty
Maybe ReferenceLineStaticDataConfigurationProperty
()
haddock_workaround_ :: ReferenceLineDataConfigurationProperty -> ()
axisBinding :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
dynamicConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
staticConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineStaticDataConfigurationProperty
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: Maybe (Value Text)
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
..}
= ReferenceLineDataConfigurationProperty
{dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
dynamicConfiguration = ReferenceLineDynamicDataConfigurationProperty
-> Maybe ReferenceLineDynamicDataConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DynamicConfiguration" ReferenceLineDataConfigurationProperty
ReferenceLineDynamicDataConfigurationProperty
newValue, Maybe (Value Text)
Maybe ReferenceLineStaticDataConfigurationProperty
()
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
seriesType :: Maybe (Value Text)
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
seriesType :: Maybe (Value Text)
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
..}
instance Property "SeriesType" ReferenceLineDataConfigurationProperty where
type PropertyType "SeriesType" ReferenceLineDataConfigurationProperty = Value Prelude.Text
set :: PropertyType "SeriesType" ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty
set PropertyType "SeriesType" ReferenceLineDataConfigurationProperty
newValue ReferenceLineDataConfigurationProperty {Maybe (Value Text)
Maybe ReferenceLineDynamicDataConfigurationProperty
Maybe ReferenceLineStaticDataConfigurationProperty
()
haddock_workaround_ :: ReferenceLineDataConfigurationProperty -> ()
axisBinding :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
dynamicConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
staticConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineStaticDataConfigurationProperty
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: Maybe (Value Text)
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
..}
= ReferenceLineDataConfigurationProperty
{seriesType :: Maybe (Value Text)
seriesType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SeriesType" ReferenceLineDataConfigurationProperty
Value Text
newValue, Maybe (Value Text)
Maybe ReferenceLineDynamicDataConfigurationProperty
Maybe ReferenceLineStaticDataConfigurationProperty
()
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
..}
instance Property "StaticConfiguration" ReferenceLineDataConfigurationProperty where
type PropertyType "StaticConfiguration" ReferenceLineDataConfigurationProperty = ReferenceLineStaticDataConfigurationProperty
set :: PropertyType
"StaticConfiguration" ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty
-> ReferenceLineDataConfigurationProperty
set PropertyType
"StaticConfiguration" ReferenceLineDataConfigurationProperty
newValue ReferenceLineDataConfigurationProperty {Maybe (Value Text)
Maybe ReferenceLineDynamicDataConfigurationProperty
Maybe ReferenceLineStaticDataConfigurationProperty
()
haddock_workaround_ :: ReferenceLineDataConfigurationProperty -> ()
axisBinding :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
dynamicConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: ReferenceLineDataConfigurationProperty -> Maybe (Value Text)
staticConfiguration :: ReferenceLineDataConfigurationProperty
-> Maybe ReferenceLineStaticDataConfigurationProperty
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: Maybe (Value Text)
staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
..}
= ReferenceLineDataConfigurationProperty
{staticConfiguration :: Maybe ReferenceLineStaticDataConfigurationProperty
staticConfiguration = ReferenceLineStaticDataConfigurationProperty
-> Maybe ReferenceLineStaticDataConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"StaticConfiguration" ReferenceLineDataConfigurationProperty
ReferenceLineStaticDataConfigurationProperty
newValue, Maybe (Value Text)
Maybe ReferenceLineDynamicDataConfigurationProperty
()
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: Maybe (Value Text)
haddock_workaround_ :: ()
axisBinding :: Maybe (Value Text)
dynamicConfiguration :: Maybe ReferenceLineDynamicDataConfigurationProperty
seriesType :: Maybe (Value Text)
..}