module Stratosphere.Evidently.Feature.VariationObjectProperty (
        VariationObjectProperty(..), mkVariationObjectProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VariationObjectProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-feature-variationobject.html>
    VariationObjectProperty {VariationObjectProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-feature-variationobject.html#cfn-evidently-feature-variationobject-booleanvalue>
                             VariationObjectProperty -> Maybe (Value Bool)
booleanValue :: (Prelude.Maybe (Value Prelude.Bool)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-feature-variationobject.html#cfn-evidently-feature-variationobject-doublevalue>
                             VariationObjectProperty -> Maybe (Value Double)
doubleValue :: (Prelude.Maybe (Value Prelude.Double)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-feature-variationobject.html#cfn-evidently-feature-variationobject-longvalue>
                             VariationObjectProperty -> Maybe (Value Double)
longValue :: (Prelude.Maybe (Value Prelude.Double)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-feature-variationobject.html#cfn-evidently-feature-variationobject-stringvalue>
                             VariationObjectProperty -> Maybe (Value Text)
stringValue :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-evidently-feature-variationobject.html#cfn-evidently-feature-variationobject-variationname>
                             VariationObjectProperty -> Value Text
variationName :: (Value Prelude.Text)}
  deriving stock (VariationObjectProperty -> VariationObjectProperty -> Bool
(VariationObjectProperty -> VariationObjectProperty -> Bool)
-> (VariationObjectProperty -> VariationObjectProperty -> Bool)
-> Eq VariationObjectProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VariationObjectProperty -> VariationObjectProperty -> Bool
== :: VariationObjectProperty -> VariationObjectProperty -> Bool
$c/= :: VariationObjectProperty -> VariationObjectProperty -> Bool
/= :: VariationObjectProperty -> VariationObjectProperty -> Bool
Prelude.Eq, Int -> VariationObjectProperty -> ShowS
[VariationObjectProperty] -> ShowS
VariationObjectProperty -> String
(Int -> VariationObjectProperty -> ShowS)
-> (VariationObjectProperty -> String)
-> ([VariationObjectProperty] -> ShowS)
-> Show VariationObjectProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VariationObjectProperty -> ShowS
showsPrec :: Int -> VariationObjectProperty -> ShowS
$cshow :: VariationObjectProperty -> String
show :: VariationObjectProperty -> String
$cshowList :: [VariationObjectProperty] -> ShowS
showList :: [VariationObjectProperty] -> ShowS
Prelude.Show)
mkVariationObjectProperty ::
  Value Prelude.Text -> VariationObjectProperty
mkVariationObjectProperty :: Value Text -> VariationObjectProperty
mkVariationObjectProperty Value Text
variationName
  = VariationObjectProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), variationName :: Value Text
variationName = Value Text
variationName,
       booleanValue :: Maybe (Value Bool)
booleanValue = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, doubleValue :: Maybe (Value Double)
doubleValue = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       longValue :: Maybe (Value Double)
longValue = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, stringValue :: Maybe (Value Text)
stringValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VariationObjectProperty where
  toResourceProperties :: VariationObjectProperty -> ResourceProperties
toResourceProperties VariationObjectProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VariationObjectProperty -> ()
booleanValue :: VariationObjectProperty -> Maybe (Value Bool)
doubleValue :: VariationObjectProperty -> Maybe (Value Double)
longValue :: VariationObjectProperty -> Maybe (Value Double)
stringValue :: VariationObjectProperty -> Maybe (Value Text)
variationName :: VariationObjectProperty -> Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Evidently::Feature.VariationObject",
         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
"VariationName" 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
variationName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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
"BooleanValue" (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)
booleanValue,
                               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DoubleValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
doubleValue,
                               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LongValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
longValue,
                               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
"StringValue" (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)
stringValue]))}
instance JSON.ToJSON VariationObjectProperty where
  toJSON :: VariationObjectProperty -> Value
toJSON VariationObjectProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VariationObjectProperty -> ()
booleanValue :: VariationObjectProperty -> Maybe (Value Bool)
doubleValue :: VariationObjectProperty -> Maybe (Value Double)
longValue :: VariationObjectProperty -> Maybe (Value Double)
stringValue :: VariationObjectProperty -> Maybe (Value Text)
variationName :: VariationObjectProperty -> Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
..}
    = [(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
"VariationName" 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
variationName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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
"BooleanValue" (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)
booleanValue,
                  Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DoubleValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
doubleValue,
                  Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LongValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
longValue,
                  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
"StringValue" (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)
stringValue])))
instance Property "BooleanValue" VariationObjectProperty where
  type PropertyType "BooleanValue" VariationObjectProperty = Value Prelude.Bool
  set :: PropertyType "BooleanValue" VariationObjectProperty
-> VariationObjectProperty -> VariationObjectProperty
set PropertyType "BooleanValue" VariationObjectProperty
newValue VariationObjectProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VariationObjectProperty -> ()
booleanValue :: VariationObjectProperty -> Maybe (Value Bool)
doubleValue :: VariationObjectProperty -> Maybe (Value Double)
longValue :: VariationObjectProperty -> Maybe (Value Double)
stringValue :: VariationObjectProperty -> Maybe (Value Text)
variationName :: VariationObjectProperty -> Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
..}
    = VariationObjectProperty
        {booleanValue :: Maybe (Value Bool)
booleanValue = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BooleanValue" VariationObjectProperty
Value Bool
newValue, Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
haddock_workaround_ :: ()
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
..}
instance Property "DoubleValue" VariationObjectProperty where
  type PropertyType "DoubleValue" VariationObjectProperty = Value Prelude.Double
  set :: PropertyType "DoubleValue" VariationObjectProperty
-> VariationObjectProperty -> VariationObjectProperty
set PropertyType "DoubleValue" VariationObjectProperty
newValue VariationObjectProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VariationObjectProperty -> ()
booleanValue :: VariationObjectProperty -> Maybe (Value Bool)
doubleValue :: VariationObjectProperty -> Maybe (Value Double)
longValue :: VariationObjectProperty -> Maybe (Value Double)
stringValue :: VariationObjectProperty -> Maybe (Value Text)
variationName :: VariationObjectProperty -> Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
..}
    = VariationObjectProperty {doubleValue :: Maybe (Value Double)
doubleValue = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DoubleValue" VariationObjectProperty
Value Double
newValue, Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
..}
instance Property "LongValue" VariationObjectProperty where
  type PropertyType "LongValue" VariationObjectProperty = Value Prelude.Double
  set :: PropertyType "LongValue" VariationObjectProperty
-> VariationObjectProperty -> VariationObjectProperty
set PropertyType "LongValue" VariationObjectProperty
newValue VariationObjectProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VariationObjectProperty -> ()
booleanValue :: VariationObjectProperty -> Maybe (Value Bool)
doubleValue :: VariationObjectProperty -> Maybe (Value Double)
longValue :: VariationObjectProperty -> Maybe (Value Double)
stringValue :: VariationObjectProperty -> Maybe (Value Text)
variationName :: VariationObjectProperty -> Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
..}
    = VariationObjectProperty {longValue :: Maybe (Value Double)
longValue = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LongValue" VariationObjectProperty
Value Double
newValue, Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
..}
instance Property "StringValue" VariationObjectProperty where
  type PropertyType "StringValue" VariationObjectProperty = Value Prelude.Text
  set :: PropertyType "StringValue" VariationObjectProperty
-> VariationObjectProperty -> VariationObjectProperty
set PropertyType "StringValue" VariationObjectProperty
newValue VariationObjectProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VariationObjectProperty -> ()
booleanValue :: VariationObjectProperty -> Maybe (Value Bool)
doubleValue :: VariationObjectProperty -> Maybe (Value Double)
longValue :: VariationObjectProperty -> Maybe (Value Double)
stringValue :: VariationObjectProperty -> Maybe (Value Text)
variationName :: VariationObjectProperty -> Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
..}
    = VariationObjectProperty {stringValue :: Maybe (Value Text)
stringValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StringValue" VariationObjectProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Double)
()
Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
variationName :: Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
variationName :: Value Text
..}
instance Property "VariationName" VariationObjectProperty where
  type PropertyType "VariationName" VariationObjectProperty = Value Prelude.Text
  set :: PropertyType "VariationName" VariationObjectProperty
-> VariationObjectProperty -> VariationObjectProperty
set PropertyType "VariationName" VariationObjectProperty
newValue VariationObjectProperty {Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VariationObjectProperty -> ()
booleanValue :: VariationObjectProperty -> Maybe (Value Bool)
doubleValue :: VariationObjectProperty -> Maybe (Value Double)
longValue :: VariationObjectProperty -> Maybe (Value Double)
stringValue :: VariationObjectProperty -> Maybe (Value Text)
variationName :: VariationObjectProperty -> Value Text
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
variationName :: Value Text
..}
    = VariationObjectProperty {variationName :: Value Text
variationName = PropertyType "VariationName" VariationObjectProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
longValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
..}