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