module Stratosphere.MediaConnect.Bridge.MulticastSourceSettingsProperty ( MulticastSourceSettingsProperty(..), mkMulticastSourceSettingsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data MulticastSourceSettingsProperty = -- | See: MulticastSourceSettingsProperty {haddock_workaround_ :: (), -- | See: multicastSourceIp :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkMulticastSourceSettingsProperty :: MulticastSourceSettingsProperty mkMulticastSourceSettingsProperty = MulticastSourceSettingsProperty {haddock_workaround_ = (), multicastSourceIp = Prelude.Nothing} instance ToResourceProperties MulticastSourceSettingsProperty where toResourceProperties MulticastSourceSettingsProperty {..} = ResourceProperties {awsType = "AWS::MediaConnect::Bridge.MulticastSourceSettings", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "MulticastSourceIp" Prelude.<$> multicastSourceIp])} instance JSON.ToJSON MulticastSourceSettingsProperty where toJSON MulticastSourceSettingsProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "MulticastSourceIp" Prelude.<$> multicastSourceIp])) instance Property "MulticastSourceIp" MulticastSourceSettingsProperty where type PropertyType "MulticastSourceIp" MulticastSourceSettingsProperty = Value Prelude.Text set newValue MulticastSourceSettingsProperty {..} = MulticastSourceSettingsProperty {multicastSourceIp = Prelude.pure newValue, ..}