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