module Stratosphere.MediaPackageV2.OriginEndpoint.StartTagProperty (
StartTagProperty(..), mkStartTagProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StartTagProperty
=
StartTagProperty {StartTagProperty -> ()
haddock_workaround_ :: (),
StartTagProperty -> Maybe (Value Bool)
precise :: (Prelude.Maybe (Value Prelude.Bool)),
StartTagProperty -> Value Double
timeOffset :: (Value Prelude.Double)}
deriving stock (StartTagProperty -> StartTagProperty -> Bool
(StartTagProperty -> StartTagProperty -> Bool)
-> (StartTagProperty -> StartTagProperty -> Bool)
-> Eq StartTagProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StartTagProperty -> StartTagProperty -> Bool
== :: StartTagProperty -> StartTagProperty -> Bool
$c/= :: StartTagProperty -> StartTagProperty -> Bool
/= :: StartTagProperty -> StartTagProperty -> Bool
Prelude.Eq, Int -> StartTagProperty -> ShowS
[StartTagProperty] -> ShowS
StartTagProperty -> String
(Int -> StartTagProperty -> ShowS)
-> (StartTagProperty -> String)
-> ([StartTagProperty] -> ShowS)
-> Show StartTagProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StartTagProperty -> ShowS
showsPrec :: Int -> StartTagProperty -> ShowS
$cshow :: StartTagProperty -> String
show :: StartTagProperty -> String
$cshowList :: [StartTagProperty] -> ShowS
showList :: [StartTagProperty] -> ShowS
Prelude.Show)
mkStartTagProperty :: Value Prelude.Double -> StartTagProperty
mkStartTagProperty :: Value Double -> StartTagProperty
mkStartTagProperty Value Double
timeOffset
= StartTagProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), timeOffset :: Value Double
timeOffset = Value Double
timeOffset,
precise :: Maybe (Value Bool)
precise = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StartTagProperty where
toResourceProperties :: StartTagProperty -> ResourceProperties
toResourceProperties StartTagProperty {Maybe (Value Bool)
()
Value Double
haddock_workaround_ :: StartTagProperty -> ()
precise :: StartTagProperty -> Maybe (Value Bool)
timeOffset :: StartTagProperty -> Value Double
haddock_workaround_ :: ()
precise :: Maybe (Value Bool)
timeOffset :: Value Double
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaPackageV2::OriginEndpoint.StartTag",
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
"TimeOffset" 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..= Value Double
timeOffset]
([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
"Precise" (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)
precise]))}
instance JSON.ToJSON StartTagProperty where
toJSON :: StartTagProperty -> Value
toJSON StartTagProperty {Maybe (Value Bool)
()
Value Double
haddock_workaround_ :: StartTagProperty -> ()
precise :: StartTagProperty -> Maybe (Value Bool)
timeOffset :: StartTagProperty -> Value Double
haddock_workaround_ :: ()
precise :: Maybe (Value Bool)
timeOffset :: Value Double
..}
= [(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
"TimeOffset" 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..= Value Double
timeOffset]
([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
"Precise" (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)
precise])))
instance Property "Precise" StartTagProperty where
type PropertyType "Precise" StartTagProperty = Value Prelude.Bool
set :: PropertyType "Precise" StartTagProperty
-> StartTagProperty -> StartTagProperty
set PropertyType "Precise" StartTagProperty
newValue StartTagProperty {Maybe (Value Bool)
()
Value Double
haddock_workaround_ :: StartTagProperty -> ()
precise :: StartTagProperty -> Maybe (Value Bool)
timeOffset :: StartTagProperty -> Value Double
haddock_workaround_ :: ()
precise :: Maybe (Value Bool)
timeOffset :: Value Double
..}
= StartTagProperty {precise :: Maybe (Value Bool)
precise = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Precise" StartTagProperty
Value Bool
newValue, ()
Value Double
haddock_workaround_ :: ()
timeOffset :: Value Double
haddock_workaround_ :: ()
timeOffset :: Value Double
..}
instance Property "TimeOffset" StartTagProperty where
type PropertyType "TimeOffset" StartTagProperty = Value Prelude.Double
set :: PropertyType "TimeOffset" StartTagProperty
-> StartTagProperty -> StartTagProperty
set PropertyType "TimeOffset" StartTagProperty
newValue StartTagProperty {Maybe (Value Bool)
()
Value Double
haddock_workaround_ :: StartTagProperty -> ()
precise :: StartTagProperty -> Maybe (Value Bool)
timeOffset :: StartTagProperty -> Value Double
haddock_workaround_ :: ()
precise :: Maybe (Value Bool)
timeOffset :: Value Double
..}
= StartTagProperty {timeOffset :: Value Double
timeOffset = PropertyType "TimeOffset" StartTagProperty
Value Double
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
precise :: Maybe (Value Bool)
haddock_workaround_ :: ()
precise :: Maybe (Value Bool)
..}