module Stratosphere.CustomerProfiles.CalculatedAttributeDefinition (
module Exports, CalculatedAttributeDefinition(..),
mkCalculatedAttributeDefinition
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CustomerProfiles.CalculatedAttributeDefinition.AttributeDetailsProperty as Exports
import {-# SOURCE #-} Stratosphere.CustomerProfiles.CalculatedAttributeDefinition.ConditionsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data CalculatedAttributeDefinition
=
CalculatedAttributeDefinition {CalculatedAttributeDefinition -> ()
haddock_workaround_ :: (),
CalculatedAttributeDefinition -> AttributeDetailsProperty
attributeDetails :: AttributeDetailsProperty,
CalculatedAttributeDefinition -> Value Text
calculatedAttributeName :: (Value Prelude.Text),
CalculatedAttributeDefinition -> Maybe ConditionsProperty
conditions :: (Prelude.Maybe ConditionsProperty),
CalculatedAttributeDefinition -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: (Prelude.Maybe (Value Prelude.Text)),
CalculatedAttributeDefinition -> Value Text
domainName :: (Value Prelude.Text),
CalculatedAttributeDefinition -> Value Text
statistic :: (Value Prelude.Text),
CalculatedAttributeDefinition -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
CalculatedAttributeDefinition -> Maybe (Value Bool)
useHistoricalData :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> Bool
(CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> Bool)
-> (CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> Bool)
-> Eq CalculatedAttributeDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> Bool
== :: CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> Bool
$c/= :: CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> Bool
/= :: CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> Bool
Prelude.Eq, Int -> CalculatedAttributeDefinition -> ShowS
[CalculatedAttributeDefinition] -> ShowS
CalculatedAttributeDefinition -> String
(Int -> CalculatedAttributeDefinition -> ShowS)
-> (CalculatedAttributeDefinition -> String)
-> ([CalculatedAttributeDefinition] -> ShowS)
-> Show CalculatedAttributeDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CalculatedAttributeDefinition -> ShowS
showsPrec :: Int -> CalculatedAttributeDefinition -> ShowS
$cshow :: CalculatedAttributeDefinition -> String
show :: CalculatedAttributeDefinition -> String
$cshowList :: [CalculatedAttributeDefinition] -> ShowS
showList :: [CalculatedAttributeDefinition] -> ShowS
Prelude.Show)
mkCalculatedAttributeDefinition ::
AttributeDetailsProperty
-> Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> CalculatedAttributeDefinition
mkCalculatedAttributeDefinition :: AttributeDetailsProperty
-> Value Text
-> Value Text
-> Value Text
-> CalculatedAttributeDefinition
mkCalculatedAttributeDefinition
AttributeDetailsProperty
attributeDetails
Value Text
calculatedAttributeName
Value Text
domainName
Value Text
statistic
= CalculatedAttributeDefinition
{haddock_workaround_ :: ()
haddock_workaround_ = (), attributeDetails :: AttributeDetailsProperty
attributeDetails = AttributeDetailsProperty
attributeDetails,
calculatedAttributeName :: Value Text
calculatedAttributeName = Value Text
calculatedAttributeName,
domainName :: Value Text
domainName = Value Text
domainName, statistic :: Value Text
statistic = Value Text
statistic,
conditions :: Maybe ConditionsProperty
conditions = Maybe ConditionsProperty
forall a. Maybe a
Prelude.Nothing, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
displayName :: Maybe (Value Text)
displayName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
useHistoricalData :: Maybe (Value Bool)
useHistoricalData = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CalculatedAttributeDefinition where
toResourceProperties :: CalculatedAttributeDefinition -> ResourceProperties
toResourceProperties CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CustomerProfiles::CalculatedAttributeDefinition",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AttributeDetails" Key -> AttributeDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AttributeDetailsProperty
attributeDetails,
Key
"CalculatedAttributeName" 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
calculatedAttributeName,
Key
"DomainName" 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
domainName, Key
"Statistic" 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
statistic]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ConditionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Conditions" (ConditionsProperty -> (Key, Value))
-> Maybe ConditionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConditionsProperty
conditions,
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
"Description" (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)
description,
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
"DisplayName" (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)
displayName,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UseHistoricalData" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
useHistoricalData]))}
instance JSON.ToJSON CalculatedAttributeDefinition where
toJSON :: CalculatedAttributeDefinition -> Value
toJSON CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AttributeDetails" Key -> AttributeDetailsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AttributeDetailsProperty
attributeDetails,
Key
"CalculatedAttributeName" 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
calculatedAttributeName,
Key
"DomainName" 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
domainName, Key
"Statistic" 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
statistic]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ConditionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Conditions" (ConditionsProperty -> (Key, Value))
-> Maybe ConditionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConditionsProperty
conditions,
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
"Description" (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)
description,
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
"DisplayName" (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)
displayName,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UseHistoricalData" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
useHistoricalData])))
instance Property "AttributeDetails" CalculatedAttributeDefinition where
type PropertyType "AttributeDetails" CalculatedAttributeDefinition = AttributeDetailsProperty
set :: PropertyType "AttributeDetails" CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> CalculatedAttributeDefinition
set PropertyType "AttributeDetails" CalculatedAttributeDefinition
newValue CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= CalculatedAttributeDefinition {attributeDetails :: AttributeDetailsProperty
attributeDetails = PropertyType "AttributeDetails" CalculatedAttributeDefinition
AttributeDetailsProperty
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
haddock_workaround_ :: ()
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
haddock_workaround_ :: ()
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
instance Property "CalculatedAttributeName" CalculatedAttributeDefinition where
type PropertyType "CalculatedAttributeName" CalculatedAttributeDefinition = Value Prelude.Text
set :: PropertyType
"CalculatedAttributeName" CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> CalculatedAttributeDefinition
set PropertyType
"CalculatedAttributeName" CalculatedAttributeDefinition
newValue CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= CalculatedAttributeDefinition
{calculatedAttributeName :: Value Text
calculatedAttributeName = PropertyType
"CalculatedAttributeName" CalculatedAttributeDefinition
Value Text
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
instance Property "Conditions" CalculatedAttributeDefinition where
type PropertyType "Conditions" CalculatedAttributeDefinition = ConditionsProperty
set :: PropertyType "Conditions" CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> CalculatedAttributeDefinition
set PropertyType "Conditions" CalculatedAttributeDefinition
newValue CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= CalculatedAttributeDefinition
{conditions :: Maybe ConditionsProperty
conditions = ConditionsProperty -> Maybe ConditionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Conditions" CalculatedAttributeDefinition
ConditionsProperty
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
instance Property "Description" CalculatedAttributeDefinition where
type PropertyType "Description" CalculatedAttributeDefinition = Value Prelude.Text
set :: PropertyType "Description" CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> CalculatedAttributeDefinition
set PropertyType "Description" CalculatedAttributeDefinition
newValue CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= CalculatedAttributeDefinition
{description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" CalculatedAttributeDefinition
Value Text
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
instance Property "DisplayName" CalculatedAttributeDefinition where
type PropertyType "DisplayName" CalculatedAttributeDefinition = Value Prelude.Text
set :: PropertyType "DisplayName" CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> CalculatedAttributeDefinition
set PropertyType "DisplayName" CalculatedAttributeDefinition
newValue CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= CalculatedAttributeDefinition
{displayName :: Maybe (Value Text)
displayName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DisplayName" CalculatedAttributeDefinition
Value Text
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
instance Property "DomainName" CalculatedAttributeDefinition where
type PropertyType "DomainName" CalculatedAttributeDefinition = Value Prelude.Text
set :: PropertyType "DomainName" CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> CalculatedAttributeDefinition
set PropertyType "DomainName" CalculatedAttributeDefinition
newValue CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= CalculatedAttributeDefinition {domainName :: Value Text
domainName = PropertyType "DomainName" CalculatedAttributeDefinition
Value Text
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
instance Property "Statistic" CalculatedAttributeDefinition where
type PropertyType "Statistic" CalculatedAttributeDefinition = Value Prelude.Text
set :: PropertyType "Statistic" CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> CalculatedAttributeDefinition
set PropertyType "Statistic" CalculatedAttributeDefinition
newValue CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= CalculatedAttributeDefinition {statistic :: Value Text
statistic = PropertyType "Statistic" CalculatedAttributeDefinition
Value Text
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
instance Property "Tags" CalculatedAttributeDefinition where
type PropertyType "Tags" CalculatedAttributeDefinition = [Tag]
set :: PropertyType "Tags" CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> CalculatedAttributeDefinition
set PropertyType "Tags" CalculatedAttributeDefinition
newValue CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= CalculatedAttributeDefinition {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" CalculatedAttributeDefinition
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
useHistoricalData :: Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
useHistoricalData :: Maybe (Value Bool)
..}
instance Property "UseHistoricalData" CalculatedAttributeDefinition where
type PropertyType "UseHistoricalData" CalculatedAttributeDefinition = Value Prelude.Bool
set :: PropertyType "UseHistoricalData" CalculatedAttributeDefinition
-> CalculatedAttributeDefinition -> CalculatedAttributeDefinition
set PropertyType "UseHistoricalData" CalculatedAttributeDefinition
newValue CalculatedAttributeDefinition {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: CalculatedAttributeDefinition -> ()
attributeDetails :: CalculatedAttributeDefinition -> AttributeDetailsProperty
calculatedAttributeName :: CalculatedAttributeDefinition -> Value Text
conditions :: CalculatedAttributeDefinition -> Maybe ConditionsProperty
description :: CalculatedAttributeDefinition -> Maybe (Value Text)
displayName :: CalculatedAttributeDefinition -> Maybe (Value Text)
domainName :: CalculatedAttributeDefinition -> Value Text
statistic :: CalculatedAttributeDefinition -> Value Text
tags :: CalculatedAttributeDefinition -> Maybe [Tag]
useHistoricalData :: CalculatedAttributeDefinition -> Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
useHistoricalData :: Maybe (Value Bool)
..}
= CalculatedAttributeDefinition
{useHistoricalData :: Maybe (Value Bool)
useHistoricalData = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UseHistoricalData" CalculatedAttributeDefinition
Value Bool
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe ConditionsProperty
()
Value Text
AttributeDetailsProperty
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
attributeDetails :: AttributeDetailsProperty
calculatedAttributeName :: Value Text
conditions :: Maybe ConditionsProperty
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
domainName :: Value Text
statistic :: Value Text
tags :: Maybe [Tag]
..}