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