module Stratosphere.QuickSight.Analysis.CalculatedFieldProperty (
        CalculatedFieldProperty(..), mkCalculatedFieldProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CalculatedFieldProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-calculatedfield.html>
    CalculatedFieldProperty {CalculatedFieldProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-calculatedfield.html#cfn-quicksight-analysis-calculatedfield-datasetidentifier>
                             CalculatedFieldProperty -> Value Text
dataSetIdentifier :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-calculatedfield.html#cfn-quicksight-analysis-calculatedfield-expression>
                             CalculatedFieldProperty -> Value Text
expression :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-calculatedfield.html#cfn-quicksight-analysis-calculatedfield-name>
                             CalculatedFieldProperty -> Value Text
name :: (Value Prelude.Text)}
  deriving stock (CalculatedFieldProperty -> CalculatedFieldProperty -> Bool
(CalculatedFieldProperty -> CalculatedFieldProperty -> Bool)
-> (CalculatedFieldProperty -> CalculatedFieldProperty -> Bool)
-> Eq CalculatedFieldProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CalculatedFieldProperty -> CalculatedFieldProperty -> Bool
== :: CalculatedFieldProperty -> CalculatedFieldProperty -> Bool
$c/= :: CalculatedFieldProperty -> CalculatedFieldProperty -> Bool
/= :: CalculatedFieldProperty -> CalculatedFieldProperty -> Bool
Prelude.Eq, Int -> CalculatedFieldProperty -> ShowS
[CalculatedFieldProperty] -> ShowS
CalculatedFieldProperty -> String
(Int -> CalculatedFieldProperty -> ShowS)
-> (CalculatedFieldProperty -> String)
-> ([CalculatedFieldProperty] -> ShowS)
-> Show CalculatedFieldProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CalculatedFieldProperty -> ShowS
showsPrec :: Int -> CalculatedFieldProperty -> ShowS
$cshow :: CalculatedFieldProperty -> String
show :: CalculatedFieldProperty -> String
$cshowList :: [CalculatedFieldProperty] -> ShowS
showList :: [CalculatedFieldProperty] -> ShowS
Prelude.Show)
mkCalculatedFieldProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> CalculatedFieldProperty
mkCalculatedFieldProperty :: Value Text -> Value Text -> Value Text -> CalculatedFieldProperty
mkCalculatedFieldProperty Value Text
dataSetIdentifier Value Text
expression Value Text
name
  = CalculatedFieldProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), dataSetIdentifier :: Value Text
dataSetIdentifier = Value Text
dataSetIdentifier,
       expression :: Value Text
expression = Value Text
expression, name :: Value Text
name = Value Text
name}
instance ToResourceProperties CalculatedFieldProperty where
  toResourceProperties :: CalculatedFieldProperty -> ResourceProperties
toResourceProperties CalculatedFieldProperty {()
Value Text
haddock_workaround_ :: CalculatedFieldProperty -> ()
dataSetIdentifier :: CalculatedFieldProperty -> Value Text
expression :: CalculatedFieldProperty -> Value Text
name :: CalculatedFieldProperty -> Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Value Text
expression :: Value Text
name :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.CalculatedField",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"DataSetIdentifier" 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..= Value Text
dataSetIdentifier,
                       Key
"Expression" 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..= Value Text
expression, Key
"Name" 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..= Value Text
name]}
instance JSON.ToJSON CalculatedFieldProperty where
  toJSON :: CalculatedFieldProperty -> Value
toJSON CalculatedFieldProperty {()
Value Text
haddock_workaround_ :: CalculatedFieldProperty -> ()
dataSetIdentifier :: CalculatedFieldProperty -> Value Text
expression :: CalculatedFieldProperty -> Value Text
name :: CalculatedFieldProperty -> Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Value Text
expression :: Value Text
name :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"DataSetIdentifier" 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..= Value Text
dataSetIdentifier,
         Key
"Expression" 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..= Value Text
expression, Key
"Name" 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..= Value Text
name]
instance Property "DataSetIdentifier" CalculatedFieldProperty where
  type PropertyType "DataSetIdentifier" CalculatedFieldProperty = Value Prelude.Text
  set :: PropertyType "DataSetIdentifier" CalculatedFieldProperty
-> CalculatedFieldProperty -> CalculatedFieldProperty
set PropertyType "DataSetIdentifier" CalculatedFieldProperty
newValue CalculatedFieldProperty {()
Value Text
haddock_workaround_ :: CalculatedFieldProperty -> ()
dataSetIdentifier :: CalculatedFieldProperty -> Value Text
expression :: CalculatedFieldProperty -> Value Text
name :: CalculatedFieldProperty -> Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Value Text
expression :: Value Text
name :: Value Text
..}
    = CalculatedFieldProperty {dataSetIdentifier :: Value Text
dataSetIdentifier = PropertyType "DataSetIdentifier" CalculatedFieldProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
expression :: Value Text
name :: Value Text
haddock_workaround_ :: ()
expression :: Value Text
name :: Value Text
..}
instance Property "Expression" CalculatedFieldProperty where
  type PropertyType "Expression" CalculatedFieldProperty = Value Prelude.Text
  set :: PropertyType "Expression" CalculatedFieldProperty
-> CalculatedFieldProperty -> CalculatedFieldProperty
set PropertyType "Expression" CalculatedFieldProperty
newValue CalculatedFieldProperty {()
Value Text
haddock_workaround_ :: CalculatedFieldProperty -> ()
dataSetIdentifier :: CalculatedFieldProperty -> Value Text
expression :: CalculatedFieldProperty -> Value Text
name :: CalculatedFieldProperty -> Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Value Text
expression :: Value Text
name :: Value Text
..}
    = CalculatedFieldProperty {expression :: Value Text
expression = PropertyType "Expression" CalculatedFieldProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Value Text
name :: Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Value Text
name :: Value Text
..}
instance Property "Name" CalculatedFieldProperty where
  type PropertyType "Name" CalculatedFieldProperty = Value Prelude.Text
  set :: PropertyType "Name" CalculatedFieldProperty
-> CalculatedFieldProperty -> CalculatedFieldProperty
set PropertyType "Name" CalculatedFieldProperty
newValue CalculatedFieldProperty {()
Value Text
haddock_workaround_ :: CalculatedFieldProperty -> ()
dataSetIdentifier :: CalculatedFieldProperty -> Value Text
expression :: CalculatedFieldProperty -> Value Text
name :: CalculatedFieldProperty -> Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Value Text
expression :: Value Text
name :: Value Text
..}
    = CalculatedFieldProperty {name :: Value Text
name = PropertyType "Name" CalculatedFieldProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Value Text
expression :: Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Value Text
expression :: Value Text
..}