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