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