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