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: StreamSelectionProperty {haddock_workaround_ :: (), -- | See: maxVideoBitsPerSecond :: (Prelude.Maybe (Value Prelude.Integer)), -- | See: minVideoBitsPerSecond :: (Prelude.Maybe (Value Prelude.Integer)), -- | See: streamOrder :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkStreamSelectionProperty :: StreamSelectionProperty mkStreamSelectionProperty = StreamSelectionProperty {haddock_workaround_ = (), maxVideoBitsPerSecond = Prelude.Nothing, minVideoBitsPerSecond = Prelude.Nothing, streamOrder = Prelude.Nothing} instance ToResourceProperties StreamSelectionProperty where toResourceProperties StreamSelectionProperty {..} = ResourceProperties {awsType = "AWS::MediaPackage::PackagingConfiguration.StreamSelection", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "MaxVideoBitsPerSecond" Prelude.<$> maxVideoBitsPerSecond, (JSON..=) "MinVideoBitsPerSecond" Prelude.<$> minVideoBitsPerSecond, (JSON..=) "StreamOrder" Prelude.<$> streamOrder])} instance JSON.ToJSON StreamSelectionProperty where toJSON StreamSelectionProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "MaxVideoBitsPerSecond" Prelude.<$> maxVideoBitsPerSecond, (JSON..=) "MinVideoBitsPerSecond" Prelude.<$> minVideoBitsPerSecond, (JSON..=) "StreamOrder" Prelude.<$> streamOrder])) instance Property "MaxVideoBitsPerSecond" StreamSelectionProperty where type PropertyType "MaxVideoBitsPerSecond" StreamSelectionProperty = Value Prelude.Integer set newValue StreamSelectionProperty {..} = StreamSelectionProperty {maxVideoBitsPerSecond = Prelude.pure newValue, ..} instance Property "MinVideoBitsPerSecond" StreamSelectionProperty where type PropertyType "MinVideoBitsPerSecond" StreamSelectionProperty = Value Prelude.Integer set newValue StreamSelectionProperty {..} = StreamSelectionProperty {minVideoBitsPerSecond = Prelude.pure newValue, ..} instance Property "StreamOrder" StreamSelectionProperty where type PropertyType "StreamOrder" StreamSelectionProperty = Value Prelude.Text set newValue StreamSelectionProperty {..} = StreamSelectionProperty {streamOrder = Prelude.pure newValue, ..}