module Stratosphere.MediaLive.Input.Smpte2110ReceiverGroupSdpSettingsProperty (
        module Exports, Smpte2110ReceiverGroupSdpSettingsProperty(..),
        mkSmpte2110ReceiverGroupSdpSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Input.InputSdpLocationProperty as Exports
import Stratosphere.ResourceProperties
data Smpte2110ReceiverGroupSdpSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-smpte2110receivergroupsdpsettings.html>
    Smpte2110ReceiverGroupSdpSettingsProperty {Smpte2110ReceiverGroupSdpSettingsProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-smpte2110receivergroupsdpsettings.html#cfn-medialive-input-smpte2110receivergroupsdpsettings-ancillarysdps>
                                               Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
ancillarySdps :: (Prelude.Maybe [InputSdpLocationProperty]),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-smpte2110receivergroupsdpsettings.html#cfn-medialive-input-smpte2110receivergroupsdpsettings-audiosdps>
                                               Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
audioSdps :: (Prelude.Maybe [InputSdpLocationProperty]),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-smpte2110receivergroupsdpsettings.html#cfn-medialive-input-smpte2110receivergroupsdpsettings-videosdp>
                                               Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe InputSdpLocationProperty
videoSdp :: (Prelude.Maybe InputSdpLocationProperty)}
  deriving stock (Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty -> Bool
(Smpte2110ReceiverGroupSdpSettingsProperty
 -> Smpte2110ReceiverGroupSdpSettingsProperty -> Bool)
-> (Smpte2110ReceiverGroupSdpSettingsProperty
    -> Smpte2110ReceiverGroupSdpSettingsProperty -> Bool)
-> Eq Smpte2110ReceiverGroupSdpSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty -> Bool
== :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty -> Bool
$c/= :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty -> Bool
/= :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty -> Bool
Prelude.Eq, Int -> Smpte2110ReceiverGroupSdpSettingsProperty -> ShowS
[Smpte2110ReceiverGroupSdpSettingsProperty] -> ShowS
Smpte2110ReceiverGroupSdpSettingsProperty -> String
(Int -> Smpte2110ReceiverGroupSdpSettingsProperty -> ShowS)
-> (Smpte2110ReceiverGroupSdpSettingsProperty -> String)
-> ([Smpte2110ReceiverGroupSdpSettingsProperty] -> ShowS)
-> Show Smpte2110ReceiverGroupSdpSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Smpte2110ReceiverGroupSdpSettingsProperty -> ShowS
showsPrec :: Int -> Smpte2110ReceiverGroupSdpSettingsProperty -> ShowS
$cshow :: Smpte2110ReceiverGroupSdpSettingsProperty -> String
show :: Smpte2110ReceiverGroupSdpSettingsProperty -> String
$cshowList :: [Smpte2110ReceiverGroupSdpSettingsProperty] -> ShowS
showList :: [Smpte2110ReceiverGroupSdpSettingsProperty] -> ShowS
Prelude.Show)
mkSmpte2110ReceiverGroupSdpSettingsProperty ::
  Smpte2110ReceiverGroupSdpSettingsProperty
mkSmpte2110ReceiverGroupSdpSettingsProperty :: Smpte2110ReceiverGroupSdpSettingsProperty
mkSmpte2110ReceiverGroupSdpSettingsProperty
  = Smpte2110ReceiverGroupSdpSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), ancillarySdps :: Maybe [InputSdpLocationProperty]
ancillarySdps = Maybe [InputSdpLocationProperty]
forall a. Maybe a
Prelude.Nothing,
       audioSdps :: Maybe [InputSdpLocationProperty]
audioSdps = Maybe [InputSdpLocationProperty]
forall a. Maybe a
Prelude.Nothing, videoSdp :: Maybe InputSdpLocationProperty
videoSdp = Maybe InputSdpLocationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Smpte2110ReceiverGroupSdpSettingsProperty where
  toResourceProperties :: Smpte2110ReceiverGroupSdpSettingsProperty -> ResourceProperties
toResourceProperties Smpte2110ReceiverGroupSdpSettingsProperty {Maybe [InputSdpLocationProperty]
Maybe InputSdpLocationProperty
()
haddock_workaround_ :: Smpte2110ReceiverGroupSdpSettingsProperty -> ()
ancillarySdps :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
audioSdps :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
videoSdp :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe InputSdpLocationProperty
haddock_workaround_ :: ()
ancillarySdps :: Maybe [InputSdpLocationProperty]
audioSdps :: Maybe [InputSdpLocationProperty]
videoSdp :: Maybe InputSdpLocationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Input.Smpte2110ReceiverGroupSdpSettings",
         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 -> [InputSdpLocationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AncillarySdps" ([InputSdpLocationProperty] -> (Key, Value))
-> Maybe [InputSdpLocationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InputSdpLocationProperty]
ancillarySdps,
                            Key -> [InputSdpLocationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AudioSdps" ([InputSdpLocationProperty] -> (Key, Value))
-> Maybe [InputSdpLocationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InputSdpLocationProperty]
audioSdps,
                            Key -> InputSdpLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VideoSdp" (InputSdpLocationProperty -> (Key, Value))
-> Maybe InputSdpLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputSdpLocationProperty
videoSdp])}
instance JSON.ToJSON Smpte2110ReceiverGroupSdpSettingsProperty where
  toJSON :: Smpte2110ReceiverGroupSdpSettingsProperty -> Value
toJSON Smpte2110ReceiverGroupSdpSettingsProperty {Maybe [InputSdpLocationProperty]
Maybe InputSdpLocationProperty
()
haddock_workaround_ :: Smpte2110ReceiverGroupSdpSettingsProperty -> ()
ancillarySdps :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
audioSdps :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
videoSdp :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe InputSdpLocationProperty
haddock_workaround_ :: ()
ancillarySdps :: Maybe [InputSdpLocationProperty]
audioSdps :: Maybe [InputSdpLocationProperty]
videoSdp :: Maybe InputSdpLocationProperty
..}
    = [(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 -> [InputSdpLocationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AncillarySdps" ([InputSdpLocationProperty] -> (Key, Value))
-> Maybe [InputSdpLocationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InputSdpLocationProperty]
ancillarySdps,
               Key -> [InputSdpLocationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AudioSdps" ([InputSdpLocationProperty] -> (Key, Value))
-> Maybe [InputSdpLocationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InputSdpLocationProperty]
audioSdps,
               Key -> InputSdpLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VideoSdp" (InputSdpLocationProperty -> (Key, Value))
-> Maybe InputSdpLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputSdpLocationProperty
videoSdp]))
instance Property "AncillarySdps" Smpte2110ReceiverGroupSdpSettingsProperty where
  type PropertyType "AncillarySdps" Smpte2110ReceiverGroupSdpSettingsProperty = [InputSdpLocationProperty]
  set :: PropertyType
  "AncillarySdps" Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty
set PropertyType
  "AncillarySdps" Smpte2110ReceiverGroupSdpSettingsProperty
newValue Smpte2110ReceiverGroupSdpSettingsProperty {Maybe [InputSdpLocationProperty]
Maybe InputSdpLocationProperty
()
haddock_workaround_ :: Smpte2110ReceiverGroupSdpSettingsProperty -> ()
ancillarySdps :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
audioSdps :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
videoSdp :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe InputSdpLocationProperty
haddock_workaround_ :: ()
ancillarySdps :: Maybe [InputSdpLocationProperty]
audioSdps :: Maybe [InputSdpLocationProperty]
videoSdp :: Maybe InputSdpLocationProperty
..}
    = Smpte2110ReceiverGroupSdpSettingsProperty
        {ancillarySdps :: Maybe [InputSdpLocationProperty]
ancillarySdps = [InputSdpLocationProperty] -> Maybe [InputSdpLocationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [InputSdpLocationProperty]
PropertyType
  "AncillarySdps" Smpte2110ReceiverGroupSdpSettingsProperty
newValue, Maybe [InputSdpLocationProperty]
Maybe InputSdpLocationProperty
()
haddock_workaround_ :: ()
audioSdps :: Maybe [InputSdpLocationProperty]
videoSdp :: Maybe InputSdpLocationProperty
haddock_workaround_ :: ()
audioSdps :: Maybe [InputSdpLocationProperty]
videoSdp :: Maybe InputSdpLocationProperty
..}
instance Property "AudioSdps" Smpte2110ReceiverGroupSdpSettingsProperty where
  type PropertyType "AudioSdps" Smpte2110ReceiverGroupSdpSettingsProperty = [InputSdpLocationProperty]
  set :: PropertyType "AudioSdps" Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty
set PropertyType "AudioSdps" Smpte2110ReceiverGroupSdpSettingsProperty
newValue Smpte2110ReceiverGroupSdpSettingsProperty {Maybe [InputSdpLocationProperty]
Maybe InputSdpLocationProperty
()
haddock_workaround_ :: Smpte2110ReceiverGroupSdpSettingsProperty -> ()
ancillarySdps :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
audioSdps :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
videoSdp :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe InputSdpLocationProperty
haddock_workaround_ :: ()
ancillarySdps :: Maybe [InputSdpLocationProperty]
audioSdps :: Maybe [InputSdpLocationProperty]
videoSdp :: Maybe InputSdpLocationProperty
..}
    = Smpte2110ReceiverGroupSdpSettingsProperty
        {audioSdps :: Maybe [InputSdpLocationProperty]
audioSdps = [InputSdpLocationProperty] -> Maybe [InputSdpLocationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [InputSdpLocationProperty]
PropertyType "AudioSdps" Smpte2110ReceiverGroupSdpSettingsProperty
newValue, Maybe [InputSdpLocationProperty]
Maybe InputSdpLocationProperty
()
haddock_workaround_ :: ()
ancillarySdps :: Maybe [InputSdpLocationProperty]
videoSdp :: Maybe InputSdpLocationProperty
haddock_workaround_ :: ()
ancillarySdps :: Maybe [InputSdpLocationProperty]
videoSdp :: Maybe InputSdpLocationProperty
..}
instance Property "VideoSdp" Smpte2110ReceiverGroupSdpSettingsProperty where
  type PropertyType "VideoSdp" Smpte2110ReceiverGroupSdpSettingsProperty = InputSdpLocationProperty
  set :: PropertyType "VideoSdp" Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty
-> Smpte2110ReceiverGroupSdpSettingsProperty
set PropertyType "VideoSdp" Smpte2110ReceiverGroupSdpSettingsProperty
newValue Smpte2110ReceiverGroupSdpSettingsProperty {Maybe [InputSdpLocationProperty]
Maybe InputSdpLocationProperty
()
haddock_workaround_ :: Smpte2110ReceiverGroupSdpSettingsProperty -> ()
ancillarySdps :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
audioSdps :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe [InputSdpLocationProperty]
videoSdp :: Smpte2110ReceiverGroupSdpSettingsProperty
-> Maybe InputSdpLocationProperty
haddock_workaround_ :: ()
ancillarySdps :: Maybe [InputSdpLocationProperty]
audioSdps :: Maybe [InputSdpLocationProperty]
videoSdp :: Maybe InputSdpLocationProperty
..}
    = Smpte2110ReceiverGroupSdpSettingsProperty
        {videoSdp :: Maybe InputSdpLocationProperty
videoSdp = InputSdpLocationProperty -> Maybe InputSdpLocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VideoSdp" Smpte2110ReceiverGroupSdpSettingsProperty
InputSdpLocationProperty
newValue, Maybe [InputSdpLocationProperty]
()
haddock_workaround_ :: ()
ancillarySdps :: Maybe [InputSdpLocationProperty]
audioSdps :: Maybe [InputSdpLocationProperty]
haddock_workaround_ :: ()
ancillarySdps :: Maybe [InputSdpLocationProperty]
audioSdps :: Maybe [InputSdpLocationProperty]
..}