module Stratosphere.MediaLive.Channel.WavSettingsProperty (
WavSettingsProperty(..), mkWavSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WavSettingsProperty
=
WavSettingsProperty {WavSettingsProperty -> ()
haddock_workaround_ :: (),
WavSettingsProperty -> Maybe (Value Double)
bitDepth :: (Prelude.Maybe (Value Prelude.Double)),
WavSettingsProperty -> Maybe (Value Text)
codingMode :: (Prelude.Maybe (Value Prelude.Text)),
WavSettingsProperty -> Maybe (Value Double)
sampleRate :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (WavSettingsProperty -> WavSettingsProperty -> Bool
(WavSettingsProperty -> WavSettingsProperty -> Bool)
-> (WavSettingsProperty -> WavSettingsProperty -> Bool)
-> Eq WavSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WavSettingsProperty -> WavSettingsProperty -> Bool
== :: WavSettingsProperty -> WavSettingsProperty -> Bool
$c/= :: WavSettingsProperty -> WavSettingsProperty -> Bool
/= :: WavSettingsProperty -> WavSettingsProperty -> Bool
Prelude.Eq, Int -> WavSettingsProperty -> ShowS
[WavSettingsProperty] -> ShowS
WavSettingsProperty -> String
(Int -> WavSettingsProperty -> ShowS)
-> (WavSettingsProperty -> String)
-> ([WavSettingsProperty] -> ShowS)
-> Show WavSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WavSettingsProperty -> ShowS
showsPrec :: Int -> WavSettingsProperty -> ShowS
$cshow :: WavSettingsProperty -> String
show :: WavSettingsProperty -> String
$cshowList :: [WavSettingsProperty] -> ShowS
showList :: [WavSettingsProperty] -> ShowS
Prelude.Show)
mkWavSettingsProperty :: WavSettingsProperty
mkWavSettingsProperty :: WavSettingsProperty
mkWavSettingsProperty
= WavSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), bitDepth :: Maybe (Value Double)
bitDepth = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
codingMode :: Maybe (Value Text)
codingMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, sampleRate :: Maybe (Value Double)
sampleRate = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties WavSettingsProperty where
toResourceProperties :: WavSettingsProperty -> ResourceProperties
toResourceProperties WavSettingsProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: WavSettingsProperty -> ()
bitDepth :: WavSettingsProperty -> Maybe (Value Double)
codingMode :: WavSettingsProperty -> Maybe (Value Text)
sampleRate :: WavSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
bitDepth :: Maybe (Value Double)
codingMode :: Maybe (Value Text)
sampleRate :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.WavSettings",
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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BitDepth" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
bitDepth,
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
"CodingMode" (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)
codingMode,
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..=) Key
"SampleRate" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
sampleRate])}
instance JSON.ToJSON WavSettingsProperty where
toJSON :: WavSettingsProperty -> Value
toJSON WavSettingsProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: WavSettingsProperty -> ()
bitDepth :: WavSettingsProperty -> Maybe (Value Double)
codingMode :: WavSettingsProperty -> Maybe (Value Text)
sampleRate :: WavSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
bitDepth :: Maybe (Value Double)
codingMode :: Maybe (Value Text)
sampleRate :: Maybe (Value Double)
..}
= [(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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BitDepth" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
bitDepth,
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
"CodingMode" (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)
codingMode,
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..=) Key
"SampleRate" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
sampleRate]))
instance Property "BitDepth" WavSettingsProperty where
type PropertyType "BitDepth" WavSettingsProperty = Value Prelude.Double
set :: PropertyType "BitDepth" WavSettingsProperty
-> WavSettingsProperty -> WavSettingsProperty
set PropertyType "BitDepth" WavSettingsProperty
newValue WavSettingsProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: WavSettingsProperty -> ()
bitDepth :: WavSettingsProperty -> Maybe (Value Double)
codingMode :: WavSettingsProperty -> Maybe (Value Text)
sampleRate :: WavSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
bitDepth :: Maybe (Value Double)
codingMode :: Maybe (Value Text)
sampleRate :: Maybe (Value Double)
..}
= WavSettingsProperty {bitDepth :: Maybe (Value Double)
bitDepth = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BitDepth" WavSettingsProperty
Value Double
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
codingMode :: Maybe (Value Text)
sampleRate :: Maybe (Value Double)
haddock_workaround_ :: ()
codingMode :: Maybe (Value Text)
sampleRate :: Maybe (Value Double)
..}
instance Property "CodingMode" WavSettingsProperty where
type PropertyType "CodingMode" WavSettingsProperty = Value Prelude.Text
set :: PropertyType "CodingMode" WavSettingsProperty
-> WavSettingsProperty -> WavSettingsProperty
set PropertyType "CodingMode" WavSettingsProperty
newValue WavSettingsProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: WavSettingsProperty -> ()
bitDepth :: WavSettingsProperty -> Maybe (Value Double)
codingMode :: WavSettingsProperty -> Maybe (Value Text)
sampleRate :: WavSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
bitDepth :: Maybe (Value Double)
codingMode :: Maybe (Value Text)
sampleRate :: Maybe (Value Double)
..}
= WavSettingsProperty {codingMode :: Maybe (Value Text)
codingMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CodingMode" WavSettingsProperty
Value Text
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
bitDepth :: Maybe (Value Double)
sampleRate :: Maybe (Value Double)
haddock_workaround_ :: ()
bitDepth :: Maybe (Value Double)
sampleRate :: Maybe (Value Double)
..}
instance Property "SampleRate" WavSettingsProperty where
type PropertyType "SampleRate" WavSettingsProperty = Value Prelude.Double
set :: PropertyType "SampleRate" WavSettingsProperty
-> WavSettingsProperty -> WavSettingsProperty
set PropertyType "SampleRate" WavSettingsProperty
newValue WavSettingsProperty {Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: WavSettingsProperty -> ()
bitDepth :: WavSettingsProperty -> Maybe (Value Double)
codingMode :: WavSettingsProperty -> Maybe (Value Text)
sampleRate :: WavSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
bitDepth :: Maybe (Value Double)
codingMode :: Maybe (Value Text)
sampleRate :: Maybe (Value Double)
..}
= WavSettingsProperty {sampleRate :: Maybe (Value Double)
sampleRate = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SampleRate" WavSettingsProperty
Value Double
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
bitDepth :: Maybe (Value Double)
codingMode :: Maybe (Value Text)
haddock_workaround_ :: ()
bitDepth :: Maybe (Value Double)
codingMode :: Maybe (Value Text)
..}