module Stratosphere.MediaConvert.Preset (
        Preset(..), mkPreset
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Preset
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html>
    Preset {Preset -> ()
haddock_workaround_ :: (),
            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html#cfn-mediaconvert-preset-category>
            Preset -> Maybe (Value Text)
category :: (Prelude.Maybe (Value Prelude.Text)),
            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html#cfn-mediaconvert-preset-description>
            Preset -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html#cfn-mediaconvert-preset-name>
            Preset -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html#cfn-mediaconvert-preset-settingsjson>
            Preset -> Object
settingsJson :: JSON.Object,
            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconvert-preset.html#cfn-mediaconvert-preset-tags>
            Preset -> Maybe Object
tags :: (Prelude.Maybe JSON.Object)}
  deriving stock (Preset -> Preset -> Bool
(Preset -> Preset -> Bool)
-> (Preset -> Preset -> Bool) -> Eq Preset
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Preset -> Preset -> Bool
== :: Preset -> Preset -> Bool
$c/= :: Preset -> Preset -> Bool
/= :: Preset -> Preset -> Bool
Prelude.Eq, Int -> Preset -> ShowS
[Preset] -> ShowS
Preset -> String
(Int -> Preset -> ShowS)
-> (Preset -> String) -> ([Preset] -> ShowS) -> Show Preset
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Preset -> ShowS
showsPrec :: Int -> Preset -> ShowS
$cshow :: Preset -> String
show :: Preset -> String
$cshowList :: [Preset] -> ShowS
showList :: [Preset] -> ShowS
Prelude.Show)
mkPreset :: JSON.Object -> Preset
mkPreset :: Object -> Preset
mkPreset Object
settingsJson
  = Preset
      {haddock_workaround_ :: ()
haddock_workaround_ = (), settingsJson :: Object
settingsJson = Object
settingsJson,
       category :: Maybe (Value Text)
category = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe Object
tags = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Preset where
  toResourceProperties :: Preset -> ResourceProperties
toResourceProperties Preset {Maybe Object
Maybe (Value Text)
()
Object
haddock_workaround_ :: Preset -> ()
category :: Preset -> Maybe (Value Text)
description :: Preset -> Maybe (Value Text)
name :: Preset -> Maybe (Value Text)
settingsJson :: Preset -> Object
tags :: Preset -> Maybe Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaConvert::Preset",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"SettingsJson" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
settingsJson]
                           ([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
"Category" (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)
category,
                               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
"Description" (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)
description,
                               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
"Name" (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)
name,
                               Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
tags]))}
instance JSON.ToJSON Preset where
  toJSON :: Preset -> Value
toJSON Preset {Maybe Object
Maybe (Value Text)
()
Object
haddock_workaround_ :: Preset -> ()
category :: Preset -> Maybe (Value Text)
description :: Preset -> Maybe (Value Text)
name :: Preset -> Maybe (Value Text)
settingsJson :: Preset -> Object
tags :: Preset -> Maybe Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
..}
    = [(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
"SettingsJson" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
settingsJson]
              ([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
"Category" (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)
category,
                  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
"Description" (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)
description,
                  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
"Name" (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)
name,
                  Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
tags])))
instance Property "Category" Preset where
  type PropertyType "Category" Preset = Value Prelude.Text
  set :: PropertyType "Category" Preset -> Preset -> Preset
set PropertyType "Category" Preset
newValue Preset {Maybe Object
Maybe (Value Text)
()
Object
haddock_workaround_ :: Preset -> ()
category :: Preset -> Maybe (Value Text)
description :: Preset -> Maybe (Value Text)
name :: Preset -> Maybe (Value Text)
settingsJson :: Preset -> Object
tags :: Preset -> Maybe Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
..}
    = Preset {category :: Maybe (Value Text)
category = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Category" Preset
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
..}
instance Property "Description" Preset where
  type PropertyType "Description" Preset = Value Prelude.Text
  set :: PropertyType "Description" Preset -> Preset -> Preset
set PropertyType "Description" Preset
newValue Preset {Maybe Object
Maybe (Value Text)
()
Object
haddock_workaround_ :: Preset -> ()
category :: Preset -> Maybe (Value Text)
description :: Preset -> Maybe (Value Text)
name :: Preset -> Maybe (Value Text)
settingsJson :: Preset -> Object
tags :: Preset -> Maybe Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
..}
    = Preset {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" Preset
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
..}
instance Property "Name" Preset where
  type PropertyType "Name" Preset = Value Prelude.Text
  set :: PropertyType "Name" Preset -> Preset -> Preset
set PropertyType "Name" Preset
newValue Preset {Maybe Object
Maybe (Value Text)
()
Object
haddock_workaround_ :: Preset -> ()
category :: Preset -> Maybe (Value Text)
description :: Preset -> Maybe (Value Text)
name :: Preset -> Maybe (Value Text)
settingsJson :: Preset -> Object
tags :: Preset -> Maybe Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
..}
    = Preset {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" Preset
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
..}
instance Property "SettingsJson" Preset where
  type PropertyType "SettingsJson" Preset = JSON.Object
  set :: PropertyType "SettingsJson" Preset -> Preset -> Preset
set PropertyType "SettingsJson" Preset
newValue Preset {Maybe Object
Maybe (Value Text)
()
Object
haddock_workaround_ :: Preset -> ()
category :: Preset -> Maybe (Value Text)
description :: Preset -> Maybe (Value Text)
name :: Preset -> Maybe (Value Text)
settingsJson :: Preset -> Object
tags :: Preset -> Maybe Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
..} = Preset {settingsJson :: Object
settingsJson = Object
PropertyType "SettingsJson" Preset
newValue, Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe Object
..}
instance Property "Tags" Preset where
  type PropertyType "Tags" Preset = JSON.Object
  set :: PropertyType "Tags" Preset -> Preset -> Preset
set PropertyType "Tags" Preset
newValue Preset {Maybe Object
Maybe (Value Text)
()
Object
haddock_workaround_ :: Preset -> ()
category :: Preset -> Maybe (Value Text)
description :: Preset -> Maybe (Value Text)
name :: Preset -> Maybe (Value Text)
settingsJson :: Preset -> Object
tags :: Preset -> Maybe Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
tags :: Maybe Object
..}
    = Preset {tags :: Maybe Object
tags = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "Tags" Preset
newValue, Maybe (Value Text)
()
Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
haddock_workaround_ :: ()
category :: Maybe (Value Text)
description :: Maybe (Value Text)
name :: Maybe (Value Text)
settingsJson :: Object
..}