module Stratosphere.ConnectCampaignsV2.Campaign.LocalTimeZoneConfigProperty (
        LocalTimeZoneConfigProperty(..), mkLocalTimeZoneConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LocalTimeZoneConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaignsv2-campaign-localtimezoneconfig.html>
    LocalTimeZoneConfigProperty {LocalTimeZoneConfigProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaignsv2-campaign-localtimezoneconfig.html#cfn-connectcampaignsv2-campaign-localtimezoneconfig-defaulttimezone>
                                 LocalTimeZoneConfigProperty -> Maybe (Value Text)
defaultTimeZone :: (Prelude.Maybe (Value Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaignsv2-campaign-localtimezoneconfig.html#cfn-connectcampaignsv2-campaign-localtimezoneconfig-localtimezonedetection>
                                 LocalTimeZoneConfigProperty -> Maybe (ValueList Text)
localTimeZoneDetection :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (LocalTimeZoneConfigProperty -> LocalTimeZoneConfigProperty -> Bool
(LocalTimeZoneConfigProperty
 -> LocalTimeZoneConfigProperty -> Bool)
-> (LocalTimeZoneConfigProperty
    -> LocalTimeZoneConfigProperty -> Bool)
-> Eq LocalTimeZoneConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LocalTimeZoneConfigProperty -> LocalTimeZoneConfigProperty -> Bool
== :: LocalTimeZoneConfigProperty -> LocalTimeZoneConfigProperty -> Bool
$c/= :: LocalTimeZoneConfigProperty -> LocalTimeZoneConfigProperty -> Bool
/= :: LocalTimeZoneConfigProperty -> LocalTimeZoneConfigProperty -> Bool
Prelude.Eq, Int -> LocalTimeZoneConfigProperty -> ShowS
[LocalTimeZoneConfigProperty] -> ShowS
LocalTimeZoneConfigProperty -> String
(Int -> LocalTimeZoneConfigProperty -> ShowS)
-> (LocalTimeZoneConfigProperty -> String)
-> ([LocalTimeZoneConfigProperty] -> ShowS)
-> Show LocalTimeZoneConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LocalTimeZoneConfigProperty -> ShowS
showsPrec :: Int -> LocalTimeZoneConfigProperty -> ShowS
$cshow :: LocalTimeZoneConfigProperty -> String
show :: LocalTimeZoneConfigProperty -> String
$cshowList :: [LocalTimeZoneConfigProperty] -> ShowS
showList :: [LocalTimeZoneConfigProperty] -> ShowS
Prelude.Show)
mkLocalTimeZoneConfigProperty :: LocalTimeZoneConfigProperty
mkLocalTimeZoneConfigProperty :: LocalTimeZoneConfigProperty
mkLocalTimeZoneConfigProperty
  = LocalTimeZoneConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), defaultTimeZone :: Maybe (Value Text)
defaultTimeZone = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       localTimeZoneDetection :: Maybe (ValueList Text)
localTimeZoneDetection = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LocalTimeZoneConfigProperty where
  toResourceProperties :: LocalTimeZoneConfigProperty -> ResourceProperties
toResourceProperties LocalTimeZoneConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: LocalTimeZoneConfigProperty -> ()
defaultTimeZone :: LocalTimeZoneConfigProperty -> Maybe (Value Text)
localTimeZoneDetection :: LocalTimeZoneConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
defaultTimeZone :: Maybe (Value Text)
localTimeZoneDetection :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ConnectCampaignsV2::Campaign.LocalTimeZoneConfig",
         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
"DefaultTimeZone" (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)
defaultTimeZone,
                            Key -> ValueList 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
"LocalTimeZoneDetection"
                              (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
localTimeZoneDetection])}
instance JSON.ToJSON LocalTimeZoneConfigProperty where
  toJSON :: LocalTimeZoneConfigProperty -> Value
toJSON LocalTimeZoneConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: LocalTimeZoneConfigProperty -> ()
defaultTimeZone :: LocalTimeZoneConfigProperty -> Maybe (Value Text)
localTimeZoneDetection :: LocalTimeZoneConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
defaultTimeZone :: Maybe (Value Text)
localTimeZoneDetection :: Maybe (ValueList 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
"DefaultTimeZone" (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)
defaultTimeZone,
               Key -> ValueList 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
"LocalTimeZoneDetection"
                 (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
localTimeZoneDetection]))
instance Property "DefaultTimeZone" LocalTimeZoneConfigProperty where
  type PropertyType "DefaultTimeZone" LocalTimeZoneConfigProperty = Value Prelude.Text
  set :: PropertyType "DefaultTimeZone" LocalTimeZoneConfigProperty
-> LocalTimeZoneConfigProperty -> LocalTimeZoneConfigProperty
set PropertyType "DefaultTimeZone" LocalTimeZoneConfigProperty
newValue LocalTimeZoneConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: LocalTimeZoneConfigProperty -> ()
defaultTimeZone :: LocalTimeZoneConfigProperty -> Maybe (Value Text)
localTimeZoneDetection :: LocalTimeZoneConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
defaultTimeZone :: Maybe (Value Text)
localTimeZoneDetection :: Maybe (ValueList Text)
..}
    = LocalTimeZoneConfigProperty
        {defaultTimeZone :: Maybe (Value Text)
defaultTimeZone = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DefaultTimeZone" LocalTimeZoneConfigProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
localTimeZoneDetection :: Maybe (ValueList Text)
haddock_workaround_ :: ()
localTimeZoneDetection :: Maybe (ValueList Text)
..}
instance Property "LocalTimeZoneDetection" LocalTimeZoneConfigProperty where
  type PropertyType "LocalTimeZoneDetection" LocalTimeZoneConfigProperty = ValueList Prelude.Text
  set :: PropertyType "LocalTimeZoneDetection" LocalTimeZoneConfigProperty
-> LocalTimeZoneConfigProperty -> LocalTimeZoneConfigProperty
set PropertyType "LocalTimeZoneDetection" LocalTimeZoneConfigProperty
newValue LocalTimeZoneConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: LocalTimeZoneConfigProperty -> ()
defaultTimeZone :: LocalTimeZoneConfigProperty -> Maybe (Value Text)
localTimeZoneDetection :: LocalTimeZoneConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
defaultTimeZone :: Maybe (Value Text)
localTimeZoneDetection :: Maybe (ValueList Text)
..}
    = LocalTimeZoneConfigProperty
        {localTimeZoneDetection :: Maybe (ValueList Text)
localTimeZoneDetection = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LocalTimeZoneDetection" LocalTimeZoneConfigProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
defaultTimeZone :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultTimeZone :: Maybe (Value Text)
..}