module Stratosphere.IoTEvents.DetectorModel.AssetPropertyVariantProperty (
AssetPropertyVariantProperty(..), mkAssetPropertyVariantProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AssetPropertyVariantProperty
=
AssetPropertyVariantProperty {AssetPropertyVariantProperty -> ()
haddock_workaround_ :: (),
AssetPropertyVariantProperty -> Maybe (Value Text)
booleanValue :: (Prelude.Maybe (Value Prelude.Text)),
AssetPropertyVariantProperty -> Maybe (Value Text)
doubleValue :: (Prelude.Maybe (Value Prelude.Text)),
AssetPropertyVariantProperty -> Maybe (Value Text)
integerValue :: (Prelude.Maybe (Value Prelude.Text)),
AssetPropertyVariantProperty -> Maybe (Value Text)
stringValue :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> Bool
(AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> Bool)
-> (AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> Bool)
-> Eq AssetPropertyVariantProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> Bool
== :: AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> Bool
$c/= :: AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> Bool
/= :: AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> Bool
Prelude.Eq, Int -> AssetPropertyVariantProperty -> ShowS
[AssetPropertyVariantProperty] -> ShowS
AssetPropertyVariantProperty -> String
(Int -> AssetPropertyVariantProperty -> ShowS)
-> (AssetPropertyVariantProperty -> String)
-> ([AssetPropertyVariantProperty] -> ShowS)
-> Show AssetPropertyVariantProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AssetPropertyVariantProperty -> ShowS
showsPrec :: Int -> AssetPropertyVariantProperty -> ShowS
$cshow :: AssetPropertyVariantProperty -> String
show :: AssetPropertyVariantProperty -> String
$cshowList :: [AssetPropertyVariantProperty] -> ShowS
showList :: [AssetPropertyVariantProperty] -> ShowS
Prelude.Show)
mkAssetPropertyVariantProperty :: AssetPropertyVariantProperty
mkAssetPropertyVariantProperty :: AssetPropertyVariantProperty
mkAssetPropertyVariantProperty
= AssetPropertyVariantProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), booleanValue :: Maybe (Value Text)
booleanValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
doubleValue :: Maybe (Value Text)
doubleValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, integerValue :: Maybe (Value Text)
integerValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
stringValue :: Maybe (Value Text)
stringValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AssetPropertyVariantProperty where
toResourceProperties :: AssetPropertyVariantProperty -> ResourceProperties
toResourceProperties AssetPropertyVariantProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssetPropertyVariantProperty -> ()
booleanValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
doubleValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
integerValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
stringValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
doubleValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTEvents::DetectorModel.AssetPropertyVariant",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"BooleanValue" (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)
booleanValue,
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
"DoubleValue" (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)
doubleValue,
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
"IntegerValue" (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)
integerValue,
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 AssetPropertyVariantProperty where
toJSON :: AssetPropertyVariantProperty -> Value
toJSON AssetPropertyVariantProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssetPropertyVariantProperty -> ()
booleanValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
doubleValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
integerValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
stringValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
doubleValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"BooleanValue" (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)
booleanValue,
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
"DoubleValue" (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)
doubleValue,
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
"IntegerValue" (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)
integerValue,
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" AssetPropertyVariantProperty where
type PropertyType "BooleanValue" AssetPropertyVariantProperty = Value Prelude.Text
set :: PropertyType "BooleanValue" AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> AssetPropertyVariantProperty
set PropertyType "BooleanValue" AssetPropertyVariantProperty
newValue AssetPropertyVariantProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssetPropertyVariantProperty -> ()
booleanValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
doubleValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
integerValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
stringValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
doubleValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
..}
= AssetPropertyVariantProperty
{booleanValue :: Maybe (Value Text)
booleanValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BooleanValue" AssetPropertyVariantProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
doubleValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
doubleValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
..}
instance Property "DoubleValue" AssetPropertyVariantProperty where
type PropertyType "DoubleValue" AssetPropertyVariantProperty = Value Prelude.Text
set :: PropertyType "DoubleValue" AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> AssetPropertyVariantProperty
set PropertyType "DoubleValue" AssetPropertyVariantProperty
newValue AssetPropertyVariantProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssetPropertyVariantProperty -> ()
booleanValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
doubleValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
integerValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
stringValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
doubleValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
..}
= AssetPropertyVariantProperty
{doubleValue :: Maybe (Value Text)
doubleValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DoubleValue" AssetPropertyVariantProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
..}
instance Property "IntegerValue" AssetPropertyVariantProperty where
type PropertyType "IntegerValue" AssetPropertyVariantProperty = Value Prelude.Text
set :: PropertyType "IntegerValue" AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> AssetPropertyVariantProperty
set PropertyType "IntegerValue" AssetPropertyVariantProperty
newValue AssetPropertyVariantProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssetPropertyVariantProperty -> ()
booleanValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
doubleValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
integerValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
stringValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
doubleValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
..}
= AssetPropertyVariantProperty
{integerValue :: Maybe (Value Text)
integerValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IntegerValue" AssetPropertyVariantProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
doubleValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
doubleValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
..}
instance Property "StringValue" AssetPropertyVariantProperty where
type PropertyType "StringValue" AssetPropertyVariantProperty = Value Prelude.Text
set :: PropertyType "StringValue" AssetPropertyVariantProperty
-> AssetPropertyVariantProperty -> AssetPropertyVariantProperty
set PropertyType "StringValue" AssetPropertyVariantProperty
newValue AssetPropertyVariantProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssetPropertyVariantProperty -> ()
booleanValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
doubleValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
integerValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
stringValue :: AssetPropertyVariantProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
doubleValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
stringValue :: Maybe (Value Text)
..}
= AssetPropertyVariantProperty
{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" AssetPropertyVariantProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
doubleValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Text)
doubleValue :: Maybe (Value Text)
integerValue :: Maybe (Value Text)
..}