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