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