module Stratosphere.MediaConvert.JobTemplate.HopDestinationProperty (
HopDestinationProperty(..), mkHopDestinationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HopDestinationProperty
=
HopDestinationProperty {HopDestinationProperty -> ()
haddock_workaround_ :: (),
HopDestinationProperty -> Maybe (Value Integer)
priority :: (Prelude.Maybe (Value Prelude.Integer)),
HopDestinationProperty -> Maybe (Value Text)
queue :: (Prelude.Maybe (Value Prelude.Text)),
HopDestinationProperty -> Maybe (Value Integer)
waitMinutes :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (HopDestinationProperty -> HopDestinationProperty -> Bool
(HopDestinationProperty -> HopDestinationProperty -> Bool)
-> (HopDestinationProperty -> HopDestinationProperty -> Bool)
-> Eq HopDestinationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HopDestinationProperty -> HopDestinationProperty -> Bool
== :: HopDestinationProperty -> HopDestinationProperty -> Bool
$c/= :: HopDestinationProperty -> HopDestinationProperty -> Bool
/= :: HopDestinationProperty -> HopDestinationProperty -> Bool
Prelude.Eq, Int -> HopDestinationProperty -> ShowS
[HopDestinationProperty] -> ShowS
HopDestinationProperty -> String
(Int -> HopDestinationProperty -> ShowS)
-> (HopDestinationProperty -> String)
-> ([HopDestinationProperty] -> ShowS)
-> Show HopDestinationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HopDestinationProperty -> ShowS
showsPrec :: Int -> HopDestinationProperty -> ShowS
$cshow :: HopDestinationProperty -> String
show :: HopDestinationProperty -> String
$cshowList :: [HopDestinationProperty] -> ShowS
showList :: [HopDestinationProperty] -> ShowS
Prelude.Show)
mkHopDestinationProperty :: HopDestinationProperty
mkHopDestinationProperty :: HopDestinationProperty
mkHopDestinationProperty
= HopDestinationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), priority :: Maybe (Value Integer)
priority = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
queue :: Maybe (Value Text)
queue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, waitMinutes :: Maybe (Value Integer)
waitMinutes = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HopDestinationProperty where
toResourceProperties :: HopDestinationProperty -> ResourceProperties
toResourceProperties HopDestinationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: HopDestinationProperty -> ()
priority :: HopDestinationProperty -> Maybe (Value Integer)
queue :: HopDestinationProperty -> Maybe (Value Text)
waitMinutes :: HopDestinationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
priority :: Maybe (Value Integer)
queue :: Maybe (Value Text)
waitMinutes :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaConvert::JobTemplate.HopDestination",
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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Priority" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
priority,
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
"Queue" (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)
queue,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"WaitMinutes" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
waitMinutes])}
instance JSON.ToJSON HopDestinationProperty where
toJSON :: HopDestinationProperty -> Value
toJSON HopDestinationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: HopDestinationProperty -> ()
priority :: HopDestinationProperty -> Maybe (Value Integer)
queue :: HopDestinationProperty -> Maybe (Value Text)
waitMinutes :: HopDestinationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
priority :: Maybe (Value Integer)
queue :: Maybe (Value Text)
waitMinutes :: Maybe (Value Integer)
..}
= [(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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Priority" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
priority,
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
"Queue" (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)
queue,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"WaitMinutes" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
waitMinutes]))
instance Property "Priority" HopDestinationProperty where
type PropertyType "Priority" HopDestinationProperty = Value Prelude.Integer
set :: PropertyType "Priority" HopDestinationProperty
-> HopDestinationProperty -> HopDestinationProperty
set PropertyType "Priority" HopDestinationProperty
newValue HopDestinationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: HopDestinationProperty -> ()
priority :: HopDestinationProperty -> Maybe (Value Integer)
queue :: HopDestinationProperty -> Maybe (Value Text)
waitMinutes :: HopDestinationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
priority :: Maybe (Value Integer)
queue :: Maybe (Value Text)
waitMinutes :: Maybe (Value Integer)
..}
= HopDestinationProperty {priority :: Maybe (Value Integer)
priority = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Priority" HopDestinationProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
queue :: Maybe (Value Text)
waitMinutes :: Maybe (Value Integer)
haddock_workaround_ :: ()
queue :: Maybe (Value Text)
waitMinutes :: Maybe (Value Integer)
..}
instance Property "Queue" HopDestinationProperty where
type PropertyType "Queue" HopDestinationProperty = Value Prelude.Text
set :: PropertyType "Queue" HopDestinationProperty
-> HopDestinationProperty -> HopDestinationProperty
set PropertyType "Queue" HopDestinationProperty
newValue HopDestinationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: HopDestinationProperty -> ()
priority :: HopDestinationProperty -> Maybe (Value Integer)
queue :: HopDestinationProperty -> Maybe (Value Text)
waitMinutes :: HopDestinationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
priority :: Maybe (Value Integer)
queue :: Maybe (Value Text)
waitMinutes :: Maybe (Value Integer)
..}
= HopDestinationProperty {queue :: Maybe (Value Text)
queue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Queue" HopDestinationProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
priority :: Maybe (Value Integer)
waitMinutes :: Maybe (Value Integer)
haddock_workaround_ :: ()
priority :: Maybe (Value Integer)
waitMinutes :: Maybe (Value Integer)
..}
instance Property "WaitMinutes" HopDestinationProperty where
type PropertyType "WaitMinutes" HopDestinationProperty = Value Prelude.Integer
set :: PropertyType "WaitMinutes" HopDestinationProperty
-> HopDestinationProperty -> HopDestinationProperty
set PropertyType "WaitMinutes" HopDestinationProperty
newValue HopDestinationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: HopDestinationProperty -> ()
priority :: HopDestinationProperty -> Maybe (Value Integer)
queue :: HopDestinationProperty -> Maybe (Value Text)
waitMinutes :: HopDestinationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
priority :: Maybe (Value Integer)
queue :: Maybe (Value Text)
waitMinutes :: Maybe (Value Integer)
..}
= HopDestinationProperty {waitMinutes :: Maybe (Value Integer)
waitMinutes = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "WaitMinutes" HopDestinationProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
priority :: Maybe (Value Integer)
queue :: Maybe (Value Text)
haddock_workaround_ :: ()
priority :: Maybe (Value Integer)
queue :: Maybe (Value Text)
..}