module Stratosphere.ApplicationSignals.ServiceLevelObjective.CalendarIntervalProperty (
        CalendarIntervalProperty(..), mkCalendarIntervalProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CalendarIntervalProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html>
    CalendarIntervalProperty {CalendarIntervalProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html#cfn-applicationsignals-servicelevelobjective-calendarinterval-duration>
                              CalendarIntervalProperty -> Value Integer
duration :: (Value Prelude.Integer),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html#cfn-applicationsignals-servicelevelobjective-calendarinterval-durationunit>
                              CalendarIntervalProperty -> Value Text
durationUnit :: (Value Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-applicationsignals-servicelevelobjective-calendarinterval.html#cfn-applicationsignals-servicelevelobjective-calendarinterval-starttime>
                              CalendarIntervalProperty -> Value Integer
startTime :: (Value Prelude.Integer)}
  deriving stock (CalendarIntervalProperty -> CalendarIntervalProperty -> Bool
(CalendarIntervalProperty -> CalendarIntervalProperty -> Bool)
-> (CalendarIntervalProperty -> CalendarIntervalProperty -> Bool)
-> Eq CalendarIntervalProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CalendarIntervalProperty -> CalendarIntervalProperty -> Bool
== :: CalendarIntervalProperty -> CalendarIntervalProperty -> Bool
$c/= :: CalendarIntervalProperty -> CalendarIntervalProperty -> Bool
/= :: CalendarIntervalProperty -> CalendarIntervalProperty -> Bool
Prelude.Eq, Int -> CalendarIntervalProperty -> ShowS
[CalendarIntervalProperty] -> ShowS
CalendarIntervalProperty -> String
(Int -> CalendarIntervalProperty -> ShowS)
-> (CalendarIntervalProperty -> String)
-> ([CalendarIntervalProperty] -> ShowS)
-> Show CalendarIntervalProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CalendarIntervalProperty -> ShowS
showsPrec :: Int -> CalendarIntervalProperty -> ShowS
$cshow :: CalendarIntervalProperty -> String
show :: CalendarIntervalProperty -> String
$cshowList :: [CalendarIntervalProperty] -> ShowS
showList :: [CalendarIntervalProperty] -> ShowS
Prelude.Show)
mkCalendarIntervalProperty ::
  Value Prelude.Integer
  -> Value Prelude.Text
     -> Value Prelude.Integer -> CalendarIntervalProperty
mkCalendarIntervalProperty :: Value Integer
-> Value Text -> Value Integer -> CalendarIntervalProperty
mkCalendarIntervalProperty Value Integer
duration Value Text
durationUnit Value Integer
startTime
  = CalendarIntervalProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), duration :: Value Integer
duration = Value Integer
duration,
       durationUnit :: Value Text
durationUnit = Value Text
durationUnit, startTime :: Value Integer
startTime = Value Integer
startTime}
instance ToResourceProperties CalendarIntervalProperty where
  toResourceProperties :: CalendarIntervalProperty -> ResourceProperties
toResourceProperties CalendarIntervalProperty {()
Value Integer
Value Text
haddock_workaround_ :: CalendarIntervalProperty -> ()
duration :: CalendarIntervalProperty -> Value Integer
durationUnit :: CalendarIntervalProperty -> Value Text
startTime :: CalendarIntervalProperty -> Value Integer
haddock_workaround_ :: ()
duration :: Value Integer
durationUnit :: Value Text
startTime :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ApplicationSignals::ServiceLevelObjective.CalendarInterval",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Duration" 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..= Value Integer
duration,
                       Key
"DurationUnit" 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
durationUnit,
                       Key
"StartTime" 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..= Value Integer
startTime]}
instance JSON.ToJSON CalendarIntervalProperty where
  toJSON :: CalendarIntervalProperty -> Value
toJSON CalendarIntervalProperty {()
Value Integer
Value Text
haddock_workaround_ :: CalendarIntervalProperty -> ()
duration :: CalendarIntervalProperty -> Value Integer
durationUnit :: CalendarIntervalProperty -> Value Text
startTime :: CalendarIntervalProperty -> Value Integer
haddock_workaround_ :: ()
duration :: Value Integer
durationUnit :: Value Text
startTime :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Duration" 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..= Value Integer
duration, Key
"DurationUnit" 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
durationUnit,
         Key
"StartTime" 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..= Value Integer
startTime]
instance Property "Duration" CalendarIntervalProperty where
  type PropertyType "Duration" CalendarIntervalProperty = Value Prelude.Integer
  set :: PropertyType "Duration" CalendarIntervalProperty
-> CalendarIntervalProperty -> CalendarIntervalProperty
set PropertyType "Duration" CalendarIntervalProperty
newValue CalendarIntervalProperty {()
Value Integer
Value Text
haddock_workaround_ :: CalendarIntervalProperty -> ()
duration :: CalendarIntervalProperty -> Value Integer
durationUnit :: CalendarIntervalProperty -> Value Text
startTime :: CalendarIntervalProperty -> Value Integer
haddock_workaround_ :: ()
duration :: Value Integer
durationUnit :: Value Text
startTime :: Value Integer
..}
    = CalendarIntervalProperty {duration :: Value Integer
duration = PropertyType "Duration" CalendarIntervalProperty
Value Integer
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
durationUnit :: Value Text
startTime :: Value Integer
haddock_workaround_ :: ()
durationUnit :: Value Text
startTime :: Value Integer
..}
instance Property "DurationUnit" CalendarIntervalProperty where
  type PropertyType "DurationUnit" CalendarIntervalProperty = Value Prelude.Text
  set :: PropertyType "DurationUnit" CalendarIntervalProperty
-> CalendarIntervalProperty -> CalendarIntervalProperty
set PropertyType "DurationUnit" CalendarIntervalProperty
newValue CalendarIntervalProperty {()
Value Integer
Value Text
haddock_workaround_ :: CalendarIntervalProperty -> ()
duration :: CalendarIntervalProperty -> Value Integer
durationUnit :: CalendarIntervalProperty -> Value Text
startTime :: CalendarIntervalProperty -> Value Integer
haddock_workaround_ :: ()
duration :: Value Integer
durationUnit :: Value Text
startTime :: Value Integer
..}
    = CalendarIntervalProperty {durationUnit :: Value Text
durationUnit = PropertyType "DurationUnit" CalendarIntervalProperty
Value Text
newValue, ()
Value Integer
haddock_workaround_ :: ()
duration :: Value Integer
startTime :: Value Integer
haddock_workaround_ :: ()
duration :: Value Integer
startTime :: Value Integer
..}
instance Property "StartTime" CalendarIntervalProperty where
  type PropertyType "StartTime" CalendarIntervalProperty = Value Prelude.Integer
  set :: PropertyType "StartTime" CalendarIntervalProperty
-> CalendarIntervalProperty -> CalendarIntervalProperty
set PropertyType "StartTime" CalendarIntervalProperty
newValue CalendarIntervalProperty {()
Value Integer
Value Text
haddock_workaround_ :: CalendarIntervalProperty -> ()
duration :: CalendarIntervalProperty -> Value Integer
durationUnit :: CalendarIntervalProperty -> Value Text
startTime :: CalendarIntervalProperty -> Value Integer
haddock_workaround_ :: ()
duration :: Value Integer
durationUnit :: Value Text
startTime :: Value Integer
..}
    = CalendarIntervalProperty {startTime :: Value Integer
startTime = PropertyType "StartTime" CalendarIntervalProperty
Value Integer
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
duration :: Value Integer
durationUnit :: Value Text
haddock_workaround_ :: ()
duration :: Value Integer
durationUnit :: Value Text
..}