module Stratosphere.CloudWatch.Alarm.MetricDataQueryProperty (
        module Exports, MetricDataQueryProperty(..),
        mkMetricDataQueryProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CloudWatch.Alarm.MetricStatProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MetricDataQueryProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html>
    MetricDataQueryProperty {MetricDataQueryProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-accountid>
                             MetricDataQueryProperty -> Maybe (Value Text)
accountId :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-expression>
                             MetricDataQueryProperty -> Maybe (Value Text)
expression :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-id>
                             MetricDataQueryProperty -> Value Text
id :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-label>
                             MetricDataQueryProperty -> Maybe (Value Text)
label :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-metricstat>
                             MetricDataQueryProperty -> Maybe MetricStatProperty
metricStat :: (Prelude.Maybe MetricStatProperty),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-period>
                             MetricDataQueryProperty -> Maybe (Value Integer)
period :: (Prelude.Maybe (Value Prelude.Integer)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-returndata>
                             MetricDataQueryProperty -> Maybe (Value Bool)
returnData :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (MetricDataQueryProperty -> MetricDataQueryProperty -> Bool
(MetricDataQueryProperty -> MetricDataQueryProperty -> Bool)
-> (MetricDataQueryProperty -> MetricDataQueryProperty -> Bool)
-> Eq MetricDataQueryProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MetricDataQueryProperty -> MetricDataQueryProperty -> Bool
== :: MetricDataQueryProperty -> MetricDataQueryProperty -> Bool
$c/= :: MetricDataQueryProperty -> MetricDataQueryProperty -> Bool
/= :: MetricDataQueryProperty -> MetricDataQueryProperty -> Bool
Prelude.Eq, Int -> MetricDataQueryProperty -> ShowS
[MetricDataQueryProperty] -> ShowS
MetricDataQueryProperty -> String
(Int -> MetricDataQueryProperty -> ShowS)
-> (MetricDataQueryProperty -> String)
-> ([MetricDataQueryProperty] -> ShowS)
-> Show MetricDataQueryProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MetricDataQueryProperty -> ShowS
showsPrec :: Int -> MetricDataQueryProperty -> ShowS
$cshow :: MetricDataQueryProperty -> String
show :: MetricDataQueryProperty -> String
$cshowList :: [MetricDataQueryProperty] -> ShowS
showList :: [MetricDataQueryProperty] -> ShowS
Prelude.Show)
mkMetricDataQueryProperty ::
  Value Prelude.Text -> MetricDataQueryProperty
mkMetricDataQueryProperty :: Value Text -> MetricDataQueryProperty
mkMetricDataQueryProperty Value Text
id
  = MetricDataQueryProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), id :: Value Text
id = Value Text
id, accountId :: Maybe (Value Text)
accountId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       expression :: Maybe (Value Text)
expression = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, label :: Maybe (Value Text)
label = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       metricStat :: Maybe MetricStatProperty
metricStat = Maybe MetricStatProperty
forall a. Maybe a
Prelude.Nothing, period :: Maybe (Value Integer)
period = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       returnData :: Maybe (Value Bool)
returnData = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MetricDataQueryProperty where
  toResourceProperties :: MetricDataQueryProperty -> ResourceProperties
toResourceProperties MetricDataQueryProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: MetricDataQueryProperty -> ()
accountId :: MetricDataQueryProperty -> Maybe (Value Text)
expression :: MetricDataQueryProperty -> Maybe (Value Text)
id :: MetricDataQueryProperty -> Value Text
label :: MetricDataQueryProperty -> Maybe (Value Text)
metricStat :: MetricDataQueryProperty -> Maybe MetricStatProperty
period :: MetricDataQueryProperty -> Maybe (Value Integer)
returnData :: MetricDataQueryProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CloudWatch::Alarm.MetricDataQuery",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"Id" 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
id]
                           ([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
"AccountId" (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)
accountId,
                               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
"Expression" (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)
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..=) Key
"Label" (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)
label,
                               Key -> MetricStatProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MetricStat" (MetricStatProperty -> (Key, Value))
-> Maybe MetricStatProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricStatProperty
metricStat,
                               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Period" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
period,
                               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
"ReturnData" (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)
returnData]))}
instance JSON.ToJSON MetricDataQueryProperty where
  toJSON :: MetricDataQueryProperty -> Value
toJSON MetricDataQueryProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: MetricDataQueryProperty -> ()
accountId :: MetricDataQueryProperty -> Maybe (Value Text)
expression :: MetricDataQueryProperty -> Maybe (Value Text)
id :: MetricDataQueryProperty -> Value Text
label :: MetricDataQueryProperty -> Maybe (Value Text)
metricStat :: MetricDataQueryProperty -> Maybe MetricStatProperty
period :: MetricDataQueryProperty -> Maybe (Value Integer)
returnData :: MetricDataQueryProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: 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
"Id" 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
id]
              ([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
"AccountId" (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)
accountId,
                  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
"Expression" (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)
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..=) Key
"Label" (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)
label,
                  Key -> MetricStatProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MetricStat" (MetricStatProperty -> (Key, Value))
-> Maybe MetricStatProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetricStatProperty
metricStat,
                  Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Period" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
period,
                  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
"ReturnData" (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)
returnData])))
instance Property "AccountId" MetricDataQueryProperty where
  type PropertyType "AccountId" MetricDataQueryProperty = Value Prelude.Text
  set :: PropertyType "AccountId" MetricDataQueryProperty
-> MetricDataQueryProperty -> MetricDataQueryProperty
set PropertyType "AccountId" MetricDataQueryProperty
newValue MetricDataQueryProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: MetricDataQueryProperty -> ()
accountId :: MetricDataQueryProperty -> Maybe (Value Text)
expression :: MetricDataQueryProperty -> Maybe (Value Text)
id :: MetricDataQueryProperty -> Value Text
label :: MetricDataQueryProperty -> Maybe (Value Text)
metricStat :: MetricDataQueryProperty -> Maybe MetricStatProperty
period :: MetricDataQueryProperty -> Maybe (Value Integer)
returnData :: MetricDataQueryProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
    = MetricDataQueryProperty {accountId :: Maybe (Value Text)
accountId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AccountId" MetricDataQueryProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
haddock_workaround_ :: ()
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
instance Property "Expression" MetricDataQueryProperty where
  type PropertyType "Expression" MetricDataQueryProperty = Value Prelude.Text
  set :: PropertyType "Expression" MetricDataQueryProperty
-> MetricDataQueryProperty -> MetricDataQueryProperty
set PropertyType "Expression" MetricDataQueryProperty
newValue MetricDataQueryProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: MetricDataQueryProperty -> ()
accountId :: MetricDataQueryProperty -> Maybe (Value Text)
expression :: MetricDataQueryProperty -> Maybe (Value Text)
id :: MetricDataQueryProperty -> Value Text
label :: MetricDataQueryProperty -> Maybe (Value Text)
metricStat :: MetricDataQueryProperty -> Maybe MetricStatProperty
period :: MetricDataQueryProperty -> Maybe (Value Integer)
returnData :: MetricDataQueryProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
    = MetricDataQueryProperty {expression :: Maybe (Value Text)
expression = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Expression" MetricDataQueryProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
instance Property "Id" MetricDataQueryProperty where
  type PropertyType "Id" MetricDataQueryProperty = Value Prelude.Text
  set :: PropertyType "Id" MetricDataQueryProperty
-> MetricDataQueryProperty -> MetricDataQueryProperty
set PropertyType "Id" MetricDataQueryProperty
newValue MetricDataQueryProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: MetricDataQueryProperty -> ()
accountId :: MetricDataQueryProperty -> Maybe (Value Text)
expression :: MetricDataQueryProperty -> Maybe (Value Text)
id :: MetricDataQueryProperty -> Value Text
label :: MetricDataQueryProperty -> Maybe (Value Text)
metricStat :: MetricDataQueryProperty -> Maybe MetricStatProperty
period :: MetricDataQueryProperty -> Maybe (Value Integer)
returnData :: MetricDataQueryProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
    = MetricDataQueryProperty {id :: Value Text
id = PropertyType "Id" MetricDataQueryProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
instance Property "Label" MetricDataQueryProperty where
  type PropertyType "Label" MetricDataQueryProperty = Value Prelude.Text
  set :: PropertyType "Label" MetricDataQueryProperty
-> MetricDataQueryProperty -> MetricDataQueryProperty
set PropertyType "Label" MetricDataQueryProperty
newValue MetricDataQueryProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: MetricDataQueryProperty -> ()
accountId :: MetricDataQueryProperty -> Maybe (Value Text)
expression :: MetricDataQueryProperty -> Maybe (Value Text)
id :: MetricDataQueryProperty -> Value Text
label :: MetricDataQueryProperty -> Maybe (Value Text)
metricStat :: MetricDataQueryProperty -> Maybe MetricStatProperty
period :: MetricDataQueryProperty -> Maybe (Value Integer)
returnData :: MetricDataQueryProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
    = MetricDataQueryProperty {label :: Maybe (Value Text)
label = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Label" MetricDataQueryProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
instance Property "MetricStat" MetricDataQueryProperty where
  type PropertyType "MetricStat" MetricDataQueryProperty = MetricStatProperty
  set :: PropertyType "MetricStat" MetricDataQueryProperty
-> MetricDataQueryProperty -> MetricDataQueryProperty
set PropertyType "MetricStat" MetricDataQueryProperty
newValue MetricDataQueryProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: MetricDataQueryProperty -> ()
accountId :: MetricDataQueryProperty -> Maybe (Value Text)
expression :: MetricDataQueryProperty -> Maybe (Value Text)
id :: MetricDataQueryProperty -> Value Text
label :: MetricDataQueryProperty -> Maybe (Value Text)
metricStat :: MetricDataQueryProperty -> Maybe MetricStatProperty
period :: MetricDataQueryProperty -> Maybe (Value Integer)
returnData :: MetricDataQueryProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
    = MetricDataQueryProperty {metricStat :: Maybe MetricStatProperty
metricStat = MetricStatProperty -> Maybe MetricStatProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MetricStat" MetricDataQueryProperty
MetricStatProperty
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
instance Property "Period" MetricDataQueryProperty where
  type PropertyType "Period" MetricDataQueryProperty = Value Prelude.Integer
  set :: PropertyType "Period" MetricDataQueryProperty
-> MetricDataQueryProperty -> MetricDataQueryProperty
set PropertyType "Period" MetricDataQueryProperty
newValue MetricDataQueryProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: MetricDataQueryProperty -> ()
accountId :: MetricDataQueryProperty -> Maybe (Value Text)
expression :: MetricDataQueryProperty -> Maybe (Value Text)
id :: MetricDataQueryProperty -> Value Text
label :: MetricDataQueryProperty -> Maybe (Value Text)
metricStat :: MetricDataQueryProperty -> Maybe MetricStatProperty
period :: MetricDataQueryProperty -> Maybe (Value Integer)
returnData :: MetricDataQueryProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
    = MetricDataQueryProperty {period :: Maybe (Value Integer)
period = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Period" MetricDataQueryProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
returnData :: Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
returnData :: Maybe (Value Bool)
..}
instance Property "ReturnData" MetricDataQueryProperty where
  type PropertyType "ReturnData" MetricDataQueryProperty = Value Prelude.Bool
  set :: PropertyType "ReturnData" MetricDataQueryProperty
-> MetricDataQueryProperty -> MetricDataQueryProperty
set PropertyType "ReturnData" MetricDataQueryProperty
newValue MetricDataQueryProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: MetricDataQueryProperty -> ()
accountId :: MetricDataQueryProperty -> Maybe (Value Text)
expression :: MetricDataQueryProperty -> Maybe (Value Text)
id :: MetricDataQueryProperty -> Value Text
label :: MetricDataQueryProperty -> Maybe (Value Text)
metricStat :: MetricDataQueryProperty -> Maybe MetricStatProperty
period :: MetricDataQueryProperty -> Maybe (Value Integer)
returnData :: MetricDataQueryProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
returnData :: Maybe (Value Bool)
..}
    = MetricDataQueryProperty {returnData :: Maybe (Value Bool)
returnData = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ReturnData" MetricDataQueryProperty
Value Bool
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe MetricStatProperty
()
Value Text
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
haddock_workaround_ :: ()
accountId :: Maybe (Value Text)
expression :: Maybe (Value Text)
id :: Value Text
label :: Maybe (Value Text)
metricStat :: Maybe MetricStatProperty
period :: Maybe (Value Integer)
..}