module Stratosphere.Scheduler.Schedule.FlexibleTimeWindowProperty (
FlexibleTimeWindowProperty(..), mkFlexibleTimeWindowProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FlexibleTimeWindowProperty
=
FlexibleTimeWindowProperty {FlexibleTimeWindowProperty -> ()
haddock_workaround_ :: (),
FlexibleTimeWindowProperty -> Maybe (Value Double)
maximumWindowInMinutes :: (Prelude.Maybe (Value Prelude.Double)),
FlexibleTimeWindowProperty -> Value Text
mode :: (Value Prelude.Text)}
deriving stock (FlexibleTimeWindowProperty -> FlexibleTimeWindowProperty -> Bool
(FlexibleTimeWindowProperty -> FlexibleTimeWindowProperty -> Bool)
-> (FlexibleTimeWindowProperty
-> FlexibleTimeWindowProperty -> Bool)
-> Eq FlexibleTimeWindowProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FlexibleTimeWindowProperty -> FlexibleTimeWindowProperty -> Bool
== :: FlexibleTimeWindowProperty -> FlexibleTimeWindowProperty -> Bool
$c/= :: FlexibleTimeWindowProperty -> FlexibleTimeWindowProperty -> Bool
/= :: FlexibleTimeWindowProperty -> FlexibleTimeWindowProperty -> Bool
Prelude.Eq, Int -> FlexibleTimeWindowProperty -> ShowS
[FlexibleTimeWindowProperty] -> ShowS
FlexibleTimeWindowProperty -> String
(Int -> FlexibleTimeWindowProperty -> ShowS)
-> (FlexibleTimeWindowProperty -> String)
-> ([FlexibleTimeWindowProperty] -> ShowS)
-> Show FlexibleTimeWindowProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FlexibleTimeWindowProperty -> ShowS
showsPrec :: Int -> FlexibleTimeWindowProperty -> ShowS
$cshow :: FlexibleTimeWindowProperty -> String
show :: FlexibleTimeWindowProperty -> String
$cshowList :: [FlexibleTimeWindowProperty] -> ShowS
showList :: [FlexibleTimeWindowProperty] -> ShowS
Prelude.Show)
mkFlexibleTimeWindowProperty ::
Value Prelude.Text -> FlexibleTimeWindowProperty
mkFlexibleTimeWindowProperty :: Value Text -> FlexibleTimeWindowProperty
mkFlexibleTimeWindowProperty Value Text
mode
= FlexibleTimeWindowProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), mode :: Value Text
mode = Value Text
mode,
maximumWindowInMinutes :: Maybe (Value Double)
maximumWindowInMinutes = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FlexibleTimeWindowProperty where
toResourceProperties :: FlexibleTimeWindowProperty -> ResourceProperties
toResourceProperties FlexibleTimeWindowProperty {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: FlexibleTimeWindowProperty -> ()
maximumWindowInMinutes :: FlexibleTimeWindowProperty -> Maybe (Value Double)
mode :: FlexibleTimeWindowProperty -> Value Text
haddock_workaround_ :: ()
maximumWindowInMinutes :: Maybe (Value Double)
mode :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Scheduler::Schedule.FlexibleTimeWindow",
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
"Mode" 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..= Value Text
mode]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"MaximumWindowInMinutes"
(Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maximumWindowInMinutes]))}
instance JSON.ToJSON FlexibleTimeWindowProperty where
toJSON :: FlexibleTimeWindowProperty -> Value
toJSON FlexibleTimeWindowProperty {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: FlexibleTimeWindowProperty -> ()
maximumWindowInMinutes :: FlexibleTimeWindowProperty -> Maybe (Value Double)
mode :: FlexibleTimeWindowProperty -> Value Text
haddock_workaround_ :: ()
maximumWindowInMinutes :: Maybe (Value Double)
mode :: 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
"Mode" 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..= Value Text
mode]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"MaximumWindowInMinutes"
(Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
maximumWindowInMinutes])))
instance Property "MaximumWindowInMinutes" FlexibleTimeWindowProperty where
type PropertyType "MaximumWindowInMinutes" FlexibleTimeWindowProperty = Value Prelude.Double
set :: PropertyType "MaximumWindowInMinutes" FlexibleTimeWindowProperty
-> FlexibleTimeWindowProperty -> FlexibleTimeWindowProperty
set PropertyType "MaximumWindowInMinutes" FlexibleTimeWindowProperty
newValue FlexibleTimeWindowProperty {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: FlexibleTimeWindowProperty -> ()
maximumWindowInMinutes :: FlexibleTimeWindowProperty -> Maybe (Value Double)
mode :: FlexibleTimeWindowProperty -> Value Text
haddock_workaround_ :: ()
maximumWindowInMinutes :: Maybe (Value Double)
mode :: Value Text
..}
= FlexibleTimeWindowProperty
{maximumWindowInMinutes :: Maybe (Value Double)
maximumWindowInMinutes = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaximumWindowInMinutes" FlexibleTimeWindowProperty
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
mode :: Value Text
haddock_workaround_ :: ()
mode :: Value Text
..}
instance Property "Mode" FlexibleTimeWindowProperty where
type PropertyType "Mode" FlexibleTimeWindowProperty = Value Prelude.Text
set :: PropertyType "Mode" FlexibleTimeWindowProperty
-> FlexibleTimeWindowProperty -> FlexibleTimeWindowProperty
set PropertyType "Mode" FlexibleTimeWindowProperty
newValue FlexibleTimeWindowProperty {Maybe (Value Double)
()
Value Text
haddock_workaround_ :: FlexibleTimeWindowProperty -> ()
maximumWindowInMinutes :: FlexibleTimeWindowProperty -> Maybe (Value Double)
mode :: FlexibleTimeWindowProperty -> Value Text
haddock_workaround_ :: ()
maximumWindowInMinutes :: Maybe (Value Double)
mode :: Value Text
..}
= FlexibleTimeWindowProperty {mode :: Value Text
mode = PropertyType "Mode" FlexibleTimeWindowProperty
Value Text
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
maximumWindowInMinutes :: Maybe (Value Double)
haddock_workaround_ :: ()
maximumWindowInMinutes :: Maybe (Value Double)
..}