module Stratosphere.Pinpoint.ApplicationSettings.QuietTimeProperty (
        QuietTimeProperty(..), mkQuietTimeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data QuietTimeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-applicationsettings-quiettime.html>
    QuietTimeProperty {QuietTimeProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-applicationsettings-quiettime.html#cfn-pinpoint-applicationsettings-quiettime-end>
                       QuietTimeProperty -> Value Text
end :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pinpoint-applicationsettings-quiettime.html#cfn-pinpoint-applicationsettings-quiettime-start>
                       QuietTimeProperty -> Value Text
start :: (Value Prelude.Text)}
  deriving stock (QuietTimeProperty -> QuietTimeProperty -> Bool
(QuietTimeProperty -> QuietTimeProperty -> Bool)
-> (QuietTimeProperty -> QuietTimeProperty -> Bool)
-> Eq QuietTimeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: QuietTimeProperty -> QuietTimeProperty -> Bool
== :: QuietTimeProperty -> QuietTimeProperty -> Bool
$c/= :: QuietTimeProperty -> QuietTimeProperty -> Bool
/= :: QuietTimeProperty -> QuietTimeProperty -> Bool
Prelude.Eq, Int -> QuietTimeProperty -> ShowS
[QuietTimeProperty] -> ShowS
QuietTimeProperty -> String
(Int -> QuietTimeProperty -> ShowS)
-> (QuietTimeProperty -> String)
-> ([QuietTimeProperty] -> ShowS)
-> Show QuietTimeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> QuietTimeProperty -> ShowS
showsPrec :: Int -> QuietTimeProperty -> ShowS
$cshow :: QuietTimeProperty -> String
show :: QuietTimeProperty -> String
$cshowList :: [QuietTimeProperty] -> ShowS
showList :: [QuietTimeProperty] -> ShowS
Prelude.Show)
mkQuietTimeProperty ::
  Value Prelude.Text -> Value Prelude.Text -> QuietTimeProperty
mkQuietTimeProperty :: Value Text -> Value Text -> QuietTimeProperty
mkQuietTimeProperty Value Text
end Value Text
start
  = QuietTimeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), end :: Value Text
end = Value Text
end, start :: Value Text
start = Value Text
start}
instance ToResourceProperties QuietTimeProperty where
  toResourceProperties :: QuietTimeProperty -> ResourceProperties
toResourceProperties QuietTimeProperty {()
Value Text
haddock_workaround_ :: QuietTimeProperty -> ()
end :: QuietTimeProperty -> Value Text
start :: QuietTimeProperty -> Value Text
haddock_workaround_ :: ()
end :: Value Text
start :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Pinpoint::ApplicationSettings.QuietTime",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"End" 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
end, Key
"Start" 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
start]}
instance JSON.ToJSON QuietTimeProperty where
  toJSON :: QuietTimeProperty -> Value
toJSON QuietTimeProperty {()
Value Text
haddock_workaround_ :: QuietTimeProperty -> ()
end :: QuietTimeProperty -> Value Text
start :: QuietTimeProperty -> Value Text
haddock_workaround_ :: ()
end :: Value Text
start :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"End" 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
end, Key
"Start" 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
start]
instance Property "End" QuietTimeProperty where
  type PropertyType "End" QuietTimeProperty = Value Prelude.Text
  set :: PropertyType "End" QuietTimeProperty
-> QuietTimeProperty -> QuietTimeProperty
set PropertyType "End" QuietTimeProperty
newValue QuietTimeProperty {()
Value Text
haddock_workaround_ :: QuietTimeProperty -> ()
end :: QuietTimeProperty -> Value Text
start :: QuietTimeProperty -> Value Text
haddock_workaround_ :: ()
end :: Value Text
start :: Value Text
..}
    = QuietTimeProperty {end :: Value Text
end = PropertyType "End" QuietTimeProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
start :: Value Text
haddock_workaround_ :: ()
start :: Value Text
..}
instance Property "Start" QuietTimeProperty where
  type PropertyType "Start" QuietTimeProperty = Value Prelude.Text
  set :: PropertyType "Start" QuietTimeProperty
-> QuietTimeProperty -> QuietTimeProperty
set PropertyType "Start" QuietTimeProperty
newValue QuietTimeProperty {()
Value Text
haddock_workaround_ :: QuietTimeProperty -> ()
end :: QuietTimeProperty -> Value Text
start :: QuietTimeProperty -> Value Text
haddock_workaround_ :: ()
end :: Value Text
start :: Value Text
..}
    = QuietTimeProperty {start :: Value Text
start = PropertyType "Start" QuietTimeProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
end :: Value Text
haddock_workaround_ :: ()
end :: Value Text
..}