module Stratosphere.QuickSight.RefreshSchedule.RefreshScheduleMapProperty (
        module Exports, RefreshScheduleMapProperty(..),
        mkRefreshScheduleMapProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.RefreshSchedule.ScheduleFrequencyProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RefreshScheduleMapProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-refreshschedule-refreshschedulemap.html>
    RefreshScheduleMapProperty {RefreshScheduleMapProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-refreshschedule-refreshschedulemap.html#cfn-quicksight-refreshschedule-refreshschedulemap-refreshtype>
                                RefreshScheduleMapProperty -> Maybe (Value Text)
refreshType :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-refreshschedule-refreshschedulemap.html#cfn-quicksight-refreshschedule-refreshschedulemap-schedulefrequency>
                                RefreshScheduleMapProperty -> Maybe ScheduleFrequencyProperty
scheduleFrequency :: (Prelude.Maybe ScheduleFrequencyProperty),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-refreshschedule-refreshschedulemap.html#cfn-quicksight-refreshschedule-refreshschedulemap-scheduleid>
                                RefreshScheduleMapProperty -> Maybe (Value Text)
scheduleId :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-refreshschedule-refreshschedulemap.html#cfn-quicksight-refreshschedule-refreshschedulemap-startafterdatetime>
                                RefreshScheduleMapProperty -> Maybe (Value Text)
startAfterDateTime :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (RefreshScheduleMapProperty -> RefreshScheduleMapProperty -> Bool
(RefreshScheduleMapProperty -> RefreshScheduleMapProperty -> Bool)
-> (RefreshScheduleMapProperty
    -> RefreshScheduleMapProperty -> Bool)
-> Eq RefreshScheduleMapProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RefreshScheduleMapProperty -> RefreshScheduleMapProperty -> Bool
== :: RefreshScheduleMapProperty -> RefreshScheduleMapProperty -> Bool
$c/= :: RefreshScheduleMapProperty -> RefreshScheduleMapProperty -> Bool
/= :: RefreshScheduleMapProperty -> RefreshScheduleMapProperty -> Bool
Prelude.Eq, Int -> RefreshScheduleMapProperty -> ShowS
[RefreshScheduleMapProperty] -> ShowS
RefreshScheduleMapProperty -> String
(Int -> RefreshScheduleMapProperty -> ShowS)
-> (RefreshScheduleMapProperty -> String)
-> ([RefreshScheduleMapProperty] -> ShowS)
-> Show RefreshScheduleMapProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RefreshScheduleMapProperty -> ShowS
showsPrec :: Int -> RefreshScheduleMapProperty -> ShowS
$cshow :: RefreshScheduleMapProperty -> String
show :: RefreshScheduleMapProperty -> String
$cshowList :: [RefreshScheduleMapProperty] -> ShowS
showList :: [RefreshScheduleMapProperty] -> ShowS
Prelude.Show)
mkRefreshScheduleMapProperty :: RefreshScheduleMapProperty
mkRefreshScheduleMapProperty :: RefreshScheduleMapProperty
mkRefreshScheduleMapProperty
  = RefreshScheduleMapProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), refreshType :: Maybe (Value Text)
refreshType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleFrequency = Maybe ScheduleFrequencyProperty
forall a. Maybe a
Prelude.Nothing, scheduleId :: Maybe (Value Text)
scheduleId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       startAfterDateTime :: Maybe (Value Text)
startAfterDateTime = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RefreshScheduleMapProperty where
  toResourceProperties :: RefreshScheduleMapProperty -> ResourceProperties
toResourceProperties RefreshScheduleMapProperty {Maybe (Value Text)
Maybe ScheduleFrequencyProperty
()
haddock_workaround_ :: RefreshScheduleMapProperty -> ()
refreshType :: RefreshScheduleMapProperty -> Maybe (Value Text)
scheduleFrequency :: RefreshScheduleMapProperty -> Maybe ScheduleFrequencyProperty
scheduleId :: RefreshScheduleMapProperty -> Maybe (Value Text)
startAfterDateTime :: RefreshScheduleMapProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleId :: Maybe (Value Text)
startAfterDateTime :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::RefreshSchedule.RefreshScheduleMap",
         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
"RefreshType" (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)
refreshType,
                            Key -> ScheduleFrequencyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScheduleFrequency" (ScheduleFrequencyProperty -> (Key, Value))
-> Maybe ScheduleFrequencyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ScheduleFrequencyProperty
scheduleFrequency,
                            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
"ScheduleId" (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)
scheduleId,
                            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
"StartAfterDateTime" (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)
startAfterDateTime])}
instance JSON.ToJSON RefreshScheduleMapProperty where
  toJSON :: RefreshScheduleMapProperty -> Value
toJSON RefreshScheduleMapProperty {Maybe (Value Text)
Maybe ScheduleFrequencyProperty
()
haddock_workaround_ :: RefreshScheduleMapProperty -> ()
refreshType :: RefreshScheduleMapProperty -> Maybe (Value Text)
scheduleFrequency :: RefreshScheduleMapProperty -> Maybe ScheduleFrequencyProperty
scheduleId :: RefreshScheduleMapProperty -> Maybe (Value Text)
startAfterDateTime :: RefreshScheduleMapProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleId :: Maybe (Value Text)
startAfterDateTime :: 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
"RefreshType" (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)
refreshType,
               Key -> ScheduleFrequencyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScheduleFrequency" (ScheduleFrequencyProperty -> (Key, Value))
-> Maybe ScheduleFrequencyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ScheduleFrequencyProperty
scheduleFrequency,
               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
"ScheduleId" (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)
scheduleId,
               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
"StartAfterDateTime" (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)
startAfterDateTime]))
instance Property "RefreshType" RefreshScheduleMapProperty where
  type PropertyType "RefreshType" RefreshScheduleMapProperty = Value Prelude.Text
  set :: PropertyType "RefreshType" RefreshScheduleMapProperty
-> RefreshScheduleMapProperty -> RefreshScheduleMapProperty
set PropertyType "RefreshType" RefreshScheduleMapProperty
newValue RefreshScheduleMapProperty {Maybe (Value Text)
Maybe ScheduleFrequencyProperty
()
haddock_workaround_ :: RefreshScheduleMapProperty -> ()
refreshType :: RefreshScheduleMapProperty -> Maybe (Value Text)
scheduleFrequency :: RefreshScheduleMapProperty -> Maybe ScheduleFrequencyProperty
scheduleId :: RefreshScheduleMapProperty -> Maybe (Value Text)
startAfterDateTime :: RefreshScheduleMapProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleId :: Maybe (Value Text)
startAfterDateTime :: Maybe (Value Text)
..}
    = RefreshScheduleMapProperty
        {refreshType :: Maybe (Value Text)
refreshType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RefreshType" RefreshScheduleMapProperty
Value Text
newValue, Maybe (Value Text)
Maybe ScheduleFrequencyProperty
()
haddock_workaround_ :: ()
scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleId :: Maybe (Value Text)
startAfterDateTime :: Maybe (Value Text)
haddock_workaround_ :: ()
scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleId :: Maybe (Value Text)
startAfterDateTime :: Maybe (Value Text)
..}
instance Property "ScheduleFrequency" RefreshScheduleMapProperty where
  type PropertyType "ScheduleFrequency" RefreshScheduleMapProperty = ScheduleFrequencyProperty
  set :: PropertyType "ScheduleFrequency" RefreshScheduleMapProperty
-> RefreshScheduleMapProperty -> RefreshScheduleMapProperty
set PropertyType "ScheduleFrequency" RefreshScheduleMapProperty
newValue RefreshScheduleMapProperty {Maybe (Value Text)
Maybe ScheduleFrequencyProperty
()
haddock_workaround_ :: RefreshScheduleMapProperty -> ()
refreshType :: RefreshScheduleMapProperty -> Maybe (Value Text)
scheduleFrequency :: RefreshScheduleMapProperty -> Maybe ScheduleFrequencyProperty
scheduleId :: RefreshScheduleMapProperty -> Maybe (Value Text)
startAfterDateTime :: RefreshScheduleMapProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleId :: Maybe (Value Text)
startAfterDateTime :: Maybe (Value Text)
..}
    = RefreshScheduleMapProperty
        {scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleFrequency = ScheduleFrequencyProperty -> Maybe ScheduleFrequencyProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScheduleFrequency" RefreshScheduleMapProperty
ScheduleFrequencyProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleId :: Maybe (Value Text)
startAfterDateTime :: Maybe (Value Text)
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleId :: Maybe (Value Text)
startAfterDateTime :: Maybe (Value Text)
..}
instance Property "ScheduleId" RefreshScheduleMapProperty where
  type PropertyType "ScheduleId" RefreshScheduleMapProperty = Value Prelude.Text
  set :: PropertyType "ScheduleId" RefreshScheduleMapProperty
-> RefreshScheduleMapProperty -> RefreshScheduleMapProperty
set PropertyType "ScheduleId" RefreshScheduleMapProperty
newValue RefreshScheduleMapProperty {Maybe (Value Text)
Maybe ScheduleFrequencyProperty
()
haddock_workaround_ :: RefreshScheduleMapProperty -> ()
refreshType :: RefreshScheduleMapProperty -> Maybe (Value Text)
scheduleFrequency :: RefreshScheduleMapProperty -> Maybe ScheduleFrequencyProperty
scheduleId :: RefreshScheduleMapProperty -> Maybe (Value Text)
startAfterDateTime :: RefreshScheduleMapProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleId :: Maybe (Value Text)
startAfterDateTime :: Maybe (Value Text)
..}
    = RefreshScheduleMapProperty
        {scheduleId :: Maybe (Value Text)
scheduleId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScheduleId" RefreshScheduleMapProperty
Value Text
newValue, Maybe (Value Text)
Maybe ScheduleFrequencyProperty
()
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleFrequency :: Maybe ScheduleFrequencyProperty
startAfterDateTime :: Maybe (Value Text)
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleFrequency :: Maybe ScheduleFrequencyProperty
startAfterDateTime :: Maybe (Value Text)
..}
instance Property "StartAfterDateTime" RefreshScheduleMapProperty where
  type PropertyType "StartAfterDateTime" RefreshScheduleMapProperty = Value Prelude.Text
  set :: PropertyType "StartAfterDateTime" RefreshScheduleMapProperty
-> RefreshScheduleMapProperty -> RefreshScheduleMapProperty
set PropertyType "StartAfterDateTime" RefreshScheduleMapProperty
newValue RefreshScheduleMapProperty {Maybe (Value Text)
Maybe ScheduleFrequencyProperty
()
haddock_workaround_ :: RefreshScheduleMapProperty -> ()
refreshType :: RefreshScheduleMapProperty -> Maybe (Value Text)
scheduleFrequency :: RefreshScheduleMapProperty -> Maybe ScheduleFrequencyProperty
scheduleId :: RefreshScheduleMapProperty -> Maybe (Value Text)
startAfterDateTime :: RefreshScheduleMapProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleId :: Maybe (Value Text)
startAfterDateTime :: Maybe (Value Text)
..}
    = RefreshScheduleMapProperty
        {startAfterDateTime :: Maybe (Value Text)
startAfterDateTime = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StartAfterDateTime" RefreshScheduleMapProperty
Value Text
newValue, Maybe (Value Text)
Maybe ScheduleFrequencyProperty
()
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleId :: Maybe (Value Text)
haddock_workaround_ :: ()
refreshType :: Maybe (Value Text)
scheduleFrequency :: Maybe ScheduleFrequencyProperty
scheduleId :: Maybe (Value Text)
..}