module Stratosphere.MediaLive.Channel.NielsenConfigurationProperty (
NielsenConfigurationProperty(..), mkNielsenConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NielsenConfigurationProperty
=
NielsenConfigurationProperty {NielsenConfigurationProperty -> ()
haddock_workaround_ :: (),
NielsenConfigurationProperty -> Maybe (Value Text)
distributorId :: (Prelude.Maybe (Value Prelude.Text)),
NielsenConfigurationProperty -> Maybe (Value Text)
nielsenPcmToId3Tagging :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (NielsenConfigurationProperty
-> NielsenConfigurationProperty -> Bool
(NielsenConfigurationProperty
-> NielsenConfigurationProperty -> Bool)
-> (NielsenConfigurationProperty
-> NielsenConfigurationProperty -> Bool)
-> Eq NielsenConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NielsenConfigurationProperty
-> NielsenConfigurationProperty -> Bool
== :: NielsenConfigurationProperty
-> NielsenConfigurationProperty -> Bool
$c/= :: NielsenConfigurationProperty
-> NielsenConfigurationProperty -> Bool
/= :: NielsenConfigurationProperty
-> NielsenConfigurationProperty -> Bool
Prelude.Eq, Int -> NielsenConfigurationProperty -> ShowS
[NielsenConfigurationProperty] -> ShowS
NielsenConfigurationProperty -> String
(Int -> NielsenConfigurationProperty -> ShowS)
-> (NielsenConfigurationProperty -> String)
-> ([NielsenConfigurationProperty] -> ShowS)
-> Show NielsenConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NielsenConfigurationProperty -> ShowS
showsPrec :: Int -> NielsenConfigurationProperty -> ShowS
$cshow :: NielsenConfigurationProperty -> String
show :: NielsenConfigurationProperty -> String
$cshowList :: [NielsenConfigurationProperty] -> ShowS
showList :: [NielsenConfigurationProperty] -> ShowS
Prelude.Show)
mkNielsenConfigurationProperty :: NielsenConfigurationProperty
mkNielsenConfigurationProperty :: NielsenConfigurationProperty
mkNielsenConfigurationProperty
= NielsenConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), distributorId :: Maybe (Value Text)
distributorId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
nielsenPcmToId3Tagging :: Maybe (Value Text)
nielsenPcmToId3Tagging = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NielsenConfigurationProperty where
toResourceProperties :: NielsenConfigurationProperty -> ResourceProperties
toResourceProperties NielsenConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: NielsenConfigurationProperty -> ()
distributorId :: NielsenConfigurationProperty -> Maybe (Value Text)
nielsenPcmToId3Tagging :: NielsenConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
distributorId :: Maybe (Value Text)
nielsenPcmToId3Tagging :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.NielsenConfiguration",
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
"DistributorId" (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)
distributorId,
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
"NielsenPcmToId3Tagging"
(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)
nielsenPcmToId3Tagging])}
instance JSON.ToJSON NielsenConfigurationProperty where
toJSON :: NielsenConfigurationProperty -> Value
toJSON NielsenConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: NielsenConfigurationProperty -> ()
distributorId :: NielsenConfigurationProperty -> Maybe (Value Text)
nielsenPcmToId3Tagging :: NielsenConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
distributorId :: Maybe (Value Text)
nielsenPcmToId3Tagging :: 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
"DistributorId" (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)
distributorId,
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
"NielsenPcmToId3Tagging"
(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)
nielsenPcmToId3Tagging]))
instance Property "DistributorId" NielsenConfigurationProperty where
type PropertyType "DistributorId" NielsenConfigurationProperty = Value Prelude.Text
set :: PropertyType "DistributorId" NielsenConfigurationProperty
-> NielsenConfigurationProperty -> NielsenConfigurationProperty
set PropertyType "DistributorId" NielsenConfigurationProperty
newValue NielsenConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: NielsenConfigurationProperty -> ()
distributorId :: NielsenConfigurationProperty -> Maybe (Value Text)
nielsenPcmToId3Tagging :: NielsenConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
distributorId :: Maybe (Value Text)
nielsenPcmToId3Tagging :: Maybe (Value Text)
..}
= NielsenConfigurationProperty
{distributorId :: Maybe (Value Text)
distributorId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DistributorId" NielsenConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
nielsenPcmToId3Tagging :: Maybe (Value Text)
haddock_workaround_ :: ()
nielsenPcmToId3Tagging :: Maybe (Value Text)
..}
instance Property "NielsenPcmToId3Tagging" NielsenConfigurationProperty where
type PropertyType "NielsenPcmToId3Tagging" NielsenConfigurationProperty = Value Prelude.Text
set :: PropertyType "NielsenPcmToId3Tagging" NielsenConfigurationProperty
-> NielsenConfigurationProperty -> NielsenConfigurationProperty
set PropertyType "NielsenPcmToId3Tagging" NielsenConfigurationProperty
newValue NielsenConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: NielsenConfigurationProperty -> ()
distributorId :: NielsenConfigurationProperty -> Maybe (Value Text)
nielsenPcmToId3Tagging :: NielsenConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
distributorId :: Maybe (Value Text)
nielsenPcmToId3Tagging :: Maybe (Value Text)
..}
= NielsenConfigurationProperty
{nielsenPcmToId3Tagging :: Maybe (Value Text)
nielsenPcmToId3Tagging = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NielsenPcmToId3Tagging" NielsenConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
distributorId :: Maybe (Value Text)
haddock_workaround_ :: ()
distributorId :: Maybe (Value Text)
..}