module Stratosphere.QuickSight.Dashboard.AxisLogarithmicScaleProperty (
        AxisLogarithmicScaleProperty(..), mkAxisLogarithmicScaleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AxisLogarithmicScaleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-axislogarithmicscale.html>
    AxisLogarithmicScaleProperty {AxisLogarithmicScaleProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-axislogarithmicscale.html#cfn-quicksight-dashboard-axislogarithmicscale-base>
                                  AxisLogarithmicScaleProperty -> Maybe (Value Double)
base :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (AxisLogarithmicScaleProperty
-> AxisLogarithmicScaleProperty -> Bool
(AxisLogarithmicScaleProperty
 -> AxisLogarithmicScaleProperty -> Bool)
-> (AxisLogarithmicScaleProperty
    -> AxisLogarithmicScaleProperty -> Bool)
-> Eq AxisLogarithmicScaleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AxisLogarithmicScaleProperty
-> AxisLogarithmicScaleProperty -> Bool
== :: AxisLogarithmicScaleProperty
-> AxisLogarithmicScaleProperty -> Bool
$c/= :: AxisLogarithmicScaleProperty
-> AxisLogarithmicScaleProperty -> Bool
/= :: AxisLogarithmicScaleProperty
-> AxisLogarithmicScaleProperty -> Bool
Prelude.Eq, Int -> AxisLogarithmicScaleProperty -> ShowS
[AxisLogarithmicScaleProperty] -> ShowS
AxisLogarithmicScaleProperty -> String
(Int -> AxisLogarithmicScaleProperty -> ShowS)
-> (AxisLogarithmicScaleProperty -> String)
-> ([AxisLogarithmicScaleProperty] -> ShowS)
-> Show AxisLogarithmicScaleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AxisLogarithmicScaleProperty -> ShowS
showsPrec :: Int -> AxisLogarithmicScaleProperty -> ShowS
$cshow :: AxisLogarithmicScaleProperty -> String
show :: AxisLogarithmicScaleProperty -> String
$cshowList :: [AxisLogarithmicScaleProperty] -> ShowS
showList :: [AxisLogarithmicScaleProperty] -> ShowS
Prelude.Show)
mkAxisLogarithmicScaleProperty :: AxisLogarithmicScaleProperty
mkAxisLogarithmicScaleProperty :: AxisLogarithmicScaleProperty
mkAxisLogarithmicScaleProperty
  = AxisLogarithmicScaleProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), base :: Maybe (Value Double)
base = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AxisLogarithmicScaleProperty where
  toResourceProperties :: AxisLogarithmicScaleProperty -> ResourceProperties
toResourceProperties AxisLogarithmicScaleProperty {Maybe (Value Double)
()
haddock_workaround_ :: AxisLogarithmicScaleProperty -> ()
base :: AxisLogarithmicScaleProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
base :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.AxisLogarithmicScale",
         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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Base" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
base])}
instance JSON.ToJSON AxisLogarithmicScaleProperty where
  toJSON :: AxisLogarithmicScaleProperty -> Value
toJSON AxisLogarithmicScaleProperty {Maybe (Value Double)
()
haddock_workaround_ :: AxisLogarithmicScaleProperty -> ()
base :: AxisLogarithmicScaleProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
base :: Maybe (Value Double)
..}
    = [(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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Base" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
base]))
instance Property "Base" AxisLogarithmicScaleProperty where
  type PropertyType "Base" AxisLogarithmicScaleProperty = Value Prelude.Double
  set :: PropertyType "Base" AxisLogarithmicScaleProperty
-> AxisLogarithmicScaleProperty -> AxisLogarithmicScaleProperty
set PropertyType "Base" AxisLogarithmicScaleProperty
newValue AxisLogarithmicScaleProperty {Maybe (Value Double)
()
haddock_workaround_ :: AxisLogarithmicScaleProperty -> ()
base :: AxisLogarithmicScaleProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
base :: Maybe (Value Double)
..}
    = AxisLogarithmicScaleProperty {base :: Maybe (Value Double)
base = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Base" AxisLogarithmicScaleProperty
Value Double
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}