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