module Stratosphere.MediaLive.Channel.DvbSubSourceSettingsProperty ( DvbSubSourceSettingsProperty(..), mkDvbSubSourceSettingsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data DvbSubSourceSettingsProperty = -- | See: DvbSubSourceSettingsProperty {haddock_workaround_ :: (), -- | See: ocrLanguage :: (Prelude.Maybe (Value Prelude.Text)), -- | See: pid :: (Prelude.Maybe (Value Prelude.Integer))} deriving stock (Prelude.Eq, Prelude.Show) mkDvbSubSourceSettingsProperty :: DvbSubSourceSettingsProperty mkDvbSubSourceSettingsProperty = DvbSubSourceSettingsProperty {haddock_workaround_ = (), ocrLanguage = Prelude.Nothing, pid = Prelude.Nothing} instance ToResourceProperties DvbSubSourceSettingsProperty where toResourceProperties DvbSubSourceSettingsProperty {..} = ResourceProperties {awsType = "AWS::MediaLive::Channel.DvbSubSourceSettings", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "OcrLanguage" Prelude.<$> ocrLanguage, (JSON..=) "Pid" Prelude.<$> pid])} instance JSON.ToJSON DvbSubSourceSettingsProperty where toJSON DvbSubSourceSettingsProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "OcrLanguage" Prelude.<$> ocrLanguage, (JSON..=) "Pid" Prelude.<$> pid])) instance Property "OcrLanguage" DvbSubSourceSettingsProperty where type PropertyType "OcrLanguage" DvbSubSourceSettingsProperty = Value Prelude.Text set newValue DvbSubSourceSettingsProperty {..} = DvbSubSourceSettingsProperty {ocrLanguage = Prelude.pure newValue, ..} instance Property "Pid" DvbSubSourceSettingsProperty where type PropertyType "Pid" DvbSubSourceSettingsProperty = Value Prelude.Integer set newValue DvbSubSourceSettingsProperty {..} = DvbSubSourceSettingsProperty {pid = Prelude.pure newValue, ..}