Package org.togglz.slack.config
Class NotificationConfigurationBuilder
- java.lang.Object
-
- org.togglz.slack.config.NotificationConfigurationBuilder
-
public final class NotificationConfigurationBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description NotificationConfigurationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationConfigurationbuild()NotificationConfigurationBuilderdisableAsyncSender()NotificationConfigurationBuilderenableLabeling()NotificationConfigurationBuilderwithAppIcon(String appIcon)NotificationConfigurationBuilderwithAppName(String appName)NotificationConfigurationBuilderwithChangeVerbs(String enabled, String disabled)NotificationConfigurationBuilderwithChannels(String... channels)NotificationConfigurationBuilderwithMessageFormat(String messageFormat)NotificationConfigurationBuilderwithSlackHookUrl(String slackHookUrl)NotificationConfigurationBuilderwithStatesIcons(String enabled, String disabled)NotificationConfigurationBuilderwithTogglzAdminConsoleUrl(String togglzAdminConsoleUrl)
-
-
-
Method Detail
-
withSlackHookUrl
public NotificationConfigurationBuilder withSlackHookUrl(String slackHookUrl)
-
withChannels
public NotificationConfigurationBuilder withChannels(String... channels)
-
withTogglzAdminConsoleUrl
public NotificationConfigurationBuilder withTogglzAdminConsoleUrl(String togglzAdminConsoleUrl)
-
withAppName
public NotificationConfigurationBuilder withAppName(String appName)
-
withMessageFormat
public NotificationConfigurationBuilder withMessageFormat(String messageFormat)
- Parameters:
messageFormat- custom replacement for default org.togglz.slack.notification.NotificationComposer.DEFAULT_MESSAGE_FORMAT
-
withAppIcon
public NotificationConfigurationBuilder withAppIcon(String appIcon)
- Parameters:
appIcon- name, eg. robot_face
-
withStatesIcons
public NotificationConfigurationBuilder withStatesIcons(String enabled, String disabled)
- Parameters:
enabled- icon name, eg. green_appledisabled- icon name, eg. apple
-
withChangeVerbs
public NotificationConfigurationBuilder withChangeVerbs(String enabled, String disabled)
- Parameters:
enabled- verb eg. activateddisabled- verb eg. deactivated
-
disableAsyncSender
public NotificationConfigurationBuilder disableAsyncSender()
-
enableLabeling
public NotificationConfigurationBuilder enableLabeling()
-
build
public NotificationConfiguration build()
-
-