module Stratosphere.SupportApp.SlackChannelConfiguration (
        SlackChannelConfiguration(..), mkSlackChannelConfiguration
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SlackChannelConfiguration
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-supportapp-slackchannelconfiguration.html>
    SlackChannelConfiguration {SlackChannelConfiguration -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-supportapp-slackchannelconfiguration.html#cfn-supportapp-slackchannelconfiguration-channelid>
                               SlackChannelConfiguration -> Value Text
channelId :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-supportapp-slackchannelconfiguration.html#cfn-supportapp-slackchannelconfiguration-channelname>
                               SlackChannelConfiguration -> Maybe (Value Text)
channelName :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-supportapp-slackchannelconfiguration.html#cfn-supportapp-slackchannelconfiguration-channelrolearn>
                               SlackChannelConfiguration -> Value Text
channelRoleArn :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-supportapp-slackchannelconfiguration.html#cfn-supportapp-slackchannelconfiguration-notifyonaddcorrespondencetocase>
                               SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnAddCorrespondenceToCase :: (Prelude.Maybe (Value Prelude.Bool)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-supportapp-slackchannelconfiguration.html#cfn-supportapp-slackchannelconfiguration-notifyoncaseseverity>
                               SlackChannelConfiguration -> Value Text
notifyOnCaseSeverity :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-supportapp-slackchannelconfiguration.html#cfn-supportapp-slackchannelconfiguration-notifyoncreateorreopencase>
                               SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCreateOrReopenCase :: (Prelude.Maybe (Value Prelude.Bool)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-supportapp-slackchannelconfiguration.html#cfn-supportapp-slackchannelconfiguration-notifyonresolvecase>
                               SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: (Prelude.Maybe (Value Prelude.Bool)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-supportapp-slackchannelconfiguration.html#cfn-supportapp-slackchannelconfiguration-teamid>
                               SlackChannelConfiguration -> Value Text
teamId :: (Value Prelude.Text)}
  deriving stock (SlackChannelConfiguration -> SlackChannelConfiguration -> Bool
(SlackChannelConfiguration -> SlackChannelConfiguration -> Bool)
-> (SlackChannelConfiguration -> SlackChannelConfiguration -> Bool)
-> Eq SlackChannelConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SlackChannelConfiguration -> SlackChannelConfiguration -> Bool
== :: SlackChannelConfiguration -> SlackChannelConfiguration -> Bool
$c/= :: SlackChannelConfiguration -> SlackChannelConfiguration -> Bool
/= :: SlackChannelConfiguration -> SlackChannelConfiguration -> Bool
Prelude.Eq, Int -> SlackChannelConfiguration -> ShowS
[SlackChannelConfiguration] -> ShowS
SlackChannelConfiguration -> String
(Int -> SlackChannelConfiguration -> ShowS)
-> (SlackChannelConfiguration -> String)
-> ([SlackChannelConfiguration] -> ShowS)
-> Show SlackChannelConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SlackChannelConfiguration -> ShowS
showsPrec :: Int -> SlackChannelConfiguration -> ShowS
$cshow :: SlackChannelConfiguration -> String
show :: SlackChannelConfiguration -> String
$cshowList :: [SlackChannelConfiguration] -> ShowS
showList :: [SlackChannelConfiguration] -> ShowS
Prelude.Show)
mkSlackChannelConfiguration ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text
        -> Value Prelude.Text -> SlackChannelConfiguration
mkSlackChannelConfiguration :: Value Text
-> Value Text
-> Value Text
-> Value Text
-> SlackChannelConfiguration
mkSlackChannelConfiguration
  Value Text
channelId
  Value Text
channelRoleArn
  Value Text
notifyOnCaseSeverity
  Value Text
teamId
  = SlackChannelConfiguration
      {haddock_workaround_ :: ()
haddock_workaround_ = (), channelId :: Value Text
channelId = Value Text
channelId,
       channelRoleArn :: Value Text
channelRoleArn = Value Text
channelRoleArn,
       notifyOnCaseSeverity :: Value Text
notifyOnCaseSeverity = Value Text
notifyOnCaseSeverity, teamId :: Value Text
teamId = Value Text
teamId,
       channelName :: Maybe (Value Text)
channelName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnAddCorrespondenceToCase = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnCreateOrReopenCase = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       notifyOnResolveCase :: Maybe (Value Bool)
notifyOnResolveCase = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SlackChannelConfiguration where
  toResourceProperties :: SlackChannelConfiguration -> ResourceProperties
toResourceProperties SlackChannelConfiguration {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SlackChannelConfiguration -> ()
channelId :: SlackChannelConfiguration -> Value Text
channelName :: SlackChannelConfiguration -> Maybe (Value Text)
channelRoleArn :: SlackChannelConfiguration -> Value Text
notifyOnAddCorrespondenceToCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCaseSeverity :: SlackChannelConfiguration -> Value Text
notifyOnCreateOrReopenCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: SlackChannelConfiguration -> Maybe (Value Bool)
teamId :: SlackChannelConfiguration -> Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SupportApp::SlackChannelConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"ChannelId" 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
channelId,
                            Key
"ChannelRoleArn" 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
channelRoleArn,
                            Key
"NotifyOnCaseSeverity" 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
notifyOnCaseSeverity,
                            Key
"TeamId" 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
teamId]
                           ([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
"ChannelName" (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)
channelName,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NotifyOnAddCorrespondenceToCase"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
notifyOnAddCorrespondenceToCase,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NotifyOnCreateOrReopenCase"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
notifyOnCreateOrReopenCase,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NotifyOnResolveCase" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
notifyOnResolveCase]))}
instance JSON.ToJSON SlackChannelConfiguration where
  toJSON :: SlackChannelConfiguration -> Value
toJSON SlackChannelConfiguration {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SlackChannelConfiguration -> ()
channelId :: SlackChannelConfiguration -> Value Text
channelName :: SlackChannelConfiguration -> Maybe (Value Text)
channelRoleArn :: SlackChannelConfiguration -> Value Text
notifyOnAddCorrespondenceToCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCaseSeverity :: SlackChannelConfiguration -> Value Text
notifyOnCreateOrReopenCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: SlackChannelConfiguration -> Maybe (Value Bool)
teamId :: SlackChannelConfiguration -> Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"ChannelId" 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
channelId,
               Key
"ChannelRoleArn" 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
channelRoleArn,
               Key
"NotifyOnCaseSeverity" 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
notifyOnCaseSeverity,
               Key
"TeamId" 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
teamId]
              ([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
"ChannelName" (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)
channelName,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NotifyOnAddCorrespondenceToCase"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
notifyOnAddCorrespondenceToCase,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NotifyOnCreateOrReopenCase"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
notifyOnCreateOrReopenCase,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NotifyOnResolveCase" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
notifyOnResolveCase])))
instance Property "ChannelId" SlackChannelConfiguration where
  type PropertyType "ChannelId" SlackChannelConfiguration = Value Prelude.Text
  set :: PropertyType "ChannelId" SlackChannelConfiguration
-> SlackChannelConfiguration -> SlackChannelConfiguration
set PropertyType "ChannelId" SlackChannelConfiguration
newValue SlackChannelConfiguration {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SlackChannelConfiguration -> ()
channelId :: SlackChannelConfiguration -> Value Text
channelName :: SlackChannelConfiguration -> Maybe (Value Text)
channelRoleArn :: SlackChannelConfiguration -> Value Text
notifyOnAddCorrespondenceToCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCaseSeverity :: SlackChannelConfiguration -> Value Text
notifyOnCreateOrReopenCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: SlackChannelConfiguration -> Maybe (Value Bool)
teamId :: SlackChannelConfiguration -> Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
    = SlackChannelConfiguration {channelId :: Value Text
channelId = PropertyType "ChannelId" SlackChannelConfiguration
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
haddock_workaround_ :: ()
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
instance Property "ChannelName" SlackChannelConfiguration where
  type PropertyType "ChannelName" SlackChannelConfiguration = Value Prelude.Text
  set :: PropertyType "ChannelName" SlackChannelConfiguration
-> SlackChannelConfiguration -> SlackChannelConfiguration
set PropertyType "ChannelName" SlackChannelConfiguration
newValue SlackChannelConfiguration {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SlackChannelConfiguration -> ()
channelId :: SlackChannelConfiguration -> Value Text
channelName :: SlackChannelConfiguration -> Maybe (Value Text)
channelRoleArn :: SlackChannelConfiguration -> Value Text
notifyOnAddCorrespondenceToCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCaseSeverity :: SlackChannelConfiguration -> Value Text
notifyOnCreateOrReopenCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: SlackChannelConfiguration -> Maybe (Value Bool)
teamId :: SlackChannelConfiguration -> Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
    = SlackChannelConfiguration
        {channelName :: Maybe (Value Text)
channelName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ChannelName" SlackChannelConfiguration
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
instance Property "ChannelRoleArn" SlackChannelConfiguration where
  type PropertyType "ChannelRoleArn" SlackChannelConfiguration = Value Prelude.Text
  set :: PropertyType "ChannelRoleArn" SlackChannelConfiguration
-> SlackChannelConfiguration -> SlackChannelConfiguration
set PropertyType "ChannelRoleArn" SlackChannelConfiguration
newValue SlackChannelConfiguration {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SlackChannelConfiguration -> ()
channelId :: SlackChannelConfiguration -> Value Text
channelName :: SlackChannelConfiguration -> Maybe (Value Text)
channelRoleArn :: SlackChannelConfiguration -> Value Text
notifyOnAddCorrespondenceToCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCaseSeverity :: SlackChannelConfiguration -> Value Text
notifyOnCreateOrReopenCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: SlackChannelConfiguration -> Maybe (Value Bool)
teamId :: SlackChannelConfiguration -> Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
    = SlackChannelConfiguration {channelRoleArn :: Value Text
channelRoleArn = PropertyType "ChannelRoleArn" SlackChannelConfiguration
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
instance Property "NotifyOnAddCorrespondenceToCase" SlackChannelConfiguration where
  type PropertyType "NotifyOnAddCorrespondenceToCase" SlackChannelConfiguration = Value Prelude.Bool
  set :: PropertyType
  "NotifyOnAddCorrespondenceToCase" SlackChannelConfiguration
-> SlackChannelConfiguration -> SlackChannelConfiguration
set PropertyType
  "NotifyOnAddCorrespondenceToCase" SlackChannelConfiguration
newValue SlackChannelConfiguration {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SlackChannelConfiguration -> ()
channelId :: SlackChannelConfiguration -> Value Text
channelName :: SlackChannelConfiguration -> Maybe (Value Text)
channelRoleArn :: SlackChannelConfiguration -> Value Text
notifyOnAddCorrespondenceToCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCaseSeverity :: SlackChannelConfiguration -> Value Text
notifyOnCreateOrReopenCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: SlackChannelConfiguration -> Maybe (Value Bool)
teamId :: SlackChannelConfiguration -> Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
    = SlackChannelConfiguration
        {notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnAddCorrespondenceToCase = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "NotifyOnAddCorrespondenceToCase" SlackChannelConfiguration
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
instance Property "NotifyOnCaseSeverity" SlackChannelConfiguration where
  type PropertyType "NotifyOnCaseSeverity" SlackChannelConfiguration = Value Prelude.Text
  set :: PropertyType "NotifyOnCaseSeverity" SlackChannelConfiguration
-> SlackChannelConfiguration -> SlackChannelConfiguration
set PropertyType "NotifyOnCaseSeverity" SlackChannelConfiguration
newValue SlackChannelConfiguration {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SlackChannelConfiguration -> ()
channelId :: SlackChannelConfiguration -> Value Text
channelName :: SlackChannelConfiguration -> Maybe (Value Text)
channelRoleArn :: SlackChannelConfiguration -> Value Text
notifyOnAddCorrespondenceToCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCaseSeverity :: SlackChannelConfiguration -> Value Text
notifyOnCreateOrReopenCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: SlackChannelConfiguration -> Maybe (Value Bool)
teamId :: SlackChannelConfiguration -> Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
    = SlackChannelConfiguration {notifyOnCaseSeverity :: Value Text
notifyOnCaseSeverity = PropertyType "NotifyOnCaseSeverity" SlackChannelConfiguration
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
instance Property "NotifyOnCreateOrReopenCase" SlackChannelConfiguration where
  type PropertyType "NotifyOnCreateOrReopenCase" SlackChannelConfiguration = Value Prelude.Bool
  set :: PropertyType "NotifyOnCreateOrReopenCase" SlackChannelConfiguration
-> SlackChannelConfiguration -> SlackChannelConfiguration
set PropertyType "NotifyOnCreateOrReopenCase" SlackChannelConfiguration
newValue SlackChannelConfiguration {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SlackChannelConfiguration -> ()
channelId :: SlackChannelConfiguration -> Value Text
channelName :: SlackChannelConfiguration -> Maybe (Value Text)
channelRoleArn :: SlackChannelConfiguration -> Value Text
notifyOnAddCorrespondenceToCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCaseSeverity :: SlackChannelConfiguration -> Value Text
notifyOnCreateOrReopenCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: SlackChannelConfiguration -> Maybe (Value Bool)
teamId :: SlackChannelConfiguration -> Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
    = SlackChannelConfiguration
        {notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnCreateOrReopenCase = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NotifyOnCreateOrReopenCase" SlackChannelConfiguration
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
instance Property "NotifyOnResolveCase" SlackChannelConfiguration where
  type PropertyType "NotifyOnResolveCase" SlackChannelConfiguration = Value Prelude.Bool
  set :: PropertyType "NotifyOnResolveCase" SlackChannelConfiguration
-> SlackChannelConfiguration -> SlackChannelConfiguration
set PropertyType "NotifyOnResolveCase" SlackChannelConfiguration
newValue SlackChannelConfiguration {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SlackChannelConfiguration -> ()
channelId :: SlackChannelConfiguration -> Value Text
channelName :: SlackChannelConfiguration -> Maybe (Value Text)
channelRoleArn :: SlackChannelConfiguration -> Value Text
notifyOnAddCorrespondenceToCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCaseSeverity :: SlackChannelConfiguration -> Value Text
notifyOnCreateOrReopenCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: SlackChannelConfiguration -> Maybe (Value Bool)
teamId :: SlackChannelConfiguration -> Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
    = SlackChannelConfiguration
        {notifyOnResolveCase :: Maybe (Value Bool)
notifyOnResolveCase = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NotifyOnResolveCase" SlackChannelConfiguration
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
teamId :: Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
teamId :: Value Text
..}
instance Property "TeamId" SlackChannelConfiguration where
  type PropertyType "TeamId" SlackChannelConfiguration = Value Prelude.Text
  set :: PropertyType "TeamId" SlackChannelConfiguration
-> SlackChannelConfiguration -> SlackChannelConfiguration
set PropertyType "TeamId" SlackChannelConfiguration
newValue SlackChannelConfiguration {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SlackChannelConfiguration -> ()
channelId :: SlackChannelConfiguration -> Value Text
channelName :: SlackChannelConfiguration -> Maybe (Value Text)
channelRoleArn :: SlackChannelConfiguration -> Value Text
notifyOnAddCorrespondenceToCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnCaseSeverity :: SlackChannelConfiguration -> Value Text
notifyOnCreateOrReopenCase :: SlackChannelConfiguration -> Maybe (Value Bool)
notifyOnResolveCase :: SlackChannelConfiguration -> Maybe (Value Bool)
teamId :: SlackChannelConfiguration -> Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
teamId :: Value Text
..}
    = SlackChannelConfiguration {teamId :: Value Text
teamId = PropertyType "TeamId" SlackChannelConfiguration
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
haddock_workaround_ :: ()
channelId :: Value Text
channelName :: Maybe (Value Text)
channelRoleArn :: Value Text
notifyOnAddCorrespondenceToCase :: Maybe (Value Bool)
notifyOnCaseSeverity :: Value Text
notifyOnCreateOrReopenCase :: Maybe (Value Bool)
notifyOnResolveCase :: Maybe (Value Bool)
..}