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