module Stratosphere.IoTFleetWise.Campaign.DataPartitionUploadOptionsProperty (
DataPartitionUploadOptionsProperty(..),
mkDataPartitionUploadOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataPartitionUploadOptionsProperty
=
DataPartitionUploadOptionsProperty {DataPartitionUploadOptionsProperty -> ()
haddock_workaround_ :: (),
DataPartitionUploadOptionsProperty -> Maybe (Value Integer)
conditionLanguageVersion :: (Prelude.Maybe (Value Prelude.Integer)),
DataPartitionUploadOptionsProperty -> Value Text
expression :: (Value Prelude.Text)}
deriving stock (DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty -> Bool
(DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty -> Bool)
-> (DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty -> Bool)
-> Eq DataPartitionUploadOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty -> Bool
== :: DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty -> Bool
$c/= :: DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty -> Bool
/= :: DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty -> Bool
Prelude.Eq, Int -> DataPartitionUploadOptionsProperty -> ShowS
[DataPartitionUploadOptionsProperty] -> ShowS
DataPartitionUploadOptionsProperty -> String
(Int -> DataPartitionUploadOptionsProperty -> ShowS)
-> (DataPartitionUploadOptionsProperty -> String)
-> ([DataPartitionUploadOptionsProperty] -> ShowS)
-> Show DataPartitionUploadOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataPartitionUploadOptionsProperty -> ShowS
showsPrec :: Int -> DataPartitionUploadOptionsProperty -> ShowS
$cshow :: DataPartitionUploadOptionsProperty -> String
show :: DataPartitionUploadOptionsProperty -> String
$cshowList :: [DataPartitionUploadOptionsProperty] -> ShowS
showList :: [DataPartitionUploadOptionsProperty] -> ShowS
Prelude.Show)
mkDataPartitionUploadOptionsProperty ::
Value Prelude.Text -> DataPartitionUploadOptionsProperty
mkDataPartitionUploadOptionsProperty :: Value Text -> DataPartitionUploadOptionsProperty
mkDataPartitionUploadOptionsProperty Value Text
expression
= DataPartitionUploadOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), expression :: Value Text
expression = Value Text
expression,
conditionLanguageVersion :: Maybe (Value Integer)
conditionLanguageVersion = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataPartitionUploadOptionsProperty where
toResourceProperties :: DataPartitionUploadOptionsProperty -> ResourceProperties
toResourceProperties DataPartitionUploadOptionsProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: DataPartitionUploadOptionsProperty -> ()
conditionLanguageVersion :: DataPartitionUploadOptionsProperty -> Maybe (Value Integer)
expression :: DataPartitionUploadOptionsProperty -> Value Text
haddock_workaround_ :: ()
conditionLanguageVersion :: Maybe (Value Integer)
expression :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTFleetWise::Campaign.DataPartitionUploadOptions",
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
"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..= Value Text
expression]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"ConditionLanguageVersion"
(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)
conditionLanguageVersion]))}
instance JSON.ToJSON DataPartitionUploadOptionsProperty where
toJSON :: DataPartitionUploadOptionsProperty -> Value
toJSON DataPartitionUploadOptionsProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: DataPartitionUploadOptionsProperty -> ()
conditionLanguageVersion :: DataPartitionUploadOptionsProperty -> Maybe (Value Integer)
expression :: DataPartitionUploadOptionsProperty -> Value Text
haddock_workaround_ :: ()
conditionLanguageVersion :: Maybe (Value Integer)
expression :: 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
"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..= Value Text
expression]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"ConditionLanguageVersion"
(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)
conditionLanguageVersion])))
instance Property "ConditionLanguageVersion" DataPartitionUploadOptionsProperty where
type PropertyType "ConditionLanguageVersion" DataPartitionUploadOptionsProperty = Value Prelude.Integer
set :: PropertyType
"ConditionLanguageVersion" DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty
set PropertyType
"ConditionLanguageVersion" DataPartitionUploadOptionsProperty
newValue DataPartitionUploadOptionsProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: DataPartitionUploadOptionsProperty -> ()
conditionLanguageVersion :: DataPartitionUploadOptionsProperty -> Maybe (Value Integer)
expression :: DataPartitionUploadOptionsProperty -> Value Text
haddock_workaround_ :: ()
conditionLanguageVersion :: Maybe (Value Integer)
expression :: Value Text
..}
= DataPartitionUploadOptionsProperty
{conditionLanguageVersion :: Maybe (Value Integer)
conditionLanguageVersion = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ConditionLanguageVersion" DataPartitionUploadOptionsProperty
Value Integer
newValue, ()
Value Text
haddock_workaround_ :: ()
expression :: Value Text
haddock_workaround_ :: ()
expression :: Value Text
..}
instance Property "Expression" DataPartitionUploadOptionsProperty where
type PropertyType "Expression" DataPartitionUploadOptionsProperty = Value Prelude.Text
set :: PropertyType "Expression" DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty
-> DataPartitionUploadOptionsProperty
set PropertyType "Expression" DataPartitionUploadOptionsProperty
newValue DataPartitionUploadOptionsProperty {Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: DataPartitionUploadOptionsProperty -> ()
conditionLanguageVersion :: DataPartitionUploadOptionsProperty -> Maybe (Value Integer)
expression :: DataPartitionUploadOptionsProperty -> Value Text
haddock_workaround_ :: ()
conditionLanguageVersion :: Maybe (Value Integer)
expression :: Value Text
..}
= DataPartitionUploadOptionsProperty {expression :: Value Text
expression = PropertyType "Expression" DataPartitionUploadOptionsProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
conditionLanguageVersion :: Maybe (Value Integer)
haddock_workaround_ :: ()
conditionLanguageVersion :: Maybe (Value Integer)
..}