packages feed

stratosphere-connectcampaignsv2-1.0.0: gen/Stratosphere/ConnectCampaignsV2/Campaign/LocalTimeZoneConfigProperty.hs

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 {haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaignsv2-campaign-localtimezoneconfig.html#cfn-connectcampaignsv2-campaign-localtimezoneconfig-defaulttimezone>
                                 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>
                                 localTimeZoneDetection :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkLocalTimeZoneConfigProperty :: LocalTimeZoneConfigProperty
mkLocalTimeZoneConfigProperty
  = LocalTimeZoneConfigProperty
      {haddock_workaround_ = (), defaultTimeZone = Prelude.Nothing,
       localTimeZoneDetection = Prelude.Nothing}
instance ToResourceProperties LocalTimeZoneConfigProperty where
  toResourceProperties LocalTimeZoneConfigProperty {..}
    = ResourceProperties
        {awsType = "AWS::ConnectCampaignsV2::Campaign.LocalTimeZoneConfig",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "DefaultTimeZone" Prelude.<$> defaultTimeZone,
                            (JSON..=) "LocalTimeZoneDetection"
                              Prelude.<$> localTimeZoneDetection])}
instance JSON.ToJSON LocalTimeZoneConfigProperty where
  toJSON LocalTimeZoneConfigProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "DefaultTimeZone" Prelude.<$> defaultTimeZone,
               (JSON..=) "LocalTimeZoneDetection"
                 Prelude.<$> localTimeZoneDetection]))
instance Property "DefaultTimeZone" LocalTimeZoneConfigProperty where
  type PropertyType "DefaultTimeZone" LocalTimeZoneConfigProperty = Value Prelude.Text
  set newValue LocalTimeZoneConfigProperty {..}
    = LocalTimeZoneConfigProperty
        {defaultTimeZone = Prelude.pure newValue, ..}
instance Property "LocalTimeZoneDetection" LocalTimeZoneConfigProperty where
  type PropertyType "LocalTimeZoneDetection" LocalTimeZoneConfigProperty = ValueList Prelude.Text
  set newValue LocalTimeZoneConfigProperty {..}
    = LocalTimeZoneConfigProperty
        {localTimeZoneDetection = Prelude.pure newValue, ..}