module Stratosphere.MediaConnect.FlowOutput.EncodingParametersProperty (
        EncodingParametersProperty(..), mkEncodingParametersProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EncodingParametersProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-encodingparameters.html>
    EncodingParametersProperty {EncodingParametersProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-encodingparameters.html#cfn-mediaconnect-flowoutput-encodingparameters-compressionfactor>
                                EncodingParametersProperty -> Value Double
compressionFactor :: (Value Prelude.Double),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-encodingparameters.html#cfn-mediaconnect-flowoutput-encodingparameters-encoderprofile>
                                EncodingParametersProperty -> Maybe (Value Text)
encoderProfile :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (EncodingParametersProperty -> EncodingParametersProperty -> Bool
(EncodingParametersProperty -> EncodingParametersProperty -> Bool)
-> (EncodingParametersProperty
    -> EncodingParametersProperty -> Bool)
-> Eq EncodingParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EncodingParametersProperty -> EncodingParametersProperty -> Bool
== :: EncodingParametersProperty -> EncodingParametersProperty -> Bool
$c/= :: EncodingParametersProperty -> EncodingParametersProperty -> Bool
/= :: EncodingParametersProperty -> EncodingParametersProperty -> Bool
Prelude.Eq, Int -> EncodingParametersProperty -> ShowS
[EncodingParametersProperty] -> ShowS
EncodingParametersProperty -> String
(Int -> EncodingParametersProperty -> ShowS)
-> (EncodingParametersProperty -> String)
-> ([EncodingParametersProperty] -> ShowS)
-> Show EncodingParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EncodingParametersProperty -> ShowS
showsPrec :: Int -> EncodingParametersProperty -> ShowS
$cshow :: EncodingParametersProperty -> String
show :: EncodingParametersProperty -> String
$cshowList :: [EncodingParametersProperty] -> ShowS
showList :: [EncodingParametersProperty] -> ShowS
Prelude.Show)
mkEncodingParametersProperty ::
  Value Prelude.Double -> EncodingParametersProperty
mkEncodingParametersProperty :: Value Double -> EncodingParametersProperty
mkEncodingParametersProperty Value Double
compressionFactor
  = EncodingParametersProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), compressionFactor :: Value Double
compressionFactor = Value Double
compressionFactor,
       encoderProfile :: Maybe (Value Text)
encoderProfile = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EncodingParametersProperty where
  toResourceProperties :: EncodingParametersProperty -> ResourceProperties
toResourceProperties EncodingParametersProperty {Maybe (Value Text)
()
Value Double
haddock_workaround_ :: EncodingParametersProperty -> ()
compressionFactor :: EncodingParametersProperty -> Value Double
encoderProfile :: EncodingParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
compressionFactor :: Value Double
encoderProfile :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaConnect::FlowOutput.EncodingParameters",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"CompressionFactor" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
compressionFactor]
                           ([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
"EncoderProfile" (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)
encoderProfile]))}
instance JSON.ToJSON EncodingParametersProperty where
  toJSON :: EncodingParametersProperty -> Value
toJSON EncodingParametersProperty {Maybe (Value Text)
()
Value Double
haddock_workaround_ :: EncodingParametersProperty -> ()
compressionFactor :: EncodingParametersProperty -> Value Double
encoderProfile :: EncodingParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
compressionFactor :: Value Double
encoderProfile :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"CompressionFactor" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
compressionFactor]
              ([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
"EncoderProfile" (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)
encoderProfile])))
instance Property "CompressionFactor" EncodingParametersProperty where
  type PropertyType "CompressionFactor" EncodingParametersProperty = Value Prelude.Double
  set :: PropertyType "CompressionFactor" EncodingParametersProperty
-> EncodingParametersProperty -> EncodingParametersProperty
set PropertyType "CompressionFactor" EncodingParametersProperty
newValue EncodingParametersProperty {Maybe (Value Text)
()
Value Double
haddock_workaround_ :: EncodingParametersProperty -> ()
compressionFactor :: EncodingParametersProperty -> Value Double
encoderProfile :: EncodingParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
compressionFactor :: Value Double
encoderProfile :: Maybe (Value Text)
..}
    = EncodingParametersProperty {compressionFactor :: Value Double
compressionFactor = PropertyType "CompressionFactor" EncodingParametersProperty
Value Double
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
encoderProfile :: Maybe (Value Text)
haddock_workaround_ :: ()
encoderProfile :: Maybe (Value Text)
..}
instance Property "EncoderProfile" EncodingParametersProperty where
  type PropertyType "EncoderProfile" EncodingParametersProperty = Value Prelude.Text
  set :: PropertyType "EncoderProfile" EncodingParametersProperty
-> EncodingParametersProperty -> EncodingParametersProperty
set PropertyType "EncoderProfile" EncodingParametersProperty
newValue EncodingParametersProperty {Maybe (Value Text)
()
Value Double
haddock_workaround_ :: EncodingParametersProperty -> ()
compressionFactor :: EncodingParametersProperty -> Value Double
encoderProfile :: EncodingParametersProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
compressionFactor :: Value Double
encoderProfile :: Maybe (Value Text)
..}
    = EncodingParametersProperty
        {encoderProfile :: Maybe (Value Text)
encoderProfile = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EncoderProfile" EncodingParametersProperty
Value Text
newValue, ()
Value Double
haddock_workaround_ :: ()
compressionFactor :: Value Double
haddock_workaround_ :: ()
compressionFactor :: Value Double
..}