module Stratosphere.CustomerProfiles.CalculatedAttributeDefinition.ThresholdProperty (
        ThresholdProperty(..), mkThresholdProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ThresholdProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-calculatedattributedefinition-threshold.html>
    ThresholdProperty {ThresholdProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-calculatedattributedefinition-threshold.html#cfn-customerprofiles-calculatedattributedefinition-threshold-operator>
                       ThresholdProperty -> Value Text
operator :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-calculatedattributedefinition-threshold.html#cfn-customerprofiles-calculatedattributedefinition-threshold-value>
                       ThresholdProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (ThresholdProperty -> ThresholdProperty -> Bool
(ThresholdProperty -> ThresholdProperty -> Bool)
-> (ThresholdProperty -> ThresholdProperty -> Bool)
-> Eq ThresholdProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ThresholdProperty -> ThresholdProperty -> Bool
== :: ThresholdProperty -> ThresholdProperty -> Bool
$c/= :: ThresholdProperty -> ThresholdProperty -> Bool
/= :: ThresholdProperty -> ThresholdProperty -> Bool
Prelude.Eq, Int -> ThresholdProperty -> ShowS
[ThresholdProperty] -> ShowS
ThresholdProperty -> String
(Int -> ThresholdProperty -> ShowS)
-> (ThresholdProperty -> String)
-> ([ThresholdProperty] -> ShowS)
-> Show ThresholdProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ThresholdProperty -> ShowS
showsPrec :: Int -> ThresholdProperty -> ShowS
$cshow :: ThresholdProperty -> String
show :: ThresholdProperty -> String
$cshowList :: [ThresholdProperty] -> ShowS
showList :: [ThresholdProperty] -> ShowS
Prelude.Show)
mkThresholdProperty ::
  Value Prelude.Text -> Value Prelude.Text -> ThresholdProperty
mkThresholdProperty :: Value Text -> Value Text -> ThresholdProperty
mkThresholdProperty Value Text
operator Value Text
value
  = ThresholdProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), operator :: Value Text
operator = Value Text
operator, value :: Value Text
value = Value Text
value}
instance ToResourceProperties ThresholdProperty where
  toResourceProperties :: ThresholdProperty -> ResourceProperties
toResourceProperties ThresholdProperty {()
Value Text
haddock_workaround_ :: ThresholdProperty -> ()
operator :: ThresholdProperty -> Value Text
value :: ThresholdProperty -> Value Text
haddock_workaround_ :: ()
operator :: Value Text
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CustomerProfiles::CalculatedAttributeDefinition.Threshold",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Operator" 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
operator, Key
"Value" 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
value]}
instance JSON.ToJSON ThresholdProperty where
  toJSON :: ThresholdProperty -> Value
toJSON ThresholdProperty {()
Value Text
haddock_workaround_ :: ThresholdProperty -> ()
operator :: ThresholdProperty -> Value Text
value :: ThresholdProperty -> Value Text
haddock_workaround_ :: ()
operator :: Value Text
value :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Operator" 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
operator, Key
"Value" 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
value]
instance Property "Operator" ThresholdProperty where
  type PropertyType "Operator" ThresholdProperty = Value Prelude.Text
  set :: PropertyType "Operator" ThresholdProperty
-> ThresholdProperty -> ThresholdProperty
set PropertyType "Operator" ThresholdProperty
newValue ThresholdProperty {()
Value Text
haddock_workaround_ :: ThresholdProperty -> ()
operator :: ThresholdProperty -> Value Text
value :: ThresholdProperty -> Value Text
haddock_workaround_ :: ()
operator :: Value Text
value :: Value Text
..}
    = ThresholdProperty {operator :: Value Text
operator = PropertyType "Operator" ThresholdProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" ThresholdProperty where
  type PropertyType "Value" ThresholdProperty = Value Prelude.Text
  set :: PropertyType "Value" ThresholdProperty
-> ThresholdProperty -> ThresholdProperty
set PropertyType "Value" ThresholdProperty
newValue ThresholdProperty {()
Value Text
haddock_workaround_ :: ThresholdProperty -> ()
operator :: ThresholdProperty -> Value Text
value :: ThresholdProperty -> Value Text
haddock_workaround_ :: ()
operator :: Value Text
value :: Value Text
..}
    = ThresholdProperty {value :: Value Text
value = PropertyType "Value" ThresholdProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
operator :: Value Text
haddock_workaround_ :: ()
operator :: Value Text
..}