module Stratosphere.MediaLive.Channel.MsSmoothOutputSettingsProperty (
        MsSmoothOutputSettingsProperty(..),
        mkMsSmoothOutputSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MsSmoothOutputSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-mssmoothoutputsettings.html>
    MsSmoothOutputSettingsProperty {MsSmoothOutputSettingsProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-mssmoothoutputsettings.html#cfn-medialive-channel-mssmoothoutputsettings-h265packagingtype>
                                    MsSmoothOutputSettingsProperty -> Maybe (Value Text)
h265PackagingType :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-mssmoothoutputsettings.html#cfn-medialive-channel-mssmoothoutputsettings-namemodifier>
                                    MsSmoothOutputSettingsProperty -> Maybe (Value Text)
nameModifier :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (MsSmoothOutputSettingsProperty
-> MsSmoothOutputSettingsProperty -> Bool
(MsSmoothOutputSettingsProperty
 -> MsSmoothOutputSettingsProperty -> Bool)
-> (MsSmoothOutputSettingsProperty
    -> MsSmoothOutputSettingsProperty -> Bool)
-> Eq MsSmoothOutputSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MsSmoothOutputSettingsProperty
-> MsSmoothOutputSettingsProperty -> Bool
== :: MsSmoothOutputSettingsProperty
-> MsSmoothOutputSettingsProperty -> Bool
$c/= :: MsSmoothOutputSettingsProperty
-> MsSmoothOutputSettingsProperty -> Bool
/= :: MsSmoothOutputSettingsProperty
-> MsSmoothOutputSettingsProperty -> Bool
Prelude.Eq, Int -> MsSmoothOutputSettingsProperty -> ShowS
[MsSmoothOutputSettingsProperty] -> ShowS
MsSmoothOutputSettingsProperty -> String
(Int -> MsSmoothOutputSettingsProperty -> ShowS)
-> (MsSmoothOutputSettingsProperty -> String)
-> ([MsSmoothOutputSettingsProperty] -> ShowS)
-> Show MsSmoothOutputSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MsSmoothOutputSettingsProperty -> ShowS
showsPrec :: Int -> MsSmoothOutputSettingsProperty -> ShowS
$cshow :: MsSmoothOutputSettingsProperty -> String
show :: MsSmoothOutputSettingsProperty -> String
$cshowList :: [MsSmoothOutputSettingsProperty] -> ShowS
showList :: [MsSmoothOutputSettingsProperty] -> ShowS
Prelude.Show)
mkMsSmoothOutputSettingsProperty :: MsSmoothOutputSettingsProperty
mkMsSmoothOutputSettingsProperty :: MsSmoothOutputSettingsProperty
mkMsSmoothOutputSettingsProperty
  = MsSmoothOutputSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), h265PackagingType :: Maybe (Value Text)
h265PackagingType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       nameModifier :: Maybe (Value Text)
nameModifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MsSmoothOutputSettingsProperty where
  toResourceProperties :: MsSmoothOutputSettingsProperty -> ResourceProperties
toResourceProperties MsSmoothOutputSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MsSmoothOutputSettingsProperty -> ()
h265PackagingType :: MsSmoothOutputSettingsProperty -> Maybe (Value Text)
nameModifier :: MsSmoothOutputSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
h265PackagingType :: Maybe (Value Text)
nameModifier :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.MsSmoothOutputSettings",
         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
"H265PackagingType" (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)
h265PackagingType,
                            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
"NameModifier" (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)
nameModifier])}
instance JSON.ToJSON MsSmoothOutputSettingsProperty where
  toJSON :: MsSmoothOutputSettingsProperty -> Value
toJSON MsSmoothOutputSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MsSmoothOutputSettingsProperty -> ()
h265PackagingType :: MsSmoothOutputSettingsProperty -> Maybe (Value Text)
nameModifier :: MsSmoothOutputSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
h265PackagingType :: Maybe (Value Text)
nameModifier :: 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
"H265PackagingType" (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)
h265PackagingType,
               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
"NameModifier" (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)
nameModifier]))
instance Property "H265PackagingType" MsSmoothOutputSettingsProperty where
  type PropertyType "H265PackagingType" MsSmoothOutputSettingsProperty = Value Prelude.Text
  set :: PropertyType "H265PackagingType" MsSmoothOutputSettingsProperty
-> MsSmoothOutputSettingsProperty -> MsSmoothOutputSettingsProperty
set PropertyType "H265PackagingType" MsSmoothOutputSettingsProperty
newValue MsSmoothOutputSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MsSmoothOutputSettingsProperty -> ()
h265PackagingType :: MsSmoothOutputSettingsProperty -> Maybe (Value Text)
nameModifier :: MsSmoothOutputSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
h265PackagingType :: Maybe (Value Text)
nameModifier :: Maybe (Value Text)
..}
    = MsSmoothOutputSettingsProperty
        {h265PackagingType :: Maybe (Value Text)
h265PackagingType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "H265PackagingType" MsSmoothOutputSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
nameModifier :: Maybe (Value Text)
haddock_workaround_ :: ()
nameModifier :: Maybe (Value Text)
..}
instance Property "NameModifier" MsSmoothOutputSettingsProperty where
  type PropertyType "NameModifier" MsSmoothOutputSettingsProperty = Value Prelude.Text
  set :: PropertyType "NameModifier" MsSmoothOutputSettingsProperty
-> MsSmoothOutputSettingsProperty -> MsSmoothOutputSettingsProperty
set PropertyType "NameModifier" MsSmoothOutputSettingsProperty
newValue MsSmoothOutputSettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: MsSmoothOutputSettingsProperty -> ()
h265PackagingType :: MsSmoothOutputSettingsProperty -> Maybe (Value Text)
nameModifier :: MsSmoothOutputSettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
h265PackagingType :: Maybe (Value Text)
nameModifier :: Maybe (Value Text)
..}
    = MsSmoothOutputSettingsProperty
        {nameModifier :: Maybe (Value Text)
nameModifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NameModifier" MsSmoothOutputSettingsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
h265PackagingType :: Maybe (Value Text)
haddock_workaround_ :: ()
h265PackagingType :: Maybe (Value Text)
..}