module Stratosphere.Connect.HoursOfOperation.HoursOfOperationTimeSliceProperty (
HoursOfOperationTimeSliceProperty(..),
mkHoursOfOperationTimeSliceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HoursOfOperationTimeSliceProperty
=
HoursOfOperationTimeSliceProperty {HoursOfOperationTimeSliceProperty -> ()
haddock_workaround_ :: (),
HoursOfOperationTimeSliceProperty -> Value Integer
hours :: (Value Prelude.Integer),
HoursOfOperationTimeSliceProperty -> Value Integer
minutes :: (Value Prelude.Integer)}
deriving stock (HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty -> Bool
(HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty -> Bool)
-> (HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty -> Bool)
-> Eq HoursOfOperationTimeSliceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty -> Bool
== :: HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty -> Bool
$c/= :: HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty -> Bool
/= :: HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty -> Bool
Prelude.Eq, Int -> HoursOfOperationTimeSliceProperty -> ShowS
[HoursOfOperationTimeSliceProperty] -> ShowS
HoursOfOperationTimeSliceProperty -> String
(Int -> HoursOfOperationTimeSliceProperty -> ShowS)
-> (HoursOfOperationTimeSliceProperty -> String)
-> ([HoursOfOperationTimeSliceProperty] -> ShowS)
-> Show HoursOfOperationTimeSliceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HoursOfOperationTimeSliceProperty -> ShowS
showsPrec :: Int -> HoursOfOperationTimeSliceProperty -> ShowS
$cshow :: HoursOfOperationTimeSliceProperty -> String
show :: HoursOfOperationTimeSliceProperty -> String
$cshowList :: [HoursOfOperationTimeSliceProperty] -> ShowS
showList :: [HoursOfOperationTimeSliceProperty] -> ShowS
Prelude.Show)
mkHoursOfOperationTimeSliceProperty ::
Value Prelude.Integer
-> Value Prelude.Integer -> HoursOfOperationTimeSliceProperty
mkHoursOfOperationTimeSliceProperty :: Value Integer -> Value Integer -> HoursOfOperationTimeSliceProperty
mkHoursOfOperationTimeSliceProperty Value Integer
hours Value Integer
minutes
= HoursOfOperationTimeSliceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), hours :: Value Integer
hours = Value Integer
hours, minutes :: Value Integer
minutes = Value Integer
minutes}
instance ToResourceProperties HoursOfOperationTimeSliceProperty where
toResourceProperties :: HoursOfOperationTimeSliceProperty -> ResourceProperties
toResourceProperties HoursOfOperationTimeSliceProperty {()
Value Integer
haddock_workaround_ :: HoursOfOperationTimeSliceProperty -> ()
hours :: HoursOfOperationTimeSliceProperty -> Value Integer
minutes :: HoursOfOperationTimeSliceProperty -> Value Integer
haddock_workaround_ :: ()
hours :: Value Integer
minutes :: Value Integer
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::HoursOfOperation.HoursOfOperationTimeSlice",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Hours" 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
hours, Key
"Minutes" 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
minutes]}
instance JSON.ToJSON HoursOfOperationTimeSliceProperty where
toJSON :: HoursOfOperationTimeSliceProperty -> Value
toJSON HoursOfOperationTimeSliceProperty {()
Value Integer
haddock_workaround_ :: HoursOfOperationTimeSliceProperty -> ()
hours :: HoursOfOperationTimeSliceProperty -> Value Integer
minutes :: HoursOfOperationTimeSliceProperty -> Value Integer
haddock_workaround_ :: ()
hours :: Value Integer
minutes :: Value Integer
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Hours" 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
hours, Key
"Minutes" 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
minutes]
instance Property "Hours" HoursOfOperationTimeSliceProperty where
type PropertyType "Hours" HoursOfOperationTimeSliceProperty = Value Prelude.Integer
set :: PropertyType "Hours" HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty
set PropertyType "Hours" HoursOfOperationTimeSliceProperty
newValue HoursOfOperationTimeSliceProperty {()
Value Integer
haddock_workaround_ :: HoursOfOperationTimeSliceProperty -> ()
hours :: HoursOfOperationTimeSliceProperty -> Value Integer
minutes :: HoursOfOperationTimeSliceProperty -> Value Integer
haddock_workaround_ :: ()
hours :: Value Integer
minutes :: Value Integer
..}
= HoursOfOperationTimeSliceProperty {hours :: Value Integer
hours = PropertyType "Hours" HoursOfOperationTimeSliceProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
minutes :: Value Integer
haddock_workaround_ :: ()
minutes :: Value Integer
..}
instance Property "Minutes" HoursOfOperationTimeSliceProperty where
type PropertyType "Minutes" HoursOfOperationTimeSliceProperty = Value Prelude.Integer
set :: PropertyType "Minutes" HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty
-> HoursOfOperationTimeSliceProperty
set PropertyType "Minutes" HoursOfOperationTimeSliceProperty
newValue HoursOfOperationTimeSliceProperty {()
Value Integer
haddock_workaround_ :: HoursOfOperationTimeSliceProperty -> ()
hours :: HoursOfOperationTimeSliceProperty -> Value Integer
minutes :: HoursOfOperationTimeSliceProperty -> Value Integer
haddock_workaround_ :: ()
hours :: Value Integer
minutes :: Value Integer
..}
= HoursOfOperationTimeSliceProperty {minutes :: Value Integer
minutes = PropertyType "Minutes" HoursOfOperationTimeSliceProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
hours :: Value Integer
haddock_workaround_ :: ()
hours :: Value Integer
..}