module Stratosphere.MediaPackage.PackagingConfiguration.StreamSelectionProperty (
        StreamSelectionProperty(..), mkStreamSelectionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StreamSelectionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-streamselection.html>
    StreamSelectionProperty {StreamSelectionProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-streamselection.html#cfn-mediapackage-packagingconfiguration-streamselection-maxvideobitspersecond>
                             StreamSelectionProperty -> Maybe (Value Integer)
maxVideoBitsPerSecond :: (Prelude.Maybe (Value Prelude.Integer)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-streamselection.html#cfn-mediapackage-packagingconfiguration-streamselection-minvideobitspersecond>
                             StreamSelectionProperty -> Maybe (Value Integer)
minVideoBitsPerSecond :: (Prelude.Maybe (Value Prelude.Integer)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-streamselection.html#cfn-mediapackage-packagingconfiguration-streamselection-streamorder>
                             StreamSelectionProperty -> Maybe (Value Text)
streamOrder :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (StreamSelectionProperty -> StreamSelectionProperty -> Bool
(StreamSelectionProperty -> StreamSelectionProperty -> Bool)
-> (StreamSelectionProperty -> StreamSelectionProperty -> Bool)
-> Eq StreamSelectionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StreamSelectionProperty -> StreamSelectionProperty -> Bool
== :: StreamSelectionProperty -> StreamSelectionProperty -> Bool
$c/= :: StreamSelectionProperty -> StreamSelectionProperty -> Bool
/= :: StreamSelectionProperty -> StreamSelectionProperty -> Bool
Prelude.Eq, Int -> StreamSelectionProperty -> ShowS
[StreamSelectionProperty] -> ShowS
StreamSelectionProperty -> String
(Int -> StreamSelectionProperty -> ShowS)
-> (StreamSelectionProperty -> String)
-> ([StreamSelectionProperty] -> ShowS)
-> Show StreamSelectionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StreamSelectionProperty -> ShowS
showsPrec :: Int -> StreamSelectionProperty -> ShowS
$cshow :: StreamSelectionProperty -> String
show :: StreamSelectionProperty -> String
$cshowList :: [StreamSelectionProperty] -> ShowS
showList :: [StreamSelectionProperty] -> ShowS
Prelude.Show)
mkStreamSelectionProperty :: StreamSelectionProperty
mkStreamSelectionProperty :: StreamSelectionProperty
mkStreamSelectionProperty
  = StreamSelectionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), maxVideoBitsPerSecond :: Maybe (Value Integer)
maxVideoBitsPerSecond = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       minVideoBitsPerSecond :: Maybe (Value Integer)
minVideoBitsPerSecond = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       streamOrder :: Maybe (Value Text)
streamOrder = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StreamSelectionProperty where
  toResourceProperties :: StreamSelectionProperty -> ResourceProperties
toResourceProperties StreamSelectionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: StreamSelectionProperty -> ()
maxVideoBitsPerSecond :: StreamSelectionProperty -> Maybe (Value Integer)
minVideoBitsPerSecond :: StreamSelectionProperty -> Maybe (Value Integer)
streamOrder :: StreamSelectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxVideoBitsPerSecond :: Maybe (Value Integer)
minVideoBitsPerSecond :: Maybe (Value Integer)
streamOrder :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaPackage::PackagingConfiguration.StreamSelection",
         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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxVideoBitsPerSecond"
                              (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maxVideoBitsPerSecond,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinVideoBitsPerSecond"
                              (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
minVideoBitsPerSecond,
                            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
"StreamOrder" (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)
streamOrder])}
instance JSON.ToJSON StreamSelectionProperty where
  toJSON :: StreamSelectionProperty -> Value
toJSON StreamSelectionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: StreamSelectionProperty -> ()
maxVideoBitsPerSecond :: StreamSelectionProperty -> Maybe (Value Integer)
minVideoBitsPerSecond :: StreamSelectionProperty -> Maybe (Value Integer)
streamOrder :: StreamSelectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxVideoBitsPerSecond :: Maybe (Value Integer)
minVideoBitsPerSecond :: Maybe (Value Integer)
streamOrder :: 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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaxVideoBitsPerSecond"
                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maxVideoBitsPerSecond,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinVideoBitsPerSecond"
                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
minVideoBitsPerSecond,
               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
"StreamOrder" (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)
streamOrder]))
instance Property "MaxVideoBitsPerSecond" StreamSelectionProperty where
  type PropertyType "MaxVideoBitsPerSecond" StreamSelectionProperty = Value Prelude.Integer
  set :: PropertyType "MaxVideoBitsPerSecond" StreamSelectionProperty
-> StreamSelectionProperty -> StreamSelectionProperty
set PropertyType "MaxVideoBitsPerSecond" StreamSelectionProperty
newValue StreamSelectionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: StreamSelectionProperty -> ()
maxVideoBitsPerSecond :: StreamSelectionProperty -> Maybe (Value Integer)
minVideoBitsPerSecond :: StreamSelectionProperty -> Maybe (Value Integer)
streamOrder :: StreamSelectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxVideoBitsPerSecond :: Maybe (Value Integer)
minVideoBitsPerSecond :: Maybe (Value Integer)
streamOrder :: Maybe (Value Text)
..}
    = StreamSelectionProperty
        {maxVideoBitsPerSecond :: Maybe (Value Integer)
maxVideoBitsPerSecond = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxVideoBitsPerSecond" StreamSelectionProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
minVideoBitsPerSecond :: Maybe (Value Integer)
streamOrder :: Maybe (Value Text)
haddock_workaround_ :: ()
minVideoBitsPerSecond :: Maybe (Value Integer)
streamOrder :: Maybe (Value Text)
..}
instance Property "MinVideoBitsPerSecond" StreamSelectionProperty where
  type PropertyType "MinVideoBitsPerSecond" StreamSelectionProperty = Value Prelude.Integer
  set :: PropertyType "MinVideoBitsPerSecond" StreamSelectionProperty
-> StreamSelectionProperty -> StreamSelectionProperty
set PropertyType "MinVideoBitsPerSecond" StreamSelectionProperty
newValue StreamSelectionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: StreamSelectionProperty -> ()
maxVideoBitsPerSecond :: StreamSelectionProperty -> Maybe (Value Integer)
minVideoBitsPerSecond :: StreamSelectionProperty -> Maybe (Value Integer)
streamOrder :: StreamSelectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxVideoBitsPerSecond :: Maybe (Value Integer)
minVideoBitsPerSecond :: Maybe (Value Integer)
streamOrder :: Maybe (Value Text)
..}
    = StreamSelectionProperty
        {minVideoBitsPerSecond :: Maybe (Value Integer)
minVideoBitsPerSecond = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MinVideoBitsPerSecond" StreamSelectionProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
maxVideoBitsPerSecond :: Maybe (Value Integer)
streamOrder :: Maybe (Value Text)
haddock_workaround_ :: ()
maxVideoBitsPerSecond :: Maybe (Value Integer)
streamOrder :: Maybe (Value Text)
..}
instance Property "StreamOrder" StreamSelectionProperty where
  type PropertyType "StreamOrder" StreamSelectionProperty = Value Prelude.Text
  set :: PropertyType "StreamOrder" StreamSelectionProperty
-> StreamSelectionProperty -> StreamSelectionProperty
set PropertyType "StreamOrder" StreamSelectionProperty
newValue StreamSelectionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: StreamSelectionProperty -> ()
maxVideoBitsPerSecond :: StreamSelectionProperty -> Maybe (Value Integer)
minVideoBitsPerSecond :: StreamSelectionProperty -> Maybe (Value Integer)
streamOrder :: StreamSelectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
maxVideoBitsPerSecond :: Maybe (Value Integer)
minVideoBitsPerSecond :: Maybe (Value Integer)
streamOrder :: Maybe (Value Text)
..}
    = StreamSelectionProperty {streamOrder :: Maybe (Value Text)
streamOrder = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StreamOrder" StreamSelectionProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
maxVideoBitsPerSecond :: Maybe (Value Integer)
minVideoBitsPerSecond :: Maybe (Value Integer)
haddock_workaround_ :: ()
maxVideoBitsPerSecond :: Maybe (Value Integer)
minVideoBitsPerSecond :: Maybe (Value Integer)
..}